autocad® secrets exposed!aucache.autodesk.com/au2011/sessions/3786/class... · autocad® secrets...

30
1 AutoCAD® Secrets Exposed! Jeanne Aarhus Aarhus Associates, LLC AC3786 This class is filled with time-saving tips and tricks that can be used to increase your productivity immediately. If you have attended this class previously, you know there is always something you did not know you could do, so do not miss this year! We will expose many new tips, including tips from the new and exciting AutoCAD 2012. Some of the best and most productivity-enhancing tools have been introduced in recent upgrades. To take advantage of them, attend this class and discover what might take you years to discover on your own. You will leave this class with the knowledge to “dazzle” your co -workers back home. A great way to ensure yourself a ticket to attend next year! Learning Objectives At the end of this class, you will be able to: Use hidden tips and tricks from other AutoCAD users. Share tips that apply to many versions of AutoCAD ranging from 2002-2012. Use the newer tools for greater productivity. Use hidden tips that you may not find on your own. About the Speaker Jeanne is known for keeping her training sessions fast moving and fun. She is a nationally known speaker and expert in CAD, and presents seminars and workshops on CAD productivity for managers and users in both corporate and college settings. She has over 25 years experience involving production drafting, user support, standards coordination, programming, and training in various CAD applications. Jeanne is an independent consultant offering training and implementation services and is certified in several Autodesk® and Bentley® products. She continues to be actively involved in international, national, and local CAD user groups and has been a popular speaker at AU for several years. [email protected]

Upload: lamliem

Post on 15-Feb-2018

235 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: AutoCAD® Secrets Exposed!aucache.autodesk.com/au2011/sessions/3786/class... · AutoCAD® Secrets Exposed! 3 1 Write-Read Your Linetypes AutoCAD 2011 now allows you to control the

1

AutoCAD® Secrets Exposed! Jeanne Aarhus – Aarhus Associates, LLC

AC3786

This class is filled with time-saving tips and tricks that can be used to increase your productivity

immediately. If you have attended this class previously, you know there is always something

you did not know you could do, so do not miss this year! We will expose many new tips,

including tips from the new and exciting AutoCAD 2012. Some of the best and most

productivity-enhancing tools have been introduced in recent upgrades. To take advantage of

them, attend this class and discover what might take you years to discover on your own. You

will leave this class with the knowledge to “dazzle” your co-workers back home. A great way to

ensure yourself a ticket to attend next year!

Learning Objectives At the end of this class, you will be able to:

Use hidden tips and tricks from other AutoCAD users.

Share tips that apply to many versions of AutoCAD ranging from 2002-2012.

Use the newer tools for greater productivity.

Use hidden tips that you may not find on your own.

About the Speaker

Jeanne is known for keeping her training sessions fast moving and fun. She is a nationally

known speaker and expert in CAD, and presents seminars and workshops on CAD productivity

for managers and users in both corporate and college settings. She has over 25 years

experience involving production drafting, user support, standards coordination, programming,

and training in various CAD applications. Jeanne is an independent consultant offering training

and implementation services and is certified in several Autodesk® and Bentley® products. She

continues to be actively involved in international, national, and local CAD user groups and has

been a popular speaker at AU for several years.

[email protected]

Page 2: AutoCAD® Secrets Exposed!aucache.autodesk.com/au2011/sessions/3786/class... · AutoCAD® Secrets Exposed! 3 1 Write-Read Your Linetypes AutoCAD 2011 now allows you to control the

AutoCAD® Secrets Exposed!

2

AutoCAD® Secrets Exposed! The topics I selected for this presentation were collected from friends, co-workers, other user

groups; and of course the newsgroups.

If you have an idea or a great tip to pass along, I invite you to share your ideas with other

users. This only works when we ALL share ideas and concepts and keep the information

flowing. Many thanks to all those who have sent me their tips over the past year to help with

this collection of secrets.

About this document:

Secret available in AutoCAD 2009

Secret available in AutoCAD 2010

Secret available in AutoCAD 2011

Secret available in AutoCAD 2012

SECRET

OOPS

Page 3: AutoCAD® Secrets Exposed!aucache.autodesk.com/au2011/sessions/3786/class... · AutoCAD® Secrets Exposed! 3 1 Write-Read Your Linetypes AutoCAD 2011 now allows you to control the

AutoCAD® Secrets Exposed!

3

1 Write-Read Your Linetypes AutoCAD 2011 now allows you to control the orientation of your linetypes using the new alignment

code “U”. Modify any existing linetypes that use text or symbols so that when placed they are

“right-read” justified.

Finally, you no longer have to REVERSE the direction of the objects in your drawing.

