Escolar Documentos
Profissional Documentos
Cultura Documentos
Web: www.AUGI.com
1
Introduction
Welcome to AutoCAD 102, the second in this series of beginner AutoCAD classes. If you took the first
course in this series you should now know many of the do’s and don’ts and how to survive in the
AutoCAD world. This course will delve more into the program and reveal some lesser known and,
sometimes nearly hidden, powerful commands in AutoCAD. Before long you’ll be able to amaze your
coworkers with your knowledge of the timesaving features created to increase productivity.
We’ll also look into the 2006 CUI menu interface to show you how to create some basic custom menus.
Lastly, we’ll throw in some more tips and tricks, because the fans demand it.
Good idea: You can “dock” it to side by simply dragging and dropping it beyond the drawing
window.
2
There are several methods for adding your selection to
the Properties command. The most straight forward way
is to pick the Select button. You can type pselect at the
command prompt or click on the icon. The icon is
located on the upper right hand corner of the Properties
dialog box. The image to the left shows where it is
located.
Simply select the entities and hit the enter key and the
entities are selected and opened in the Properties Dialog
Of the three icons, the one on the left is kind of the odd
man out. This icon is actually a toggle for a system
variable, not a command. It toggles on or off the
PickAdd system variable. PickAdd controls how
selected items are added to the selection set. Here’s
how it works.
Setting PickAdd to 1 turns on the variable. Each object selected, weather you pick it, use a window or
crossing, is added to the current selection set. In this case you can use SHIFT while selecting to
remove objects from the set.
Quick Select
Note: Keep in mind when selecting entities by property first consider whether these
properties are by entity or BYLAYER for any objects in your drawing. For example, an
3
object may appear red because its color is set to BYLAYER and the layer color is red.
Good idea: Make sure that your PDMODE setting is one that will allow you to see the points you
just placed. PDMODE settings of 0 or 1 will make the points virtually invisible.
4
Measure is not the same as Distance
It may seem laughable once you’ve
already learned about it, but a lot of
people expect the Measure
command to do what the Distance
command does. It does not
“measure” the length of an object. It
works in similar manner to the Divide
command. The difference being that
the Measure command places points
or blocks along an object at a specified distance rather than a specified number of spaces. For
example you can place points at 50’ intervals along a pline. Just like Divide you can also place blocks
as well as placing points.
Note: Measure does not place a point or block at the endpoint of the line that you pick.
An array of possibilities
5
The same positive and negative
number input works with the offsets as
well as rotation. The image on the left
shows how negative inputs for the
Row and Column offsets change the
array. In the preview you can see that
it is now down and to the left of the
selected object.
The small box in the lower left hand corner of the dialog box is the toggle to rotate the items as copied.
This works in the same manner as rotating objects in the Measure and Divide commands
6
You can change the limit of copies that Array creates by setting the MaxArray system
variable with a number between 100 and 10000000 (ten million). When changing the
value of MaxArray, you have to enter it with the capitalization shown.
7
ATP254
AutoCAD 102 – Improving Your
AutoCAD Survival Skills
Segment 2
Web: www.AUGI.com
1
Introduction
Welcome to Segment 2, in this segment we’re going to tackle the CUI menu interface to show you how
to create some basic custom menus. The Custom User Interface gives you the ability to customize
AutoCAD to better fit your needs. We’ll cover some of the main concepts and go into more specifics on
several of the topics that will have the biggest impact on your efficiency.
AutoCAD 2006 remedied this situation with the introduction of the Custom User Interface (CUI). The
new environment involves a graphic interface and now allows modifications to be done inside AutoCAD.
Instead of editing the menu files in ASCII text the CUI interface uses an Extensible Markup Language
(XML) based format.
Once you become familiar with the interface it actually simplifies the task of customization. This gives
you the ability to customize menus, workspaces, toolbars and even keyboard short cuts all from one
interface. How nice would it be, to be able to have different sets of toolbars open for different tasks?
You can also right click over an icon or right click in the toolbar area but not
on any toolbar and select the Customize option. This is shown in the figure
on the left.
2
Understanding the Custom User Interface
The figure above shows the Custom User Interface Dialog, we’ll briefly cover the different parts of the
dialog box and help get you familiar with their functions. The CUI interface is divided into two tabs, the
figure above is displaying the Customization Tab. Most of your work will be done in this Tab. The other
tab is the Transfer Tab, this where you transfer menu items from existing menus to the new ones. Lets
look at each section of the Customization Tab in more detail. Just like a real window each section is
referred to as a pane.
3
Customizations In
The figure to the right shows the Customizations
In pane. This pane is very import, it determines
which menu file is being modified and offers a
tree view of all the elements in that menu file.
The menu bar across the top has a drop down
menu that allows you to choose which CUI file to
modify.
The three icons on the right are used to partial
load menus, save the changes made to the
current menu, and to change the appearance of
the tree view.
The tree view shows the different elements of the
current CUI file. Each one of these is commonly
referred to as a node. This is only really important
to know when you’re speaking to programmers
and don’t want to sound stupid.
Good idea: Try right clicking on all of the
nodes and see what options are available
to each.
Command list
This pane is located directly under the
Customizations In pane. It is a list of all the
commands in the currently loaded menu file.
The New button is used to create a new
command. When you click on it the two panes
on the right side show the information for the
new command you are about to create.
4
Preview Pane
Properties Pane
This pane is located in the bottom right hand corner
of the dialog box. It functions much like the
Properties dialog box that we covered in the last
segment. Depending upon what object you are
modifying the content will change.
The figure on the left shows the properties of the
toolbar that I’m using as an example in the Preview
Pane above. The properties it displays will change
for different objects that are being edited.
5
The Transfer Tab
I’m showing you this one last but it’s really the one you’ll most likely use first. The Transfer tab is used
for exactly what the name says, you can transfer menu elements from the main CUI file to a new CUI
file. The default when you open the transfer tab is to create a new file, but you can use the roll down
menu to open another file or save the current one.
6
Once you create the toolbar you can drag items from main menu on the left and drop them into the new
menu. In the figure below the command that is selected in the right I‘ve
7
ATP254
AutoCAD 102 – Improving Your
AutoCAD Survival Skills
Segment 3
Web: www.AUGI.com
1
Introduction
Welcome to Segment 3, in this segment we’re going to cover adding macros and lisp routines to your
custom toolbars. We’ll also cover some, always heavily anticipated, tips and tricks that will help super
charge your AutoCAD production speed.
Understanding Macros
Before you can create custom commands you need to learn about Macros. A Macro is very similar to a
script file with the main difference being that macros are contained in the menu, script files are text files
that are kept outside of AutoCAD.
Just like in a script file a macro is a command or string of commands that are written out in a string of
text. There are also a few options that macros have that are. There are several codes you can use in
macros that not available in script files. The list below shows the most common ones.
Good idea: Use semicolons in your macro to represent a Return rather than a space, it’s easier
to count and keep track of.
The macro I’m going to use for our example is a macro that will run the Purge command and purge all
unreferenced items in the drawing. There are two problems that we encounter with this.
The first roadblock is that the Purge command has a dialog box, which won’t work in a macro. This
problem can be fixed by adding a dash (-) in front of the command name. This works at the command
prompt as well and not just with the purge command, most commands with a dialog box will work the
same way. Typing –purge will start the command without a dialog box but that leads to our second
problem.
One of the options of Purge is to purge all nested entities, this option is not available with the command
line version. To fix this we simply have to run the command more than once. Three types usually gets
everything. So first we run the command to see the prompts that we will need to input into the macro.
This is what is we see when we run the command and put in the necessary responses:
2
Command: -purge
From this we can create the macro which would be –Purge a * n. With semicolons instead of spaces
and running the command three times the end result is this –purge;a;*;n;–purge;a;*;n;–purge;a;*;n.
Note: any space represents a Return, make sure you don’t place any extra in your
macro. It’s a common mistake to leave one at the end.
3
Clicking on the box will open the Long String Editor. In this
box you can enter the macro for the command.
Profiles are used more for the “background” settings in AutoCAD. They’re used to store user options,
support paths, and system variables. One of the best benefits to profiles is that they are portable. You
can export the profile to a .arg file and import the file to another computer.
The down side to using profiles is that you have to export the profile and then import it back into
AutoCAD in order to update the changes that you have made. You can’t simply save the changes to it.
You also have to manage your profiles from the Options dialog box, there is no Profile menus or
toolbars.
Workspaces are used to control the things that you see on the screen. They control what menus,
toolbars, and dockable windows are open and where they
are located. When you use or switch a workspace, you
change the display of your drawing area. You can easily
switch to another workspace within a drawing session. This
will allow you to have different toolbars and menus open for
different tasks.
4
The figure on the left shows the My Workspaces icon. You can
set this to your favorite workspace and switch back to it by
clicking on this button.
The Tray Settings at the bottom of the menu will open the tray
settings dialog box. This will allow you to turn on or off the Display
Icons from Services. In case you don’t speak fluent computer
geek what that that means, translated into English, is you can turn
off the icons in the status bar tray like the Communication Center,
Lock Toolbars and Notification balloons.
5
Being able to change the Notification balloon settings
is a really nice feature. If you have several drawings
open and update a reference file it can be annoying to
have to keep turning off all the balloons that pop up to
tell you the reference drawing was updated.
Good Idea: If you don’t want to close it completely instead of closing the window you could
undock it and enable Auto-hide so that it will only expand when you place your cursor over it.
In Conclusion
I hope you found some useful information in this segment. If you want more tips and tricks go to the
AUGI Tips and Tricks forum, there are a lot of great minds coming up with wonderful short cuts in there.
Remember that this is only part of the course, support is always available online in the course forum. I
urge you to go to the visit the course forum and as ask any questions that you may have about this
segment. It’s our mantra that the only stupid question is the one you don’t ask.