Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:

AutoCAD & AutoCAD LT All-In-One Desk Reference For Dummies (2006)

.pdf
Скачиваний:
90
Добавлен:
17.08.2013
Размер:
17.7 Mб
Скачать

642 Creating Custom Patterns

Creating a hatch pattern

Follow the procedures below to create a new hatch pattern.

1.Choose Start [All] Programs Accessories Notepad.

Notepad is launched and a blank document is created.

2.From the menu bar in Notepad, choose File Open.

The Open dialog box is displayed.

3.In the Open dialog box, select All Files from the Save As Type dropdown list.

You should be able to see all file types, not just those with the extension

.TXT.

4.Browse to the location of Acad.PAT (Acadlt.PAT) and select the file, and then click Open.

Acad.PAT (or Acadlt.PAT) should be selected and opened into Notepad. By default, Acad.PAT can be found in the folder C:\Documents and Settings\<user name>\Application Data\Autodesk\AutoCAD 2007\ R17.0\enu\Support. If you are using AutoCAD LT, Acadlt.PAT can be found in the folder C:\Documents and Settings\<user name>\Application Data\Autodesk\AutoCAD LT 2007\R12\enu\Support.

5.Scroll all the way to the bottom of the hatch pattern file and position the cursor on the very last blank line in the file.

You should see a set of comments right above the last blank line that starts off with the comment ;; User Defined Hatch Patterns.

6.Enter the new hatch pattern header and descriptor lines.

The hatch pattern file should now include a header line for the hatch pattern and at least one descriptor line.

7.From the menu bar in Notepad, choose File Save.

The updated contents of the hatch pattern file are saved out to file.

A utility that is part of Express Tools allows you to use an image, block, external reference (Xref), or a wipeout object as a hatch pattern. This can be a great timesaver because you are using techniques that you already understand to create a hatch pattern. This utility is called Super Hatch and can be found on the menu bar under Express Draw Super Hatch.

If you don’t add your custom hatch patterns to one of the hatch pattern files that comes with AutoCAD, a hatch pattern file can only contain a single hatch pattern. The pattern name and the file name must be the same. If you create a file named glass.PAT, the pattern in the file must be named GLASS.

Working with Express Tools 643

Adding your custom hatch patterns to one of the standard hatch pattern files that comes with AutoCAD makes the hatch pattern much easier to use.

Using a custom hatch pattern file

Follow this procedure to use a custom hatch pattern that is saved in its own file:

1.From the menu bar, choose Draw Hatch.

The Hatch and Gradient dialog box is displayed.

2.In the Hatch and Gradient dialog box, select Custom from the Type drop-down list.

The Custom Pattern drop-down list and Browse button become enabled.

3.Click the Ellipse button to the left of the Custom Pattern drop-down list.

The Hatch Pattern Palette dialog box should be displayed. AutoCAD displays all custom hatch pattern files that it can find in its support search paths in the list box.

4.In the Hatch Pattern Palette dialog box, select one of the custom hatch pattern files from the list.

A preview of the pattern is displayed on the right side of the dialog box.

5.Click OK to select the custom hatch pattern and return to the Hatch and Gradient dialog box.

You are returned to the Hatch and Gradient dialog box. Continue creating the hatch object as you would if you were using a predefined pattern.

Working with Express Tools

Express Tools is a collection of tools that are not part of the core AutoCAD program. These tasks are provided as-is without any type of support from Autodesk. Many of these tools provide enhanced versions of functionality beyond what is in the core program, or provide unique functionality to assist in certain types of tasks.

Slowly, over the past several releases, many of the commonly used Express Tools have been making their way into the core program, which is great for users of AutoCAD LT. This section only provides a brief overview of many of the commonly used tools.

Express Tools are not available for use with AutoCAD LT. However, the Layer tools have been integrated into AutoCAD and are now available to AutoCAD LT users.

Book IX

Chapter 4

Deeper DelvingCustomization

into

644 Working with Express Tools

Installing Express Tools

Express Tools can be installed during the installation process of AutoCAD. To install Express Tools, click the check box on the Install Optional Tools page (see Figure 4-4). If you installed AutoCAD without installing Express Tools, you can use the Control Panel in Windows to make changes to the installation using Add or Remove Programs. To access Add or Remove Programs, choose Start Control Panel Add or Remove Programs.