Below is an example of what to change in the delivered GAS line defined in ACAD.LIN

Previous *GAS_LINE,Gas line ----GAS----GAS----GAS----GAS----GAS----GAS--

A,.5,-.2,["GAS",STANDARD,S=.1,R=0.0,X=-0.1,Y=-.05],-.25

Modified *NEW_GAS_LINE,Right Reading Gas line ----GAS----GAS----GAS----GAS----GAS----GAS--

A,.5,-.2,["GAS",STANDARD,S=.1,U=0.0,R=0.0,X=-0.1,Y=-.05],-.25

You don’t have to modify the delivered linetypes, Autodesk has already added this new feature to

the GAS and HOT_WATER_SUPPLY linetypes in the ACAD.LIN file delivered with AutoCAD 2011-

2012.

Unfortunately, this is not

honored in rotated viewports.

Hopefully this will be fixed in a

future release.

Page 4: AutoCAD® Secrets Exposed!aucache.autodesk.com/au2011/sessions/3786/class... · AutoCAD® Secrets Exposed! 3 1 Write-Read Your Linetypes AutoCAD 2011 now allows you to control the

AutoCAD® Secrets Exposed!

4

2 Smarter Hatches

Invalid Boundary Icons AutoCAD 2010 provides new “red circle” icons if a boundary object is not

closed when attempting to hatch an area. Finally, you can immediately see

where the problem is!

New Grips Another new feature for hatch objects are additional grips available on an

associated hatch.

Edit Vertex grip Allows you to MOVE or REMOVE the vertex. Use the <CTRL> key to toggle between the available

command options.

.

Edit Edge grip Allows you to ADD or CONVERT an edge between a line or an arc. Use the <CTRL> key to toggle

between the available command options.

The Hatch Grip functionality is amazing. The new center grip allows direct manipulation of hatch

objects. Hover over the grip to stretch, move, or change the origin, angle or scale.

Hatch Layer We often want our hatches to all reside on a

specific layer. Now you can set a default layer

for hatches that overrides the current layer.

3 MIRRHATCH The new system variable MIRRHATCH enables you to mirror hatches while retaining their

orientation.

MIRRHATCH

Controls how MIRROR reflects hatch patterns.

Saved in: Drawing

0 (default) Retains hatch pattern direction

1 Mirrors the hatch pattern direction

Page 5: AutoCAD® Secrets Exposed!aucache.autodesk.com/au2011/sessions/3786/class... · AutoCAD® Secrets Exposed! 3 1 Write-Read Your Linetypes AutoCAD 2011 now allows you to control the

AutoCAD® Secrets Exposed!

5

4 Hatch Defaults Do you always have to change the default hatch pattern because ANSI31 is not the most common

hatch for your work? Me too! I would prefer to have SOLID my default hatch.

Here is how you can modify your “default” hatch pattern for future hatching commands.

Use the system variable HPNAME and set it to the pattern of your choice

HPNAME = SOLID

Sorry, but this setting isn’t saved anywhere; so when you close AutoCAD it reverts back to ANSI31.

So how can you save this change permanently? Try using the ACADDOC.LSP file. You can create

and place the ACADDOC.LSP in any support path directory and it will be loaded automatically each

time a drawing is accessed.

Use the file ACADDOC.LSP to save these “favorite settings” every time you run AutoCAD.

(setvar “HPNAME” “SOLID”)

Use the . character to reset the pattern back to the default hatch.

5 Smarter QAT So what can we do to improve the out-of-the-box ribbon?

Quick Access Toolbar Layer Tools The 2011-2012 versions deliver a more flexible QAT. By default, it delivers the WORKSPACE

control tool in the out-of-the-box Quick Access Toolbar. A better choice here might be to include

the LAYER control tool. This allows the user to change the active layer while on any ribbon tab. In

previous versions I always turned on the LAYER toolbar in conjunction with the ribbon interface.

Use the CUI dialog to re-arrange the tools on the QAT.

Page 6: AutoCAD® Secrets Exposed!aucache.autodesk.com/au2011/sessions/3786/class... · AutoCAD® Secrets Exposed! 3 1 Write-Read Your Linetypes AutoCAD 2011 now allows you to control the

AutoCAD® Secrets Exposed!

6

6 Automatic Areas Using Fields For this demonstration let’s use a polyline to demonstrate a new feature in AutoCAD that can

automatic my design process.

If you need to label areas on your drawings you can use

FIELD objects along with polylines to “automatically” keep

them up to date.

STEP 1: Place text using the Mtext Editor and key-in AREA =

STEP 2: <Right-Click> to access the INSERT FIELD command

STEP 3: In the FIELD CATEGORY select OBJECT

