Tutorial AutoCad 2004
Tutorial AutoCad 2004
GD11-3L
During this hands-on lab, you will use tools and techniques to quickly add existing block and hatch content to AutoCAD 2004 tool palettes. In addition, you will explore the most recent tool palette functionality, as well as a few other surprises that are only available through the AutoCAD 2004 extension. To manage these powerful tool palettes, you will practice techniques for easily sharing and accessing multiple tool palettes.
About the Speaker: Heidi is a technical marketing manager at Autodesk and has been using AutoCAD for 17 years. After earning her B.S. in Architectural Engineering from the University of Colorado, she worked as a lighting designer for a small electrical engineering firm. Heidi joined Autodesk in 1992 and has held a variety of AutoCAD-related positions, including product support technician, training specialist, and senior applications engineer. In her current position, Heidi assists the AutoCAD development teams in developing and delivering technical marketing material for AutoCAD and AutoCAD LT. [email protected]
Table of Contents
Tool Palettes in AutoCAD 2004 ........................................................................................................................ 2 What are Tool Palettes? ................................................................................................................................... 2 Customizing Tool Palettes ................................................................................................................................ 4 Customizing Tools ............................................................................................................................................ 6 Sharing Tool Palettes ....................................................................................................................................... 7 Planning Tool Palette Structure........................................................................................................................ 8 Creating Multiple Sets of Tool Palettes............................................................................................................. 9 Automating the Process of Switching between Palette Sets .......................................................................... 10 Beyond AutoCAD 2004 ..................................................................................................................................... 11 Creating Content Tools................................................................................................................................... 11 Creating Command Tools ...............................................................................................................................12 Creating Tool Flyouts ..................................................................................................................................... 13 Modifying Tool Properties...............................................................................................................................13 Creating Palette Groups ................................................................................................................................. 14
The tool palettes window (Figure 1) includes a title bar with several controls and individual tool palettes. Using the controls on the title bar, you can close the tool palettes window, turn on auto-hide causing the tool palette to roll up automatically when inactive, and you can access a menu with additional properties. You can scroll through the block and hatch content of the current tool palette using either the scroll bar or the cursor. The cursor changes to a hand when it is in an acceptable location for scrolling. You can resize the tool palette window by stretching it along any edge and you can move the tool palette to any location on your display, even outside of the AutoCAD window! If you move the tool palette window near the right or left edge of your AutoCAD window, it will automatically dock into place. Tip: If you want to move the tool palette to the edge of your AutoCAD window without having it docked, click on the Properties icon and turn off Allow docking.
Block tool Scroll bar Scroll hand Auto-hide Properties Resize along any edge
Try it!
1. Start AutoCAD 2004. Figure 2. DesignCenter 2. Turn on the Tool Palettes Window using one of the following methods: On the Tools menu, turn on Tool Palettes Window On the Standard toolbar, choose the Tool Palettes button On the keyboard press Ctrl 3 At the Command prompt, type TOOLPALETTES 3. Turn on DesignCenter using one of the following methods: On the Tools menu, turn on DesignCenter On the Standard toolbar, choose the DesignCenter button On the keyboard press Ctrl 2 At the Command prompt, type DC 4. In DesignCenter, choose the Folders tab. 5. Use the Folders list to navigate to the folder or drawing that contains your block library. Note: If you dont have access to your own block library, choose the Home button to use one of the AutoCAD 2004/Sample/DesignCenter drawings as an example.
6. Right-click over the folder or drawing name and choose Create Tool Palette. Note: If you right-click over a folder, the menu option is Create Tool Palette of blocks and if you right-click over a drawing (DWG) file the menu option is Create Tool Palette. 7. In DesignCenter, navigate to file that contains your hatch pattern definitions. Note: If you dont have access to your own hatch pattern definitions, navigate to the acad.pat file. By default this file is installed in the following location: C:\Documents and Settings\your username\Application Data\Autodesk\AutoCAD 2004\R16.0\enu\Support Consider adding this location to your DesignCenter Favorites list for easier access. 8. Right-click over the hatch pattern (PAT) file and choose Create Tool Palette of Hatch Patterns. 3
Figure 3. Context Sensitive Right-click Menus If you right-click over the Tool Palettes window title bar (Figure 3, Menu ), you can rename the tool palettes window, create new tool palettes, and you can modify the appearance of the tool palettes window. Adjusting the appearance of the tool palettes window enables you to maximize your usable drawing space while maintaining easy access to your most frequently used tools. You can control window docking, Auto-hide, and you can even apply transparency using the Transparency dialog box (Figure 4). For the most efficient use of space, I suggest that you turn off Allow Docking, turn on Auto-hide, turn on transparency and set the transparency level just below the halfway mark. Using this combination of options you can move the tool palettes window to the Figure 4. Transparency Dialog Box corner of your display without it docking. With Auto-hide on, the tool palette automatically closes when you arent using it but as soon as you pass your cursor over the tool palettes title bar, it opens enabling you to quickly select your tool. Setting the transparency level just below the halfway mark enables you to see the geometry below the tool palette without making the tools difficult to see.
Make the Most of Tool Palettes in AutoCAD 2004 and Beyond If you right-click over the current tool palette, the options differ depending if your cursor is located on the tool palette tab or on the content area of the tool palette. If you right-click on the content area of the current tool palette but not on a tool (Figure 3, Menu ), you have access to some of the same options we discussed previously as well as a few more options. You can delete or rename the current tool palette and you can control the view options of the tool palette using the View Options dialog box. In the View Options dialog box (Figure 5), you can select the view style for the tools and you can adjust the image size. You can apply the view options to only the current tool palette or to all of the tool palettes. Figure 6 shows the differences between the view style options.
Figure 5. View Options Dialog Box Figure 6. View Style set as Icon Only, Icon with Text and List View If you right-click over a tool (Figure 3, Menu ), the menu options enable you to delete or rename the tool, cut or copy the tool to the clipboard, and modify the tool properties (see Customizing Tools for more information on tool properties). If you right-click over a tool palette tab that is not the current tool palette, you can rename the tool palette and move it up or down in relation to the other tool palettes (Figure 3, Menu ). If you right-click over the current tool palette tab, you have a combination of options that we already discussed including moving the current tool palette tab up or down, accessing view options, and deleting the current tool palette (Figure 3, Menu ). Try it! 1. Right-click over the tool palettes title bar and experiment with the following options: Auto-hide Allow Docking Transparency Rename 2. Right-click over a tool and experiment with the following options: Cut Copy Delete Rename 3. Right-click over the current tool palette and experiment with the following options: View Options New Tool Palette Delete Tool Palette Rename Tool Palette Paste 4. Right-click over a tool palette tab and experiment with the following options: Move Up Move Down
Customizing Tools
When you create a tool palette with blocks, the individual block tools contain pointers back to the original block definitions. If you insert a block from a tool palette, it behaves just as if you used the Insert command and browsed to the location of the block. You can customize the behavior of your block tools by applying preset properties. For example, if you always want a particular block to insert onto a particular layer, you can preset the tool properties of the block tool so that, regardless of the drawings current layer, the block always inserts onto the correct layer. You can modify the tool properties of hatch tools in the same way. To access the Tool Properties dialog box (Figure 7), right-click over the tool and choose Properties from the right-click menu.
Figure 7. Tool Properties Dialog Box for Block and Hatch Tools Try it! 1. Open or create a drawing with several layers. 2. Insert one of your blocks into the drawing. Notice the layer on which the block was inserted and the scale at which it was inserted. 3. Right-click over the block tool and choose Properties from the right-click menu. 4. In the Tool Properties dialog box, change some of the properties such as scale and layer. 5. Insert the block again. Notice the difference from the first insertion. 6. Continue to experiment with the different tool properties. 7. Use a hatch tool to create a hatch in one of the objects. 8. Right-click over the hatch tool and choose Properties from the right-click menu. 9. In the Tool Properties dialog box, change some of the properties such as pattern name and scale. 10. Use the hatch tool to create a different hatch in on of the objects.
Power symbols.dwg
HVAC symbols.dwg
Figure 9. Example Symbol Drawings The block and hatch definitions (DWG and PAT files) contain the content which is referenced by the tools on the tool palettes but the tool palettes themselves are created and stored in the user profile by default. If you want to provide the highest level of control and consistency between users, you can store your tool palettes in a common read-only folder on the network server. Use the Files tab of the Options dialog box to change the Tool Palettes File Locations path to a network location. AutoCAD automatically creates a new blank tool palette and stores the tool palette information in the network folder.
10
Microsoft Windows Explorer - Dragging and dropping existing drawing and image files using Microsoft Windows Explorer enables you to access DWG and raster content that is located on your local and network drives. AutoCAD 2004 software applies default properties for scale, rotation, etc., enabling you to insert geometry that corresponds to the original object definitions. DesignCenter - Dragging and dropping existing hatch, block, xref, and image content using the DesignCenter feature enables you to access content that is located on your local and network drives as well as on the Web. AutoCAD 2004 software applies default properties for scale, rotation, etc., enabling you to insert geometry that corresponds to the original object definitions. (You cannot create gradient tools with DesignCenter.) For example, suppose you have a folder containing standard images that you insert at different scales and rotation angles, depending on the scale of your drawing. You can use the DesignCenter function or Microsoft Windows Explorer to create a tool palette with your standard images and modify the scale and rotation of the images on an individual basis when you insert them.
11
Commands in the Customize dialog box - Dragging and dropping commands from the Customize dialog box enables you to create command tools for any AutoCAD software commands using their default properties. Creating command tools using this method helps you create simple tools that use core, default AutoCAD functionality. For example, suppose you have never customized your toolbar buttons, or maybe your custom toolbar buttons are error prone due to missing or inaccurate code. Rather than propagating troublesome code that you will eventually have to revise, you can start fresh with simple but accurate tools. Figure 18. Creating command tools from the Customize dialog box 12
Figure 20. Tool properties for xref, gradient, and command tools
13
You can apply an auxiliary scale to block and hatch tools so that they will insert according to the dimscale or plotscale value of the current drawing. For example, suppose you have two different drawings, both of which have layout plot scales of 1:1. One of the drawings has a viewport scale of 1:10 and a corresponding dimscale of 10. The other drawing has a viewport scale of 1:20 and a corresponding dimscale of 20. (A similar example in architectural units would be one drawing with a viewport scale of 1/4=1 and a dimscale of 48, and a second drawing with a viewport scale of 1/8=1 and a dimscale of 96.) If you set the auxiliary scale of the block tool to use the dimscale value, the block inserts at the appropriate scale for either drawing. You can overwrite the default scale and rotation values of blocks and xrefs upon insertion by selecting the appropriate option from the right-click menu or command line. For example, suppose you have a block with a default scale equal to 1 and a default auxiliary scale equal to the drawings dimscale. If you want to insert a block at a completely different scale, when prompted to insert the block, right-click, choose Scale, and enter the appropriate scale factor. Using the tool properties, you can convert between hatch and gradient tools, and you can convert between block and xref tools. For example, suppose you create an xref tool for your titleblock and then you decide that you would prefer to insert the titleblock as a block rather than an xref. Using the tool properties, you can change the Insert as field to Block instead of Xref.
Figure 21. Changing palette groups in the Customize dialog box and the tool palettes title bar. With the powerful functionality available from the Tool Palettes Extension you can create, reuse, and organize your frequently used tools. You can dramatically increase your productivity while maximizing the amount of screen space in which you can work. 14