Figure 4-4:

Installing

Express

Tools.

After Express Tools has been installed, the Express menu should appear on the AutoCAD menu bar. If the Express menu is not displayed, type the command EXPRESSMENU or EXPRESSTOOLS at the command line.

Layer tools

The Layer tools give you capabilities ranging from selecting an object and displaying only the objects on that layer to being able to freeze a layer just by selecting it.

All of the Layer tools that were previously part of Express Tools have been integrated into AutoCAD 2007 and AutoCAD LT 2007 and can be located under the Layer Tools submenu of the Format menu.

Layer Manager: Layer Manager allows you to save and restore layer states. This functionality is very similar to the layer states in the Layer Properties Manager.

Layer Walk: Layer Walk allows you to dynamically step through all the layers in a drawing to see the objects placed on those layers, without forcing you to freeze or thaw or turn layers off and on.

Working with Express Tools 645

Layer Match: Layer Match allows you to select objects in the drawing that should be moved to a different layer based on the layer a selected object is already on.

Change to Current Layer: Change to Current Layer allows you to select an object in a drawing and set the layer current that the object is on.

Copy Objects to New Layer: Copy Objects to New Layer allows you to move selected objects to another layer or new layer altogether.

Layer Isolate: Layer Isolate allows you to turn off all layers except the ones selected.

Isolate Layer to Current Viewport: Isolate Layer to Current Viewport freezes the layer in all viewports except the active viewport.

Turn Off: Turn Off allows you to turn off a layer by selecting an object that is on that layer.

Turn All Layers On: Turn All Layers On turns on all layers that are currently marked as off.

Freeze Layer: Freeze Layer allows you to freeze a layer by selecting an object that is on that layer.

Thaw All Layers: Thaw All Layers thaws layers that are currently marked as frozen.

Layer Lock: Layer Lock allows you to lock a layer by selecting an object that is on that layer.

Layer Unlock: Layer Unlock allows you to unlock a layer by selecting an object on that layer.

Layer Merge: Layer Merge allows you to move all the objects on one layer to another layer.

Layer Delete: Layer Delete allows you to delete all the objects on a layer and then purge it from a drawing.

Block tools

The Block tools give you capabilities ranging from being able to explode a block and have the attributes converted to text objects to converting a block to an external reference (Xref).

List Xref/Block Properties: List Xref/Block Properties allows you to get information about a nested object in a block or Xref.

Copy Nested Objects: Copy Nested Objects allows you to make a copy of objects in a block without exploding the block first.

Book IX

Chapter 4

Deeper DelvingCustomization

into

646 Working with Express Tools

Explode Attributes to Text: Explode Attributes to Text allows you to explode a block, but instead of attribute definitions being created after the explosion, you are left with text objects in their place with the value that was in the attribute before the block was exploded.

Convert Shape to Block: Convert Shape to Block allows you to generate a block based on a shape definition.

Export Attribute Information: Export Attribute Information allows you to export attribute and block name information to a tab-delimited text file. This allows you to work with the information in a spreadsheet program.

Import Attribute Information: Import Attribute Information allows you to import previously exported attribute and block name information back into AutoCAD to sync up the values.

Convert Block to Xref: Convert Block to Xref allows you to replace a block with a specified Xref.

Replace Block with Another Block: Replace Block with Another Block allows you to replace a block with a specified block.

Text tools

The Text tools give you capabilities ranging from being able to create text along an arc to being able to change the case of several selected text objects at one time:

Text Fit: Text Fit allows you to stretch or shrink a text object by selecting a new or end point.

Text Mask: Text Mask allows you to place a mask object behind a text or mtext object with an offset value.

Unmask Text: Unmask Text allows you to remove a mask object from behind a text or mtext object.

Explode Text: Explode Text allows you to explode a text or mtext object into geometry that can be assigned thickness or an elevation.

Convert Text to Mtext: Convert Text to Mtext allows you to select text objects and create a single mtext object with the values from the selected text objects.

Arc-Aligned Text: Arc-Aligned Text allows you to create a text object that follows along an arc’s curve.

Rotate Text: Rotate Text allows you to change the orientation of a text, mtext, or attribute.

Working with Express Tools 647

Enclose Text with Object: Enclose Text with Object allows you to place a circle, slot, or rectangle around a text or mtext object.