STEP 4: Use the Pick Object button and select the closed polyline

STEP 5: In the PROPERTY list select AREA

STEP 6: In the FORMAT list select ARCHITECTURAL and pick OK to close the dialog.

STEP 7: Pick OK to place the text in your drawing.

You can modify the GRAY SHADE and the UPDATE FIELD SETTINGS in the user preferences to

control when the fields are updated.

Page 7: AutoCAD® Secrets Exposed!aucache.autodesk.com/au2011/sessions/3786/class... · AutoCAD® Secrets Exposed! 3 1 Write-Read Your Linetypes AutoCAD 2011 now allows you to control the

AutoCAD® Secrets Exposed!

7

7 Custom Stamps

Reference Stamp Use the RTEXT express tool to automate a list of your attached references for your titleblocks.

The command to use is REMOTE TEXT….or RTEXT from the command line.

Add a reference file, and it automatically updates!

Plot Stamp I am not going to cover the obvious Plot Stamp utility found on the Plot dialog box. You have

probably already discovered that one. I find it a little limiting in placement options….so here is an

alternative. This method will work in any version of AutoCAD that has the Express Tools installed.

You can put this text anywhere in your file, modelspace or paperspace and get easy plot stamp

capabilities.

Page 8: AutoCAD® Secrets Exposed!aucache.autodesk.com/au2011/sessions/3786/class... · AutoCAD® Secrets Exposed! 3 1 Write-Read Your Linetypes AutoCAD 2011 now allows you to control the

AutoCAD® Secrets Exposed!

8

8 Automatic Coordinate Labels

Many users ask me how to label a drawing coordinate automatically in AutoCAD. Have you figured

it out yet?

You can use an ordinate dimension but there is a better way if you

make a “smarter” dynamic block to label points in your drawing.

Use a simple dynamic block using FIELDS that display the

INSERTION POINT of the block.

9 Auto-Exploded Blocks If you use WBLOCK files for your standard details you can automatically explode them on insert

using the following command.

-INSERT *blockname

Insert Block Exploded

STEP 8: Key in the following command to insert the detail “exploded”. -INSERT *TITLE_SHEET.DWG

Page 9: AutoCAD® Secrets Exposed!aucache.autodesk.com/au2011/sessions/3786/class... · AutoCAD® Secrets Exposed! 3 1 Write-Read Your Linetypes AutoCAD 2011 now allows you to control the

AutoCAD® Secrets Exposed!

9

10 Multi-Function GRIPS Additional grip functionality has been added to the following object types:

Lines Hover on an endpoint grip to gain access to the new

STRETCH and LENGTHEN commands.

Arcs Hover on an endpoint grip to gain access to the STRETCH and LENGTHEN commands.

Hover on a midpoint grip to gain access to the STRETCH and RADIUS commands.

Dimensions Hover on an arrow grip to gain access to the STRETCH,

CONTINUE DIMENSION, BASELINE DIMENSION and FLIP

ARROW commands.

Hover on a text grip to gain access to the STRETCH, MOVE

WITH DIM LINE, MOVE TEXT ONLY, MOVE WITH LEADER,

ABOVE DIM LINE, CENTER VERTICAL and RESET TEXT

POSTION commands.

Multi-Leaders Hover on a landing grip to gain access to the

STRETCH, LENGTHEN LANDING and ADD

LEADER commands.

Hover on an arrow grip to gain access to the STRETCH,

ADD VERTEX, and REMOVE LEADER commands.

Page 10: AutoCAD® Secrets Exposed!aucache.autodesk.com/au2011/sessions/3786/class... · AutoCAD® Secrets Exposed! 3 1 Write-Read Your Linetypes AutoCAD 2011 now allows you to control the

AutoCAD® Secrets Exposed!

10

11 Smarter Open…Smarter Choices

Missing SHX and Font Files You can ignore missing SHX files when opening a drawing without specifying a replacement

(although text using the missing SHX files will not be displayed).

12 DGNTM Support Complex linetypes are now maintained! To ensure that custom linetypes are displayed, copy the

corresponding .rsc files to the support path or add the RSC file path to the search path in AutoCAD

in the Options dialog box (Files tab, Support File Search Path).

13 Merge Layer Ever had a layer that you couldn’t get rid of? You can’t find anything on it; but AutoCAD insists that

the layer is populated, so you can’t delete it. Of course you have, we have all hit that brick wall!

Well, here is a great solution.

Use the LAYMRG command to merge the “stubborn” layer onto another layer you want to keep.

This causes the “stubborn” layer to be removed once it’s “objects” are moved to the new layer.

Page 11: AutoCAD® Secrets Exposed!aucache.autodesk.com/au2011/sessions/3786/class... · AutoCAD® Secrets Exposed! 3 1 Write-Read Your Linetypes AutoCAD 2011 now allows you to control the

AutoCAD® Secrets Exposed!

11

14 Quick Attribute Edit

Use the ATTIPEDIT command to edit a single attribute in a block quickly without using the dialog. It

allows you to edit the attribute using the simple editor.

Use the CTRL key to access this command automatically when selecting an attribute in a block.

15 Smarter Text Spacing Use the TSPACETYPE system variable to control the space between lines of MTEXT.

If set to 2, the variable keeps space between mtext lines always exactly the same, and if it is set to

1, set to at least varies if symbols such as ( ) are used

TSPACETYPE

Controls the type of line spacing used in multiline text.

At Least adjusts line spacing based on the tallest characters in a line. Exactly uses the specified line

spacing, regardless of individual character sizes.

Saved in: Registry

1 (default) At Least

2 Exactly

Page 12: AutoCAD® Secrets Exposed!aucache.autodesk.com/au2011/sessions/3786/class... · AutoCAD® Secrets Exposed! 3 1 Write-Read Your Linetypes AutoCAD 2011 now allows you to control the

AutoCAD® Secrets Exposed!

12

16 Smarter Dynamic Block Grips How do you move a dynamic block using a grip and move all annotative scales?

Use the ORIGIN GRIP but make sure that you are using the MOVE command option and not the

STRETCH command option.

17 Hidden Command Options? Many commands have options not documented by Autodesk, that are useful in macros. An

important one is the + option, which specifies which tab to display in tabbed dialog boxes. The tab

numbering starts with 0, which means the first tab is referred to as +0.

For example, to open the Drafting tab (the 7th tab) of the Options dialog box, the macro looks like

this:

^C^C_options +6

18 Arc By Length How can you draw an arc with a specific length? Use the LENGTHEN command to define the total

length of the arc object.

19 Align Similarly, you can apply Parallel, Perpendicular, Collinear, Horizontal, and Vertical constraints to the

rotation angle of text objects. In addition, text and mtext objects behave consistently and

predictably, with the identified insertion point of the object being the constrainable point.

One problem found is that to select the text it is needed to click a bit below the text.

Page 13: AutoCAD® Secrets Exposed!aucache.autodesk.com/au2011/sessions/3786/class... · AutoCAD® Secrets Exposed! 3 1 Write-Read Your Linetypes AutoCAD 2011 now allows you to control the

AutoCAD® Secrets Exposed!

13

20 Selection Cycling Overlapping objects has always been an issue when trying to select a specific object. Over the

years there have been many methods used to solve this problem; and AutoCAD 2011-2012 is no

exception. In fact, AutoCAD 2011-2012 offer a new, more obvious method for selecting overlapping

objects.

Use the status bar to activate the new SELECTION CYCLING

tool.

When you “hover” on multiple objects, an icon

appears to indicate that more than one object

exists at that location.

Use the <Right-Click> menu on the new <Single-

Clicked> tool in the status bar to access the

SELECTION CYCLING settings.

Page 14: AutoCAD® Secrets Exposed!aucache.autodesk.com/au2011/sessions/3786/class... · AutoCAD® Secrets Exposed! 3 1 Write-Read Your Linetypes AutoCAD 2011 now allows you to control the

AutoCAD® Secrets Exposed!

14

System Variables SELECTIONCYCLING

Turns selection cycling on and off.

Saved in: Registry

0 Off

1 On (the list dialog does not display)

2 (default) On (the list dialog displays the selected objects that you can cycle through)

SUBOBJSELECTIONMODE

Filters whether faces, edges, vertices or solid history sub-objects are highlighted when you roll

over them.

In busy 3D environments with many objects, it can be helpful to filter certain sub-objects out of

the selection highlighting.

Saved in: NOT SAVED

0 When sub-object filtering is off, press Ctrl+<Left-Click> to select a face, edge,

vertex or a history sub-object.(Shift+F1)

1 Only vertices are available for selection (Shift+F2)

2 (default) Only edges are available for selection. (Shift+F3)

3 Only faces are available for selection. (Shift+F4)

4 Only history sub-objects of compound objects are available for selection.

(Shift+F5)

Page 15: AutoCAD® Secrets Exposed!aucache.autodesk.com/au2011/sessions/3786/class... · AutoCAD® Secrets Exposed! 3 1 Write-Read Your Linetypes AutoCAD 2011 now allows you to control the

AutoCAD® Secrets Exposed!

15

21 Inferring Geometric Constraints If you have been using constraints in previous versions, then you will LOVE this new feature.