Rotate Text: Rotate Text allows you to change the orientation of a text, mtext, or attribute.

Automatic Text Numbering: Automatic Text Numbering allows you to create a numbered list.

Change Text Case: Change Text Case allows you to change the case of selected text and mtext objects.

Layout tools

The Layout tools offer capabilities ranging from listing a viewports scale to synchronizing viewports:

Align Space: Align Space allows you to adjust a viewport based on points selected in model space and paper space.

Synchronize Viewports: Synchronize Viewports allows you to update a viewport’s zoom factor based on a specified viewport.

List Viewport Scale: List Viewport Scale allows you to obtain a viewport’s current scale factor.

Merge Layout: Merge Layout allows you to merge the objects in a layout into another layout or create a new layout based on the layouts being merged.

Dimension tools

The Dimension tools range from leader tools to tools that enable you to import and export dimension styles out of a drawing:

Leader Tools: The Leader Tools submenu contains commands that allow you to attach and detach leader lines to multiline text, tolerance, or block reference objects.

Dimstyle Export: Dimstyle Export allows you to export a specified dimension style out of a drawing to a text file.

Dimstyle Import: Dimstyle Import allows you to import a previously exported dimension style into a drawing.

Modify tools

Book IX

Chapter 4

Deeper DelvingCustomization

into

The Modify tools give you capabilities ranging from being able to perform multiple editing operations in a row to controlling display order by color:

648

Working with Express Tools

Multiple Object Stretch: Multiple Object Stretch allows you to perform more than one crossing polygon before doing a stretch.

Move/Copy/Rotate: Move/Copy/Rotate allows you to perform move, copy, and rotate operations in a row on objects created during the command.

DrawOrder by Color: DrawOrder by Color allows you to control the draworder of objects in a drawing by the color they are assigned or by the color of the layer they are on.

Flatten Objects: Flatten Objects allows you to convert 3D objects into 2D objects.

Draw tools

The Draw tools range from inserting a breakline to a feature known as Super Hatch. Super Hatch allows you to use an image, block, external reference (Xref), or a wipeout object as a hatch pattern.

File tools

The File tools are used to help with the management of drawing and backup files. The utilities perform functions ranging from moving backups to a specified location to being able to save all open drawings in AutoCAD:

Move Backup Files: Move Backup Files allows you to specify where .BAK files should be placed after each save.

Save All Drawings: Save All Drawings allows you to save all open drawings without needing to switch to each one and saving each individually.

Quick Exit: Quick Exit allows you to exit all open drawings; you are prompted only for the ones that need to be saved. AutoCAD closes automatically after the command is done.

Revert to Original: Revert to Original allows you to close and reopen the current drawing.

Tools

The tools are a variety of different types of routines, ranging from editing the PGP file to creating custom linetypes:

Command Alias Editor: Command Alias Editor allows you to create new and modify existing command aliases in a PGP file.

System Variable Editor: System Variable Editor allows you to view and modify the values of system variables through a dialog box instead of at the command line.

Working with Express Tools 649

Make Linetype: Make Linetype allows you to generate a linetype based on the geometry in a drawing.

Make Shape: Make Shape allows you to generate a shape based on the geometry in a drawing.

Command line only tools

Some Express Tools are not found in the Express Tools pull-down menu. These commands are available only from the command line. Some of those commands are mentioned in the following list. In parentheses after the name of the command is the command name that has to be typed at the command line in order to run it:

Block Count (BCOUNT): Block Count allows you to get a quick count of the number of times a block is inserted into a drawing.

Edit Time (EDITTIME): Edit Time allows you to keep track of the amount of time that you are spending in a drawing file. You can specify a timeout period so if nothing happens in AutoCAD, the timer tracking is suspended after a specified interval.

List AutoLISP Commands (LSP): List AutoLISP Commands allows you to get information about loaded AutoLISP routines.

Create Selection Set (SSX): Create Selection Set allows you to create a selection set based on some filtering options that you can select by using the “previous” selection option.

Toggle Frames (TFRAMES): Toggle Frames toggles the frames used for images and wipeouts on or off.

Book IX

Chapter 4

Deeper DelvingCustomization

into

650 Book IX: Customizing AutoCAD

Book X

Programming

AutoCAD