AutoCAD 2011 introduced new constraint options to make it easier to “draw” with constraints using

the new INFER CONSTRAINTS option.

Using INFER CONSTRAINTS automatically adds constraints to geometry as it is drawn, eliminating

the need to add constraints after the fact.

For example, if you snap while drawing geometry using a PERPENDICULAR osnap, the

PERPENDICULAR constraint is applied automatically.

System Variables CONSTRAINTINFER

Controls whether the geometric constraints are inferred while drawing and editing geometry.

Saved in: Registry

0 (default) Geometric constraints are not inferred

1 Geometric constraints are inferred

Even after you’ve applied constraints, you can temporarily relax them by pressing the CTRL key while editing constrained objects.

Infer Constraints with Grips Grips now have the capability of applying constraints during the process of grip editing. To utilize

you must turn on the INFERCONSTRAINTS toggle on the status bar.

You must have the appropriate OSNAP active for constraints to be available and applied. For

example, PERPENDICULAR and TANGENT OSNAPS must be specified to add the coinciding

constraints.

Page 16: AutoCAD® Secrets Exposed!aucache.autodesk.com/au2011/sessions/3786/class... · AutoCAD® Secrets Exposed! 3 1 Write-Read Your Linetypes AutoCAD 2011 now allows you to control the

AutoCAD® Secrets Exposed!

16

22 Panel Priority Customizable ribbon functionality in the Customize User Interface dialog box has been enhanced to

include new priority settings for sub-panels and fold-panels. As you change the size of your

AutoCAD window or add and remove panels from a tab, Fold panels resize horizontally to fill the

available space. Fold panel properties enable you to specify default, maximium, and minimum

button sizes. You can even assign a priority to each sub-panel or fold-panel to more easily control

the collapsing action.

23 NUDGE Objects This new command allows you to move objects very small amounts without using the MOVE

command. To access the NUDGE command, first, select the objects and use the <CTRL+ARROW

keys> to move the object in any of the four arrow directions. This movement is orthogonal only.

Use the SNAP distance setting to control the distance an object moves during the NUDGE command.

24 You’re So Touchy! Selecting objects can be tricky sometimes when trying to avoid or select multiple objects. You can

use the hidden ‘FS selection command option to select all objects touching currently selected

objects. Use the ‘ key to use this option transparently inside of any command requesting you to

select objects.

Page 17: AutoCAD® Secrets Exposed!aucache.autodesk.com/au2011/sessions/3786/class... · AutoCAD® Secrets Exposed! 3 1 Write-Read Your Linetypes AutoCAD 2011 now allows you to control the

AutoCAD® Secrets Exposed!

17

25 Forgotten Dimension Command Have you ever had problems dimensioning objects that are staggered? Using the DIMALIGNED

command doesn’t dimension exactly the way you want to, so what do you do? Use the old

DIMROTATED command to get exactly the dimension you want.

26 Secret COPY Options

Donnie Gladfelter, the CAD Geek

Hopefully, everyone knows that they can use the <CTRL+C> shortcut keys to copy objects to the

clipboard, and <CTRL+V> to paste them back into a drawing. These are wonderful shortcuts, but

they have a “fatal” flaw; they don’t allow you to define a basepoint to control the paste portion of

these actions. Right? Wrong!

You can use <CTRL+SHIFT+C> to copy objects to the clipboard and define a basepoint! Wow, I

have to admit I didn’t know that one either…thanks Donnie!

Page 18: AutoCAD® Secrets Exposed!aucache.autodesk.com/au2011/sessions/3786/class... · AutoCAD® Secrets Exposed! 3 1 Write-Read Your Linetypes AutoCAD 2011 now allows you to control the

AutoCAD® Secrets Exposed!

18

27 PDF Collate Your Way I had to add this secret since everyone seems to be asking me how to do this lately. How can you

control whether your PDF output is in a single file or multiple files? Use the system variable

PUBLISHCOLLATE to control your PDF output.

PUBLISHCOLLATE

Publishing sheets as a single job requires a plot driver that supports the multi-sheet plotting or

printing

Saved in: User Settings

0 A published sheet set is processed one sheet at a time. Separate PLT files

are created for each sheet. If the sheet set is published, the sheets might be

interleaved with other plot jobs.

1 (default) A published sheet set is processed as a single job. A multi-sheet PLT file is

created. If the sheet set is published, it is never interleaved with other plot

jobs.

28 So you Like your Shortcut Keys? Use the ones provided for navigating and using the ribbon. Have you discovered the “alternate”

shortcut keys on the ribbon?

Page 19: AutoCAD® Secrets Exposed!aucache.autodesk.com/au2011/sessions/3786/class... · AutoCAD® Secrets Exposed! 3 1 Write-Read Your Linetypes AutoCAD 2011 now allows you to control the

AutoCAD® Secrets Exposed!

19

29 Ribbon Stuff Richard Alexander…on CADALYST

Use this macro to create a very useful shortcut key for maximizing your screen real-estate when

needed. It toggles the display of your ribbon.

I didn’t come up with this one; but I sure love how it works. Thanks to Richard for this helpful tip!

Name: "Ribbon"

Description: Opens/Closes Ribbon Panel

Command Display Name: Ribbon

Macro: $M=$(if,$(and,$(>,$(getvar,ribbonstate),0)),^C^C_ribbonclose,^C^C_ribbon)

I assigned this to CTRL+F12. Check it out!

30 Using Taskbars in AutoCAD Use the TASKBAR command to display all drawings in the windows status bar like Word, Excel,

or other windows applications.

TASKBAR = 0

TASKBAR = 1

Page 20: AutoCAD® Secrets Exposed!aucache.autodesk.com/au2011/sessions/3786/class... · AutoCAD® Secrets Exposed! 3 1 Write-Read Your Linetypes AutoCAD 2011 now allows you to control the

AutoCAD® Secrets Exposed!

20

31 Using Double-Click Actions Mohamed Haris

One of the coolest things you can do in the new CUI interface is to customize the <Double-Click-

Actions>. Many of you probably use this new feature when editing objects such as blocks, hatches,

text, and many others. But have you ever <Double-Clicked> on an object only to get the Properties

dialog, which isn’t terribly useful? How about when you <Double-Click> on a line object? It runs the

Properties command, what good is that?

Let’s try to improve on this just a little. I want to <Double-Click> on a line have it convert it to a

polyline automatically.

Lines Assign the following macro to the <Double-Click> action for LINE.

^C^C_PEDIT;Y;;

Dimension Assign the following macro to the <Double-Click> action for a DIMENSION. This macro will

automatically restore the dimension text to the “true length” value.

^C^C_dimedit;home;cmddia;0;_dimedit;new;<>;previous;;

Dimension Arrow Assign the following macro to the <Double-Click> action for a DIMENSION ARROW. This macro

will automatically “flip” the arrow on the dimension.

^C^C_^C^C_aidimfliparrow

Arc or Circle Assign the following macro to the <Double-Click> action for a POLYLINE. This macro will

automatically convert a closed ARC to a POLYLINE.

^C^C$M=$(if,$(=,$(getvar,peditaccept),1),_pedit;close;,_pedit;;close;)

NOTE: <Double-Click> actions cannot be created for OLE and VIEWPORT

objects.

SECRET: Try out any of these commands on custom <Right-Click> menus too!

Page 21: AutoCAD® Secrets Exposed!aucache.autodesk.com/au2011/sessions/3786/class... · AutoCAD® Secrets Exposed! 3 1 Write-Read Your Linetypes AutoCAD 2011 now allows you to control the

AutoCAD® Secrets Exposed!

21

32 Rotate Viewport

Rotate Viewport Use the system variable VPROTATEASSOC to control if the view rotates with the viewport when

rotating a viewport in a layout.

VPROTATEASSOC

Controls whether the view within a viewport is rotated with the viewport when the viewport is

rotated.

Saved in: Registry

0 When a viewport is rotated, the view inside is not rotated.

1 (default) When a viewport is rotated, the view inside is rotated to match the rotation of

the viewport.

Page 22: AutoCAD® Secrets Exposed!aucache.autodesk.com/au2011/sessions/3786/class... · AutoCAD® Secrets Exposed! 3 1 Write-Read Your Linetypes AutoCAD 2011 now allows you to control the

AutoCAD® Secrets Exposed!

22

33 Flat Shot?

This command creates a 2D representation of all 3D objects based on the current view. You can choose whether to place the block in the current file or in an external file. You have an option whether to display any of the following items.

Foreground Lines

Obscure Lines

Include Tangential Edges

How do you control the insertion point of the new “flatshot” block? The insertion point is generated from the current view, so if you create a named view with a “close-up” view of the 3D object and then generate the “flatshot” block, you will see that the insertion point is the bottom left origin of the named view display.

Page 23: AutoCAD® Secrets Exposed!aucache.autodesk.com/au2011/sessions/3786/class... · AutoCAD® Secrets Exposed! 3 1 Write-Read Your Linetypes AutoCAD 2011 now allows you to control the

AutoCAD® Secrets Exposed!

23

34 Viewport Symbology New to many users is the ability to define layer symbology (color, linetype, weight, etc) on a per

viewport basis similar to layer viewport freeze and thaw.

Use this process to coordinate viewports as shown above.

STEP 1: <Double-Click> in a viewport to activate it and to move the focus of AutoCAD to the viewport.

STEP 2: Open the Layer Manager and define the colors, weights, and linetypes using the new VPColor, VPLinetype and VPWeight columns. You might need to REGEN the viewport to see the changes.

Notice the “bluish tint” color added to the layer list to help you

identify what layer settings has been overridden on a viewport

basis.

Page 24: AutoCAD® Secrets Exposed!aucache.autodesk.com/au2011/sessions/3786/class... · AutoCAD® Secrets Exposed! 3 1 Write-Read Your Linetypes AutoCAD 2011 now allows you to control the

AutoCAD® Secrets Exposed!

24

35 On-the-Fly Basepoints You can modify the block insertion base point using the BASEPOINT option during insertion.

STEP 1: Run the INSERT command.

STEP 2: Key in B to define a new BASEPOINT on the block.

STEP 3: Snap to the new basepoint and place the block.

36 Streamline MTEXT Do you still use DTEXT more than MTEXT? If you could streamline your MTEXT command would

that help you make the transition? Try this out!

Create a custom MTEXT button using the following syntax:

^C^C_MTEXT;\W;0;

Is that better?

If you still want MTEXT to work like DTEXT try modifying this setting:

MTEXTFIXED=1

If I call this secret Multi-line DTEXT will you use MTEXT now?

Page 25: AutoCAD® Secrets Exposed!aucache.autodesk.com/au2011/sessions/3786/class... · AutoCAD® Secrets Exposed! 3 1 Write-Read Your Linetypes AutoCAD 2011 now allows you to control the

AutoCAD® Secrets Exposed!

25

38 PEDITACCEPT Use the system variable PEDITACCEPT to simplify your polyline editing. After all, have you ever

answered NO to the PEDIT question stating that the object you selected is not a polyline – would

you like to convert it to one? Me neither…what a silly question! To NEVER see this question again

change this system variable.

PEDITACCEPT

Suppresses the prompt “Do you want it to turn into one?” When the prompt is suppressed, the

selected object is automatically converted to a polyline.

Saved in: Registry

0 (default) The prompt is displayed

1 The prompt is suppressed

39 Take the Edge Out

Using the system variable EDGEMODE can simplify your trim and extend functionality. Did you

know that you can TRIM and EXTEND to non-existent edges?

EDGEMODE

Controls how the TRIM and EXTEND commands determine cutting and boundary edges

Saved in: Registry

0 (default) Uses the selected edge without an extension

1 Extends or trims the selected object to an imaginary extension of the cutting

or boundary edge

Page 26: AutoCAD® Secrets Exposed!aucache.autodesk.com/au2011/sessions/3786/class... · AutoCAD® Secrets Exposed! 3 1 Write-Read Your Linetypes AutoCAD 2011 now allows you to control the

AutoCAD® Secrets Exposed!

26

40 Undocumented Commands

Circle Tangent to 3 Points Use the undocumented command AI_CIRCTAN to draw a circle tangent to 3 points or objects.

41 Angle Lock? Ellen Finkelstein

Have you ever needed to draw a line at an odd angle; but it is just one line and it isn’t worth

changing or setting your POLAR settings. Try this trick out!

While drawing a line you can key-in <ANGLE to lock in the angle while you can still dynamically

determine the length. This effectively locks the angle for the next line segment. This is actually

using the POLAR OVERRIDE ANGLE as displayed on the command line.

How can you cancel or turn off this override? Just key-in the < symbol with no angle defined.

42 Disable Attributes? Need to place blocks but don’t have time to enter attributes right now? Use this system variable to

disable the attribute value entry.

ATTREQ

Controls whether INSERT uses default attribute settings during insertion of blocks.

Saved in: Registry

0 Assumes the defaults for the values of all attributes

1 (default) Turns on prompts or a dialog box for attribute values, as specified by ATTDIA

Page 27: AutoCAD® Secrets Exposed!aucache.autodesk.com/au2011/sessions/3786/class... · AutoCAD® Secrets Exposed! 3 1 Write-Read Your Linetypes AutoCAD 2011 now allows you to control the

AutoCAD® Secrets Exposed!

27

43 Color Priority Do you still have to manually fix the display or draw order of objects in your files? Using the

commands TEXTTOFRONT and HATCHTOBACK don’t always give you the results you want right?

Try this out instead.

Use the Express Tool CDORDER which is only available as a key-in command. This command

allows you specify display priority based on color, where the first color on the list is in front and the

last color is in back.

CDORDER Dialog Box Options Reordering method

Draworder Arranges the drawing order of the selected objects using the DRAWORDER

command.

Handles Arranges the drawing order of the selected objects by reordering objects in the drawing

database. Objects are deleted and recreated in the order dictated by their color.

Draworder Location

Front Reorders the colors in front-to-back sequence and places them in front of any

objects not specified in the Color list.

Back Reorders the colors in front-to-back sequence and places them behind any

objects not specified in the Color list.

Modify Blocks Orders objects in block insertions by color.

Move Up Moves the selected color higher in the display sequence.

Move Down Moves the selected color lower in the display sequence.

Use the CDRAWORDER command to order objects according to their displayed color. Selected

objects can have their color assigned by BYLAYER or explicitly by object.

External reference objects are not affected by CDORDER with Draworder. Use Handles with

objects that will be externally referenced. The use of Handles is recommended only for

cases where Draworder is not sufficient.

Page 28: AutoCAD® Secrets Exposed!aucache.autodesk.com/au2011/sessions/3786/class... · AutoCAD® Secrets Exposed! 3 1 Write-Read Your Linetypes AutoCAD 2011 now allows you to control the

AutoCAD® Secrets Exposed!

28

44 Buried in the Express Offset There is a couple of very handy options buried in the new OFFSET commands. The first option

allows you offset objects to the CURRENT LAYER instead of the same layer as the original object;

and the second allows you to perform a multiple offset so you don’t have to continuously pick that

first object.

OFFSET to CURRENT Layers STEP 1: Key-in OFFSET to start the command

STEP 2: Key-in L for LAYER

STEP 3: Key-in C for CURRENT and hit ENTER one more time.

STEP 4: Key-in the offset distance

STEP 5: Select the object to offset and the direction

You can put this on a button and make it a lot easier to use!

^C^C_offset;l;c;;

OFFSET MULTIPLE times STEP 1: Key-in OFFSET to start the command

STEP 2: Key-in offset distance

STEP 3: Select the object to offset

STEP 4: Key-in M for MULTIPLE

STEP 5: Select the direction for the offset

You can put this on a button and make it a lot easier to use!

^C^C_offset;\\m;

Page 29: AutoCAD® Secrets Exposed!aucache.autodesk.com/au2011/sessions/3786/class... · AutoCAD® Secrets Exposed! 3 1 Write-Read Your Linetypes AutoCAD 2011 now allows you to control the

AutoCAD® Secrets Exposed!

29

45 Copy Objects from the XREF Have you ever wanted to copy an object or several objects from a reference file?

Hopefully, you are already familiar with the single object method. To copy a single object you

use the Express Tool COPY NESTED OBJECTS.

Copy SINGLE Object from XREF

STEP 1: Select Express Copy Nested Objects

STEP 2: Select the object in the reference file and copy it to a new location.

The next option is a little more difficult, but well worth the effort!

Copy MULTIPLE Objects from XREF

STEP 1: Select the XREF you need to copy from

STEP 2: <Right-Click> and select the command EDIT XREF-IN-PLACE

STEP 3: Choose the level of editing you need, file, block, etc. and highlight the appropriate level.

STEP 4: Select the objects you want to copy and copy them to the new location.

STEP 5: Select the new copy of the objects.

STEP 6: Pick the Remove from Selection Set button on the Refedit toolbar. This will remove the newly copied objects from the xref file set.

STEP 7: SAVE your changes from the Refedit toolbar.

You are now back in the original drawing and the objects you copied are in this file not the Xref

file.

Page 30: AutoCAD® Secrets Exposed!aucache.autodesk.com/au2011/sessions/3786/class... · AutoCAD® Secrets Exposed! 3 1 Write-Read Your Linetypes AutoCAD 2011 now allows you to control the

AutoCAD® Secrets Exposed!

30

That's probably more than I have time for….but hopefully

not more that you wanted to know!

Thank you for your time Hope you enjoyed the session!

Looking for customized Training and Standards consulting

using your company standards and procedures?

Call for affordable and flexible rates and schedules.

Contact:

AARHUS ASSOCIATES, LLC

12005 Quail Drive

Bellevue, NE 68123-1175

www.aarhusassociates.com

Jeanne Aarhus

(402) 408-9696

[email protected]

Copyright © 2011 Aarhus Associates, LLC. Aarhus Associates and the Aarhus Associates Logo are registered trademarks of Aarhus Associates.

All other product names are trademarks of their respective owners. Aarhus Associates believes the information in this document is accurate as

of its publication date. Such information is subject to change without notice and is subject to applicable technical product descriptions. Aarhus

Associates is not responsible for inadvertent errors.

ASSOCIATES

aarhus