Customization Guide: Autocad LT 2011
Customization Guide: Autocad LT 2011
Customization Guide
February 2010
© 2010 Autodesk, Inc. All Rights Reserved. Except as otherwise permitted by Autodesk, Inc., this publication, or parts thereof, may not be
reproduced in any form, by any method, for any purpose.
Certain materials included in this publication are reprinted with the permission of the copyright holder.
Trademarks
The following are registered trademarks or trademarks of Autodesk, Inc., and/or its subsidiaries and/or affiliates in the USA and other countries:
3DEC (design/logo), 3December, 3December.com, 3ds Max, Algor, Alias, Alias (swirl design/logo), AliasStudio, Alias|Wavefront (design/logo),
ATC, AUGI, AutoCAD, AutoCAD Learning Assistance, AutoCAD LT, AutoCAD Simulator, AutoCAD SQL Extension, AutoCAD SQL Interface,
Autodesk, Autodesk Envision, Autodesk Intent, Autodesk Inventor, Autodesk Map, Autodesk MapGuide, Autodesk Streamline, AutoLISP, AutoSnap,
AutoSketch, AutoTrack, Backburner, Backdraft, Built with ObjectARX (logo), Burn, Buzzsaw, CAiCE, Civil 3D, Cleaner, Cleaner Central, ClearScale,
Colour Warper, Combustion, Communication Specification, Constructware, Content Explorer, Dancing Baby (image), DesignCenter, Design
Doctor, Designer's Toolkit, DesignKids, DesignProf, DesignServer, DesignStudio, Design Web Format, Discreet, DWF, DWG, DWG (logo), DWG
Extreme, DWG TrueConvert, DWG TrueView, DXF, Ecotect, Exposure, Extending the Design Team, Face Robot, FBX, Fempro, Fire, Flame, Flare,
Flint, FMDesktop, Freewheel, GDX Driver, Green Building Studio, Heads-up Design, Heidi, HumanIK, IDEA Server, i-drop, ImageModeler, iMOUT,
Incinerator, Inferno, Inventor, Inventor LT, Kaydara, Kaydara (design/logo), Kynapse, Kynogon, LandXplorer, Lustre, MatchMover, Maya,
Mechanical Desktop, Moldflow, Moonbox, MotionBuilder, Movimento, MPA, MPA (design/logo), Moldflow Plastics Advisers, MPI, Moldflow
Plastics Insight, MPX, MPX (design/logo), Moldflow Plastics Xpert, Mudbox, Multi-Master Editing, Navisworks, ObjectARX, ObjectDBX, Open
Reality, Opticore, Opticore Opus, Pipeplus, PolarSnap, PortfolioWall, Powered with Autodesk Technology, Productstream, ProjectPoint, ProMaterials,
RasterDWG, RealDWG, Real-time Roto, Recognize, Render Queue, Retimer,Reveal, Revit, Showcase, ShowMotion, SketchBook, Smoke, Softimage,
Softimage|XSI (design/logo), Sparks, SteeringWheels, Stitcher, Stone, StudioTools, ToolClip, Topobase, Toxik, TrustedDWG, ViewCube, Visual,
Visual LISP, Volo, Vtour, Wire, Wiretap, WiretapCentral, XSI, and XSI (design/logo).
All other brand names, product names or trademarks belong to their respective holders.
Disclaimer
THIS PUBLICATION AND THE INFORMATION CONTAINED HEREIN IS MADE AVAILABLE BY AUTODESK, INC. "AS IS." AUTODESK, INC. DISCLAIMS
ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR
FITNESS FOR A PARTICULAR PURPOSE REGARDING THESE MATERIALS.
Published by:
Autodesk, Inc.
111 McInnis Parkway
San Rafael, CA 94903, USA
Contents
iii
Hatch Patterns with Multiple Lines . . . . . . . . . . . . . . . . . . . . 34
iv | Contents
Create Tooltips and Extended Help for Commands . . . . . . . . 122
Create Status Line Help Messages . . . . . . . . . . . . . . . . . 128
Assign, Create, and Manage Images for Commands . . . . . . . 129
Assign Images to a Command . . . . . . . . . . . . . . . . 129
Create and Edit Custom Images for Commands . . . . . . 132
Manage, Import, and Export Custom Images . . . . . . . . 134
Customize User Interface Elements . . . . . . . . . . . . . . . . . . . 139
Quick Access Toolbars . . . . . . . . . . . . . . . . . . . . . . . 142
Ribbon . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148
Ribbon Panels . . . . . . . . . . . . . . . . . . . . . . . . 149
Ribbon Tabs . . . . . . . . . . . . . . . . . . . . . . . . . 180
Ribbon Contextual Tab States . . . . . . . . . . . . . . . . 186
Toolbars . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190
Create and Edit Toolbars . . . . . . . . . . . . . . . . . . . 190
Add Flyouts to a Toolbar . . . . . . . . . . . . . . . . . . . 202
Add, Remove or Switch Toolbar Controls . . . . . . . . . . 207
Pull-down and Shortcut Menus . . . . . . . . . . . . . . . . . . 212
Overview of Pull-Down and Shortcut Menus . . . . . . . . 212
Create a Pull-Down Menu . . . . . . . . . . . . . . . . . . 213
Create a Shortcut Menu . . . . . . . . . . . . . . . . . . . 217
Create Submenus . . . . . . . . . . . . . . . . . . . . . . 227
Reference Pull-Down or Shortcut Menus . . . . . . . . . . 229
Swap and Insert Pull-Down Menus . . . . . . . . . . . . . 230
Quick Properties . . . . . . . . . . . . . . . . . . . . . . . . . . 233
Rollover Tooltips . . . . . . . . . . . . . . . . . . . . . . . . . . 241
Keyboard Shortcuts . . . . . . . . . . . . . . . . . . . . . . . . 248
Shortcut Keys . . . . . . . . . . . . . . . . . . . . . . . . 248
Temporary Override Keys . . . . . . . . . . . . . . . . . . 255
Double Click Actions . . . . . . . . . . . . . . . . . . . . . . . 262
Overview of Double Click Actions . . . . . . . . . . . . . . 262
Double Click Action Object Names . . . . . . . . . . . . . 266
Examples of Double Click Actions . . . . . . . . . . . . . 269
Mouse Buttons . . . . . . . . . . . . . . . . . . . . . . . . . . . 270
Overview of Mouse Buttons . . . . . . . . . . . . . . . . . 270
Accept Coordinate Entry in Button Menus . . . . . . . . . 271
Legacy Interface Elements . . . . . . . . . . . . . . . . . . . . . 272
Create Tablet Menus . . . . . . . . . . . . . . . . . . . . . 272
Customize Tablet Buttons . . . . . . . . . . . . . . . . . . 274
Create Image Tile Menus . . . . . . . . . . . . . . . . . . 275
Customize Workspaces . . . . . . . . . . . . . . . . . . . . . . . . . . 280
Overview of Workspace Customization . . . . . . . . . . . . . . 280
Control User Interface Elements Outside the CUI Editor . . . . . 293
Control User Interface Elements in the CUI Editor . . . . . . . . 296
Control the Appearance of Palettes . . . . . . . . . . . . . . . . 312
Transfer and Migrate Customization . . . . . . . . . . . . . . . . . . 316
Customize User Interface (CUI) Editor FAQs . . . . . . . . . . . . . . 319
Contents | v
Chapter 5 DIESEL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 325
Customize the Status Line . . . . . . . . . . . . . . . . . . . . . . . . 325
Overview of the MODEMACRO System Variable . . . . . . . . . 325
Set MODEMACRO Values . . . . . . . . . . . . . . . . . . . . . 326
DIESEL Expressions in Macros . . . . . . . . . . . . . . . . . . . . . . 328
Catalog of DIESEL Functions . . . . . . . . . . . . . . . . . . . . . . 331
+ (addition) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 331
- (subtraction) . . . . . . . . . . . . . . . . . . . . . . . . . . . 331
* (multiplication) . . . . . . . . . . . . . . . . . . . . . . . . . 331
/ (division) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 332
= (equal to) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 332
< (less than) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 333
> (greater than) . . . . . . . . . . . . . . . . . . . . . . . . . . . 333
!= (not equal to) . . . . . . . . . . . . . . . . . . . . . . . . . . 333
<= (less than or equal to) . . . . . . . . . . . . . . . . . . . . . 334
>= (greater than or equal to) . . . . . . . . . . . . . . . . . . . . 334
and . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 335
angtos . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 335
edtime . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 336
eq . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 337
eval . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 338
fix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 338
getenv . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 338
getvar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 339
if . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 339
index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 340
nth . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 340
or . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 341
rtos . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 341
strlen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 341
substr . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 342
upper . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 342
xor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 343
DIESEL Error Messages . . . . . . . . . . . . . . . . . . . . . . . . . . 343
vi | Contents
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 359
Contents | vii
viii
Basic Customization
1
Your dealer can offer you independently developed applications that can further tailor
AutoCAD LT to your needs.
Overview of Customization
AutoCAD LT can be customized in simple ways. For example, you can change
the directory structure or move a button from one toolbar to another. If you
want to change the interface further, you can edit the CUIx file and use DIESEL
code to create customizations with your own commands.
The list that follows is arranged from least to most complex:
■ Organize files. You can organize program, support, and drawing files. For
example, you can make a separate folder for each project that includes only
the support files that project needs.
■ Customize Tool Palettes. You can create a tool by dragging objects from
your drawing onto a tool palette. You can create a tool palette by
right-clicking on the Tool Palettes title bar and selecting New Palette. For
information about customizing tool palettes, see “Customize Tool Palettes”
in the User's Guide.
1
■ Create custom linetypes and hatch patterns. You can create linetypes and
hatch patterns that conform to your company standards and working
methods.
■ Customize the user interface. The CUIx file controls many aspects of the
user interface, including the behavior of your pointing device buttons and
the functionality and appearance of pull-down, tablet, and image tile
menus, toolbars, and accelerator keys. You can edit or create a CUIx file
to add commands or combine commands and assign them to a menu,
toolbar, or other location.
■ Customize the status line. You can use the DIESEL string expression
language and the MODEMACRO system variable to provide additional
information at the status line, such as the date and time or system variable
settings.
See also:
■ “Toolbars”
■ “Custom Linetypes”
■ “DIESEL”
Commands
CUI
Manages the customized user interface elements in the product.
CUSTOMIZE
Customizes tool palettes and tool palette groups.
System Variables
TOOLTIPS
Controls the display of tooltips on the ribbon, toolbars, and other user
interface elements.
■ Directories listed in the search path specified on the Files tab in OPTIONS.
(See Specify Search Paths and File Locations in the User's Guide.)
Directory Structure
AutoCAD LT uses tree-structured directories and subdirectories. It is
recommended that you keep supplemental files (such as third-party
applications and customization files) separate from the AutoCAD LT program
and support files. This makes it easier to track possible conflicts and to upgrade
each application without affecting the others.
You can create a new directory on the same level as the main AutoCAD LT
directory and store any customization files or third-party applications in
subdirectories on the next level.
If you want to store drawings by job, you can create a third directory on the
same level. Subdirectories for each job could contain drawing files and a
subdirectory for related support files.
6 If all the preceding steps fail, the search terminates with a warning
message about illegal command names.
See also:
Commands
OPTIONS
Customizes the program settings.
System Variables
LOCALROOTPREFIX
Stores the full path to the root folder where local customizable files were
installed.
ROAMABLEROOTPREFIX
Stores the full path to the root folder where roamable customizable files were
installed.
Multiple Configurations
If you use more than one pointing device or use different plotters, you can
set up more than one configuration file to make it easy to switch between
devices.
When you configure AutoCAD LT for a pointing device and plotter drivers,
the information you supply is recorded in a configuration file.
Typically, only a single configuration is necessary, but you may need multiple
configurations. For example, if you use a mouse for most of your work but
occasionally require a large digitizing tablet, you can set up your system to
handle multiple configurations rather than reconfiguring each time you change
a device.
The configuration file stores the values of many AutoCAD LT system variables
and the configuration options defined in the Options dialog box. If you want
different settings for these system variables and operating parameters, you
can save those values to different configuration files. For a list of the system
variables and where they are stored, see System Variables in the Command
Reference.
To take advantage of multiple configurations, you must set up AutoCAD LT
to use different configuration files. Use the /c switch to specify alternative
configuration files at startup.
Quick Reference
Commands
OPTIONS
Customizes the program settings.
Using an ASCII text editor (such as Notepad), save the batch program to a file
named acadlt.bat. Be sure to change the drive and directory names to match
those on your system. Place this file in a directory that is on your system search
path (for example, C:\winnt). You can run this batch program using the Run
command on the Start menu or by double-clicking the file in Explorer. If you
saved the file as acadlt.bat, use the following syntax:
acltjobname
where jobname is the name of the job directory to make current.
Quick Reference
NOTE In some operating systems, the folders that are located under your profile
are hidden by default. To display these files, you may need to change your display
settings. On the Start menu, click Control Panel ➤ Folder Options. In the Folder
Options dialog box, on the View tab, click Show Hidden Files and Folders.
3 In the Options dialog box, Files tab, click the plus sign (+) to the left of
Printer Support File Path.
4 Click the plus sign (+) to the left of the Plot Style Table Search Path file.
5 Under Plot Style Table Search Path, click the path name to view the
location of your plot style files.
NOTE You can also locate your plot style files by entering stylesmanager on the
AutoCAD LT command line.
3 In the Options dialog box, Files tab, click the plus sign (+) to the left of
Printer Support File Path.
4 Click the plus sign (+) to the left of Printer Configuration Search Path.
5 Under Printer Configuration Search Path, click the path name to view
the location of your plotter files.
NOTE You can also locate your plotter files by entering plottermanager on the
AutoCAD LT command line.
3 In the Options dialog box, Files tab, click the plus sign (+) to the left of
Printer Support File Path.
4 Under Printer Description File Search Path, click the path name to view
the location of your PMP file.
3 In the Options dialog box, Files tab, click the plus sign (+) to the left of
Customization Files.
4 Click the plus sign (+) to the left of Main Customization File.
6 Click the plus sign (+) to the left of Enterprise Customization File.
7 Under Enterprise Customization File, click the path name to view the
location of your enterprise customization files.
3 In the Options dialog box, Files tab, click the plus sign (+) to the left of
Customization Files.
4 Under Custom Icon Location, click the path name to view the location
for the custom button image files used with your customization files.
3 In the Options dialog box, Files tab, click the plus sign (+) to the left of
Help and Miscellaneous File Names to expand the list.
4 Click the plus sign (+) to the left of the file you want to locate, and then
click the path name to view the location of the files.
3 In the Options dialog box, Files tab, click the plus sign (+) to the left of
Text Editor, Dictionary, and Font File Names.
4 Click the plus sign (+) to the left of Font Mapping File.
5 Under Font Mapping File, click the path name to view the location of
your font mapping file.
3 In the Options dialog box, Files tab, click the plus sign (+) to the left of
Text Editor, Dictionary, and Font File Names.
4 Click the plus sign (+) to the left of Alternate Font File.
5 Under Alternate Font File, click the path name to view the location of
your alternate font file.
3 In the Options dialog box, Files tab, click the plus sign (+) to the left of
Support File Search Path.
4 Under Support File Search Path, click a path name to view the location
of your support files.
3 In the Options dialog box, Files tab, click the plus sign (+) to the left of
Template Settings.
4 Under Template Settings, click the plus sign (+) to the left of Drawing
Template File Location.
5 Under Drawing Template File Location, click the path name to view the
location of your drawing template files.
■ Images
■ Hyperlinks
■ Color
■ Title
There are four default Publish to Web templates that you can customize:
NOTE You must be familiar with HTML syntax to customize the Publish to Web
templates.
You can make changes or additions to the look and feel of a template, but
you cannot change the arrangement of images within it. For example, in the
Array of Thumbnails template, the images are presented across the page in rows.
You cannot alter the presentation of the images, but you can wrap text and
graphics around the table of images.
WARNING To ensure that you do not overwrite the default Publish to Web
template files, back up those files before you make any changes to them.
2 In the Options dialog box, Files tab, click the plus sign (+) next to
Template Settings. Then click the plus sign next to Drawing Template
File Location.
3 Move the cursor to the path name that is displayed and click inside it,
and press F2, and press CTRL+C to copy it.
6 In the Select File dialog box, right-click an empty area in the vertical
panel on the left side, and click Add on the shortcut menu.
8 Press CTRL+V to paste the path into the Item Path box, and click OK.
You can now access the Template folders by clicking the button in the
left panel of the Select File dialog box.
5 Reopen the PTWTemplates folder, and right-click the new folder and
rename it.
6 Right-click the new folder and click Open to display its contents.
7 Rename the Publish to Web template (PWT) file with an .htm or .html file
extension.
9 Review the comments and make changes to the parts of the template
you want to customize.
10 Save the template with a .pwt file extension. Make sure you save the file
to the template folder you created in step 3.
NOTE Each template folder can contain only one PWT file. If you create a
new PWT file, make sure you delete any other PWT files that exist in the same
folder.
When you run the Publish to Web wizard, the new template is displayed
in the list of templates.
Quick Reference
Commands
PUBLISHTOWEB
Creates HTML pages that include images of selected drawings.
NOTE Before you edit acadlt.pgp, create a backup so that you can restore it later,
if necessary.
where abbreviation is the command alias that you enter at the command
prompt and command is the command being abbreviated. You must enter an
asterisk (*) before the command name to identify the line as a command alias
definition.
If you can enter a command transparently, you can also enter its alias
transparently. When you enter the command alias, the full command name
is displayed at the command prompt and the command is executed.
You can create command aliases that include the special hyphen (-) prefix,
such as those listed here, that accesses the version of a command that displays
command prompts instead of a dialog box.
BH, *-BHATCH
BD, *-BOUNDARY
NOTE You cannot use command aliases in command scripts. Using command
aliases in menu files is not recommended.
Quick Reference
Commands
REINIT
Reinitializes the digitizer, digitizer input/output port, and program parameters
file.
examples of linetypes
A LIN file can contain definitions of many simple and complex linetypes. You
can add new linetypes to an existing LIN file, or you can create your own LIN
file. To create or modify linetype definitions, edit the LIN file using a text editor
or word processor or use LINETYPE at the command prompt.
When you create a linetype, you must load the linetype before you can use it.
The LIN files included in AutoCAD LT are acadlt.lin and acadltiso.lin. You can
display or print these text files to better understand how to construct linetypes.
19
Quick Reference
Commands
LINETYPE
Loads, sets, and modifies linetypes.
System Variables
MEASUREINIT
Controls whether a drawing you start from scratch uses imperial or metric
default settings.
This indicates a repeating pattern starting with a dash 0.5 drawing units long,
a space 0.25 drawing units long, a dot, and another space 0.25 drawing units
long. This pattern continues for the length of the line, ending with a dash 0.5
drawing units long. The linetype would be displayed as shown below.
__ . __ . __ . __ . __ . __ . __ . __
LIN files must be saved in ASCII format and use an .lin file extension. Additional
information about each field in a linetype definition follows.
Description
The description of the linetype should help you visualize the linetype when
you edit the LIN file. The description is also displayed in the Linetype Manager
and in the Load or Reload Linetypes dialog box.
The description is optional and can include
If you omit the description, do not insert a comma after the linetype name.
A description cannot exceed 47 characters.
2 Enter c (Create).
4 In the Create or Append Linetype File dialog box, select an LIN linetype
library file from the File Name box and choose Save.
If you select an existing file, the new linetype name is added to the
linetype names in the file.
■ Enter negative real numbers for spaces. The value defines the length
of the space in drawing units.
■ Enter positive real numbers for dashes. The value defines the length
of the dash in drawing units.
■ Separate each dot, dash, or space value from the next with a comma.
NOTE When you create a linetype, it is not loaded into your drawing automatically.
Use the Load option of LINETYPE.
2 Create a header line that includes an asterisk and a linetype pattern name.
The name of the linetype pattern is limited to 31 characters.
■ Enter negative real numbers for spaces. The value defines the length
of the space in drawing units.
■ Enter positive real numbers for dashes. The value defines the length
of the dash in drawing units.
■ Separate each dot, dash, or space value from the next with a comma.
Commands
LINETYPE
Loads, sets, and modifies linetypes.
System Variables
MEASUREINIT
Controls whether a drawing you start from scratch uses imperial or metric
default settings.
This indicates a repeating pattern starting with a dash 0.5 drawing units long,
a space 0.2 drawing units long, the characters HW with some scale and
placement parameters, and another space 0.2 drawing units long. The text
Notice that the total upstroke length is 0.2 + 0.2 = 0.4 and that the text origin
is offset -.01 units in the X direction from the end of the first upstroke. An
equivalent linetype would be
*HOT_WATER_SUPPLY,---- HW ---- HW ---- HW ---- HW ---- HW ----
A,.5,-.1,["HW",STANDARD,S=.1,U=0.0,X=0.0,Y=-.05],-.3
The total upstroke is still 0.1 + 0.3 = 0.4, but the text origin is not offset in the
X direction.
Additional information about each field in the character descriptor follows.
The values to be used are signed decimal numbers such as 1, -17, and 0.01.
text The characters to be used in the linetype.
text style name The name of the text style to be used. If no text style is
specified, AutoCAD LT uses the currently defined style.
scale S=value. The scale factor to be used for the text style relative to the scale
of the linetype. The height of the text style is multiplied by the scale factor.
If the height is 0, the value for S=value alone is used as the height.
xoffset X=value. The shift of the text on the X axis of the linetype, which is
along the line. If xoffset is omitted or is 0, the text is elaborated with no
offset. Use this field to control the distance between the text and the previous
pen-up or pen-down stroke. This value is not scaled by the scale factor defined
by S=value, but it is scaled to the linetype.
yoffset Y=value. The shift of the text in the Y axis of the linetype, which is at
a 90-degree angle to the line. If yoffset is omitted or is 0, the text is elaborated
with no offset. Use this field to control the vertical alignment of the text with
respect to the line. This value is not scaled by the scale factor defined by
S=value, but it is scaled to the linetype.
2 Add the text character descriptor within the linetype pattern, using the
following format:
["text",textstylename,scale,rotation,xoffset,yoffset]
Quick Reference
Commands
LINETYPE
Loads, sets, and modifies linetypes.
System Variables
MEASUREINIT
Controls whether a drawing you start from scratch uses imperial or metric
default settings.
The default hatch pattern ANSI31 shown in the Boundary Hatch and Fill dialog
box looks like this:
27
and is defined as follows:
*ANSI31, ANSI Iron, Brick, Stone masonry
45, 0,0, 0,.125
The pattern name on the first line, *ANSI31, is followed by a description: ANSI
Iron, Brick, Stone masonry. This simple pattern definition specifies a line
drawn at an angle of 45 degrees, that the first line of the family of hatch lines
is to pass through the drawing origin (0,0), and that the spacing between
hatch lines of the family is to be 0.125 drawing units.
Hatch pattern definitions follow these rules:
■ AutoCAD LT ignores both blank lines and text to the right of a semicolon.
■ The delta-y value indicates the spacing between members of the family;
that is, it is measured perpendicular to the lines.
NOTE A blank line must be placed after the last hatch pattern definition in a PAT
file. If a blank line is not placed after the last hatch pattern definition, the last hatch
pattern definition will not be accessible when creating a hatch fill.
NOTE When changing the value of MaxHatch, you must enter MaxHatch with
the capitalization as shown.
2 Create a header line that includes an asterisk and a pattern name. The
name of the hatch pattern is limited to 31 characters.
■ A delta-x of 0
Quick Reference
Commands
ADCENTER
Manages and inserts content such as blocks, xrefs, and hatch patterns.
FILL
Controls the filling of objects such as hatches, 2D solids, and wide polylines.
System Variables
FILLMODE
Specifies whether hatches and fills, 2D solids, and wide polylines are filled
in.
HPANG
Sets the angle for new hatch patterns.
HPBOUND
Controls the object type created by HATCH and BOUNDARY.
HPDOUBLE
Specifies hatch pattern doubling for user-defined patterns.
HPNAME
Sets the default hatch pattern name.
HPSCALE
Sets the hatch pattern scale factor.
HPSPACE
Sets the hatch pattern line spacing for user-defined patterns.
For example, to modify a pattern for 45-degree lines to draw dashed lines with
a dash length of 0.5 units and a space between dashes of 0.5 units, the line
definition would be
*DASH45, Dashed lines at 45 degrees
45, 0,0, 0,.5, .5,-.5
This is the same as the 45-degree pattern shown in Overview of Hatch Pattern
Definitions on page 27, but with a dash specification added to the end. The
pen-down length is 0.5 units, and the pen-up length is 0.5, meeting the stated
objectives. If you wanted to draw a 0.5-unit dash, a 0.25-unit space, a dot, and
a 0.25-unit space before the next dash, the definition would be
*DDOT45,Dash-dot-dash pattern: 45 degrees
45, 0,0, 0,.5, .5,-.25, 0,-.25
This draws a family of lines separated by 0.5, with each line broken equally
into dashes and spaces. Because delta-x is zero, the dashes in each family
member line up. An area hatched with this pattern would look like this:
It is the same, except that you have set delta-x to 0.5. This offsets each
successive family member by 0.5 in the direction of the line (in this case,
parallel to the X axis). Because the lines are infinite, the dash pattern slides
down the specified amount. The hatched area would look like this:
2 Create a header line that includes an asterisk and a pattern name. The
name of the hatch pattern is limited to 31 characters.
Commands
ADCENTER
Manages and inserts content such as blocks, xrefs, and hatch patterns.
FILL
Controls the filling of objects such as hatches, 2D solids, and wide polylines.
HATCH
HATCHEDIT
Modifies an existing hatch or fill.
SOLID
Creates solid-filled triangles and quadrilaterals.
System Variables
FILLMODE
Specifies whether hatches and fills, 2D solids, and wide polylines are filled
in.
HPANG
Sets the angle for new hatch patterns.
HPBOUND
Controls the object type created by HATCH and BOUNDARY.
HPDOUBLE
Specifies hatch pattern doubling for user-defined patterns.
HPNAME
Sets the default hatch pattern name.
HPSCALE
Sets the hatch pattern scale factor.
HPSPACE
Sets the hatch pattern line spacing for user-defined patterns.
The following figure illustrates a squared-off, inverted-U pattern (one line up,
one over, and one down). The pattern repeats every one unit, and each unit
is 0.5 high and wide.
The first line (the up bar) is a simple dashed line with 0,0 origin. The second
line (the top bar) should begin at the end of the up bar, so its origin is 0,.5.
The third line (the down bar) must start at the end of the top bar, which is at
or
270, .5,1, 0,1, -.5,.5
The dashed pattern starts at the origin points and continues in the vector
direction given by the angle specification. Therefore, two dashed-line families
that are opposed 180 degrees are not alike. Two solid-line families are alike.
The following pattern creates six-pointed stars.
This example can help you refine your skills at pattern definition. (Hint: 0.866
is the sine of 60 degrees.)
The following is the AutoCAD LT definition of this pattern:
*STARS,Star of David
0, 0,0, 0,.866, .5,-.5
60, 0,0, 0,.866, .5,-.5
120, .25,.433, 0,.866, .5,-.5
2 Create a header line that includes an asterisk and a pattern name. The
name of the hatch pattern is limited to 31 characters.
■ A delta-x of any value if you want to offset alternating lines in the line
family
5 Create a second line including all the parameters in the previous step.
Quick Reference
Commands
ADCENTER
Manages and inserts content such as blocks, xrefs, and hatch patterns.
FILL
Controls the filling of objects such as hatches, 2D solids, and wide polylines.
HATCH
HATCHEDIT
Modifies an existing hatch or fill.
SOLID
Creates solid-filled triangles and quadrilaterals.
System Variables
FILLMODE
Specifies whether hatches and fills, 2D solids, and wide polylines are filled
in.
HPANG
Sets the angle for new hatch patterns.
HPBOUND
Controls the object type created by HATCH and BOUNDARY.
39
■ Create or change macros
■ Legacy user interface elements (tablets, tablet buttons, screen menus and
image tile menus)
■ Mouse buttons
■ Pull-down menus
■ Quick properties
■ Toolbars
■ Ribbon panels
■ Ribbon tabs
■ Rollover tooltips
■ Shortcut keys
■ Shortcut menus
■ Workspaces
Commands
CUI
Manages the customized user interface elements in the product.
CUIEXPORT
Exports customized settings from the main CUIx file to an enterprise or
partial CUIx file.
CUIIMPORT
Imports customized settings from an enterprise or partial CUIx file to the
main CUIx file.
CUILOAD
Loads a CUIx file.
CUIUNLOAD
Unloads a CUIx file.
QUICKCUI
Displays the Customize User Interface Editor in a collapsed state.
System Variables
DBLCLKEDIT
Controls the double click editing behavior in the drawing area.
TOOLTIPS
Controls the display of tooltips on the ribbon, toolbars, and other user
interface elements.
Quick Reference
Commands
CUI
Manages the customized user interface elements in the product.
CUIEXPORT
Exports customized settings from the main CUIx file to an enterprise or
partial CUIx file.
System Variables
DBLCLKEDIT
Controls the double click editing behavior in the drawing area.
TOOLTIPS
Controls the display of tooltips on the ribbon, toolbars, and other user
interface elements.
Commands
CUI
Manages the customized user interface elements in the product.
■ All Commands. Displays all of the commands for each of the loaded
customization files.
Available commands and controls are displayed in the bottom of the Command
List pane. The names of the available commands, the image that is assigned
to a command, and the name of the customization group that the command
is assigned to are displayed. When the cursor hovers over top of a command,
the macro assigned to the command is displayed in a tooltip.
At the top of the Command List pane is the Command Filter field which
allows you to filter the Command list based on the text string entered. The
text string is matched with any part of a command name, and the commands
with the matching text strings are displayed in the Command list box.
Quick Reference
Commands
CUI
Manages the customized user interface elements in the product.
■ Button Image
■ Information
■ Panel Preview
■ Properties
■ Quick Properties
■ Shortcuts
■ Toolbar Preview
■ Workspace Contents
Commands
CUI
Manages the customized user interface elements in the product.
MNU ASCII text file. In previous re- CUIx An XML file that defines
leases, defined most user inter- most user interface ele-
face elements. The main ments. The main CUIx file,
MNU file, aclt.mnu, was acadlt.cuix, is automatically
automatically loaded when loaded when you start the
you started the product. product.
Partial MNU files could be Partial CUIx files can be
loaded or unloaded as you loaded or unloaded as you
needed them during a draw- need them during a drawing
ing session. session.
MNS Source menu file. Was the CUIx An XML file that defines
same as the MNU ASCII text most user interface ele-
file but did not contain com- ments. The main CUIx file,
ments or special formatting. acadlt.cuix, is automatically
loaded when you start the
product.
Partial CUIx files can be
loaded or unloaded as you
need them during a drawing
session.
MNC Compiled ASCII text file. CUI An XML file that defines
Contained command strings x most user interface ele-
and syntax that defined the ments. The main CUIx file,
functionality and appearance acadlt.cuix, is automatically
of user interface elements. loaded when you start the
product.
Partial CUIx files can be
loaded or unloaded as you
***POP10
**WINDOW
ID_MnWindow [&Window]
ID_DWG_CLOSE [Cl&ose]^C^C_close
ID_WINDOW_CLOSEALL [C&lose All]^C^C_closeall
[--]
ID_WINDOW_CASCADE [&Cascade]^C^C_syswindows;_cascade
ID_WINDOW_TILE_HORZ [Tile &Horizontally]^C^C_syswindows;_hor
ID_WINDOW_TILE_VERT [&Tile Vertically]^C^C_syswindows;_vert
ID_WINDOW_ARRANGE [&Arrange Icons]^C^C_syswindows;_arrange
Compare the menu data above with the same menu data as it is displayed in
the Customize User Interface (CUI) Editor, in the tree view.
NOTE Dynamic Help only works with the online Help documents that come with
AutoCAD LT, and has no affect on third-party documentation.
See also:
Quick Reference
Commands
CUI
Manages the customized user interface elements in the product.
CUIEXPORT
Exports customized settings from the main CUIx file to an enterprise or
partial CUIx file.
CUIIMPORT
Imports customized settings from an enterprise or partial CUIx file to the
main CUIx file.
CUILOAD
Loads a CUIx file.
CUIUNLOAD
Unloads a CUIx file.
QUICKCUI
Displays the Customize User Interface Editor in a collapsed state.
Customization Glossary
You should know several terms for customizing AutoCAD LT 2011.
Customization (CUIx) file A package file that contains multiple XML-based
files and custom image files. Each one of the XML-based files contain the data
for a different type of user interface element that can be customized. The
custom images that are stored in the file are those that are referenced by the
commands defined in the customization data and are not stored in a resource
DLL. You modify a customization file through the Customize User Interface
(CUI) Editor. CUIx files replace the CUI, MNU, MNS, and MNC files that were
used to define menus in releases prior to AutoCAD LT 2011.
Legacy Menu (MNS) file An ASCII based file that stores menu customization
data for AutoCAD 2005 and earlier. Most of the file needed to be edited outside
of AutoCAD LT using a text editor such as Notepad, but there were a few
features that could be customized in AutoCAD LT using the CUSTOMIZE
command. The MNS file has been replaced by the CUIx file. A CUIx file can
be generated from an MNS file using the Transfer tab of the CUI command.
Legacy Menu Template (MNU) file An ASCII based file that is used as a
template to define the contents of the MNS file when the MNU file is loaded
into AutoCAD LT with the MENU command. The MNU file is used in AutoCAD
2005 and earlier, and is very similar to the MNS file. The MNU file has been
replaced by the CUIx file. A CUIx file can be generated from a MNU file using
the Transfer tab of the CUI command.
Customization Glossary | 55
Macro A series of commands that are run in a defined sequence to accomplish
a drawing task.
Main customization file A writable CUIx file that defines most of the user
interface elements (including the standard menus, toolbars, keyboard
accelerators, and so on). The acadlt.cuix file (the default main CUIx file) is
automatically loaded when you start AutoCAD LT.
Partial customization file Any CUIx file that is not defined as the main or
enterprise CUIx file. You can load and unload partial CUIx files as you need
them during a drawing session.
Quick Access toolbar An interface element that is located to the right of the
application menu and provides direct access to a defined set of commands.
Quick Reference
Commands
CUI
Manages the customized user interface elements in the product.
CUIEXPORT
Exports customized settings from the main CUIx file to an enterprise or
partial CUIx file.
System Variables
DBLCLKEDIT
Controls the double click editing behavior in the drawing area.
ROLLOVERTIPS
Controls the display of rollover tooltips in the application.
TOOLTIPS
Controls the display of tooltips on the ribbon, toolbars, and other user
interface elements.
Customization Glossary | 57
Work with the Customize User Interface (CUI)
Editor
With the Customize User Interface (CUI) Editor, you can create and manage
standard and custom commands and user interface elements.
By customizing the user interface, you can arrange and access the commands
that you frequently use. You can also extend AutoCAD LT by creating your
own custom commands. Use the diagrams under this topic to understand the
steps required to successfully create a custom command or to customize the
various user interface elements that are available for customization.
Create a Command
Custom commands to define a series of actions that should be taken when
the custom command is used. You can also determine how the command
should appear when added to a user interface.
When creating a custom command, you need to give the command a unique
name, element ID, and macro. Once the basic properties of a command have
been defined, you can assign values to additional properties that determine
the content for the command’s tooltip, an image, and search tags. For more
information about creating custom commands, see Customize Commands
on page 92.
Assign an image on page 130 ----- Optional: Assign an image to the command. A
standard or custom image can be assigned.
Define a status line help message Optional: Assign status line text to the command
----- which, is used when it is added to a pull-down
on page 128
menu.
Create a Command | 59
Create User Interface Elements
User interface elements are used to organize and display commands in
AutoCAD LT.
To decide what user interface elements to create, determine how often you
want to access a command. Then determine if you want to add the custom
command to a shortcut key, the Quick Access toolbar, a ribbon panel or
another type of user interface element.
Create a new ribbon panel on Create a new ribbon panel to organize the
----- commands and controls you want to display on
page 150
the ribbon.
To change the display and Optional: Change the display and behavior of
behavior of a command, control ----- the commands, controls, or drop-downs on the
or drop-down on page 164 ribbon panel.
Once you have created a ribbon panel, it must be added to a ribbon tab before
it can be displayed on the ribbon. For more information about assigning a
ribbon panel to a ribbon panel, see the Create a Ribbon Tab on page 62
workflow diagram.
Create a ribbon tab on page 182 ----- Create a new ribbon tab to hold the ribbon panels
you want to display on the ribbon.
Create a ribbon panel on page 61 Create new ribbon panels as needed for the
----- commands and controls you want to display on
(workflow diagram)
the ribbon.
Create a ribbon panel on page 61 Create new ribbon panels as needed to display
----- the commands and controls you want to display
(workflow diagram)
on the ribbon.
Create a ribbon tab on page 62 Create new tabs as needed to control the display
----- of ribbon panels when the context of the
(workflow diagram)
contextual tab state is met.
Assign a ribbon tab on page 187 ----- Assign the ribbon tabs to the contextual tab state.
Create a Toolbar
Toolbars organize commands and controls on small dockable windows.
You can add commands and controls to a toolbar making it easier to access
the commands you use. Commands on a toolbar can be displayed as a single
button or a grouping of buttons with a flyout. For more information about
toolbar customization, see Create and Edit Toolbars on page 190.
Create a toolbar on page 192 ----- Create a new toolbar to organize the commands
and controls you want to display.
Add a submenu on page 228 ----- Optional: Add submenus to organize multiple
commands into a single drop-down menu.
Add commands on page 215 ----- Add commands to the pull-down menu and
submenus.
Add a submenu on page 228 ----- Optional: Add submenus to organize multiple
commands into a single drop-down menu.
Create a shortcut key on page 249 ----- Create a new shortcut key and assign a key
combination to start the associated command.
Create a mouse button on page Create a new mouse button to start the command
----- when the mouse button and key combination is
270
pressed.
Add or remove commands from Add and remove commands to and from the
the Quick Access toolbar on page ----- Quick Access toolbar from the ribbon. You can
146 also add separators to group related commands.
Display toolbars on page 295 ----- Display the toolbars that you want to display
when the workspace is set current.
Display palettes on page 295 ----- Display the palettes that you want to display
when the workspace is set current.
Display a ribbon tab on page 301 ----- Display a ribbon tab on the ribbon when the
workspace is set current.
Display a toolbar on page 306 ----- Display a toolbar when the workspace is set
current.
Display a menu on page 308 ----- Display a menu on the menu bar when the
workspace is set current.
Display a palette on page 311 ----- Display a palette when the workspace is set
current.
3 Select Main Customization File <file name> or one of the loaded CUIx
files to set it as the working CUIx file.
2 In the Customize User Interface Editor, Transfer tab, in the right pane,
click the Create a New Customization File button.
4 In the Save As dialog box, specify the location to save the new
customization file to and enter a name in the File Name text box.
NOTE The folders under your profile may be hidden by default. To display
these files, you may need to change your display settings. Click Start menu
(Windows) ➤ Control Panel ➤ (Appearance and Themes, or Appearance
and Personalization) ➤ Folder Options. In the Folder Options dialog box,
View tab, click Show Hidden Files and Folders.
2 Copy the selected CUIx file to a new file name (such as enterprise.cuix) or
location (such as the shared network location where users will access the
file) so that you preserve the original CUIx file (in case you want to modify
or use it again later).
WARNING This method of creating a new CUIx file can result in additional
work if you do not want all the commands and user interface elements in the
copied CUIx file.
2 In the Customizations In <file name> pane, select a CUIx file from the
drop-down list.
NOTE You can click, wait, and click again on the customization group name
to edit its name in-place.
5 Click Apply.
4 Click Apply.
NOTE Only CUIx files found in the UserDataCache folder under the install
location of AutoCAD LT can be reset.
4 Click Apply.
2 In the Options dialog box, Files tab, click the plus sign (+) next to
Customization Files to expand the list.
3 Click the plus sign (+) next to Main Customization File to expand it.
5 In the Select a File dialog box, browse to and select the customization
file to load. Click Open.
The file you selected is now designated as the main customization file
for the program.
Quick Reference
Commands
CUI
Manages the customized user interface elements in the product.
OPTIONS
Customizes the program settings.
3 In the Open dialog box, locate and select the partial CUIx file you want
to load, and click Open.
4 To verify that the file has been loaded into the main CUIx file, in the
Customizations In <file name> pane, select the Main Customization File
(<customization file name>.cuix) from the drop-down list.
Loaded partial CUIx files in the main CUIx file are listed under the Partial
Customization Files node.
5 Click Apply.
4 Right-click the partial CUIx file that you want to unload. Click Unload
<customization file name>.cuix.
The partial CUIx file is unloaded and removed from the list.
5 Click Apply.
5 Click Apply.
Quick Reference
Commands
CUI
Manages the customized user interface elements in the product.
CUILOAD
Loads a CUIx file.
CUIUNLOAD
Unloads a CUIx file.
■ Create an enterprise CUIx file from an existing CUIx file or a new CUIx
file. Make a copy of the main customization file (acadlt.cuix) or another
customization file of your choice that contains all the base user interface
elements you need. If you want to start with a new customization file, use
the Transfer tab to create a blank customization file.
■ Designate the new file as your main CUIx file. Using the Options dialog
box, you must load the customization file as your the main customization
■ Modify the contents of the enterprise CUIx file. Once the customization
file is designated as the main customization file, you can change the
customization group name and modify the CUIx file contents as needed.
Changing the customization group name allows you to load more than
one CUIx file in the program at one time. CUIx files with the same
customization group name cannot be loaded into the program.
■ Replace the main CUIx file. Using the Options dialog box, replace the
previous customization file that was designated as the main customization
file.
■ Save the enterprise CUIx file to a shared network location. When you save
the new enterprise file to a shared network location, all of your users that
have access to the specified location can access the file.
NOTE The folder where you place the enterprise CUIx file should be in a shared
location that your users can access. To learn more about creating a network
share, see “How to Create a Network Share” in the Network Administrator's
Guide.
WARNING Even though the Customize User Interface (CUI) Editor loads the
enterprise customization file as read-only, this still doesn’t completely protect
the file from being modified. The enterprise customization file could be loaded
as the main customization file and then modified. To protect the enterprise
customization file, the location where it is stored be marked as read-only and
write access should be limited to those you want to be able to edit the file.
2 In the Options dialog box, Files tab, click the plus sign (+) next to
Customization Files to expand the list.
4 Select the item below Enterprise Customization Files and click Browse.
5 In the Select a File dialog box, browse to the location of the enterprise
customization file. Click Open.
The enterprise CUIx file if shared, must be saved in a location that all
users can access.
2 In the Options dialog box, Files tab, click the plus sign (+) next to
Customization Files to expand the list.
3 Click the plus sign next to Main Customization File to expand it.
Take note of the current main CUIx file’s name and location as you will
need to restore it later.
4 Select the item below Main Customization Files and click Browse. In the
Select a File dialog box, browse to the location of the enterprise
customization file. Click Open.
5 Click the plus sign next to Enterprise Customization File to expand it.
Take note of the current enterprise CUIx file’s name and location as you
will need to restore it later.
10 Once done adding new commands and user interface elements, click OK.
Switch the file names of the main and enterprise values around in the
Options dialog box.
The main and enterprise CUIx files should now resemble the original
configuration prior to making the changes.
TIP You can create two different profiles that can be used to switch between your
main and enterprise CUIx files. One profile will have the CUIx files in a normal
configuration that is used by your drafters, and the other profile has the main and
enterprise CUIx files switched around making the enterprise customization file
editable.
Quick Reference
Commands
CUI
Manages the customized user interface elements in the product.
CUIEXPORT
Exports customized settings from the main CUIx file to an enterprise or
partial CUIx file.
CUILOAD
Loads a CUIx file.
CUIUNLOAD
Unloads a CUIx file.
■ Limit the search to commands located in the Command List pane. This
search does not include the names of user interface elements, the
commands that are associated to them, and their properties. For example,
if you limit the search for the LINE command in the Command List only,
a message similar to the following is displayed when you start your search:
“Search string found in command 'Dimension, Linear' property 'Name' at
position 11 (1/12).”
■ Expand the search to include all properties in all tree view nodes in the
Customizations In pane. This type of search finds all instances or a search
string. For example, if you search for the string “line” and start in the tree
view, a message similar to the following is displayed: “Search string found
in ‘Linear’ property ‘Name’ at position 0 (1/55).”
■ In the Ignore Case option, clear the check box if you want the search
to find every instance of the search string regardless of its case.
■ In the Restrict Search To option, select the check box if you want to
restrict the search to just one CUIx file. Then, under this option, select
a CUIx file from the drop-down list.
A message is displayed that details the location of the search string and
the number of results generated from the search.
5 Click Close.
■ In the Ignore Case option, clear the check box if you want the search
to find every instance of the search string regardless of its case.
A message is displayed that details the location of the search string and
the number of results generated from the search.
5 Click Close.
■ In the Ignore Case option, clear the check box if you want the search
to find every instance of the search string regardless of its case.
4 In the search results text that is displayed, review the location of the
matching search string, its exact position in the tree node or Properties
pane, and the number of instances in which the command or search
string occurs.
6 Click Close.
3 In the Find and Replace dialog box, Replace tab, do the following:
■ In the Find What box, enter the search string.
■ In the Replace With box, specify the text string you want to use to
replace the found string.
■ In the Ignore Case option, clear the check box if you want the search
to find every instance of the search string, regardless of its case.
■ In the Restrict Search To option, select the check box if you want to
restrict the search to just one CUIx file. Then, under this option, select
a CUIx file from the drop-down list.
■ To replace all instances of the search string, click Replace All. You
cannot undo this action.
3 In the Find and Replace dialog box, Replace tab, in the Find What box,
the command name you selected in the previous step is displayed. To
complete the dialog box, do the following:
■ In the Replace With box, specify the command name you want to
use to replace the found command.
■ In the Ignore Case option, clear the check box if you want the search
to find every instance of the command, regardless of its case.
■ To replace all instances of the command, click Replace All. You cannot
undo this action.
Quick Reference
Commands
CUI
Manages the customized user interface elements in the product.
Customize Commands
Commands in the Customize User Interface (CUI) Editor are used to define
custom macros which are used to start standard and custom commands which
can be executed from the command prompt in AutoCAD LT.
Overview of Commands
You can easily create, edit, and reuse commands. The Customize tab of the
Customize User Interface (CUI) Editor allows you to add any command listed
in the Command List pane to a toolbar, menu, and one of the other user
interface element that can be customized.
When you change the properties of a command in the Command List pane
or the tree view in the Customizations In pane, the properties of the command
are changed everywhere the command is referenced. Each property of a
command in the Command List pane controls which actions are taken when
the command is used and how the command looks when added to a user
interface element.
Overview of Commands | 93
Properties for the Scale command in the Command List pane
Properties Description Example
pane item
Quick Reference
Commands
CUI
Manages the customized user interface elements in the product.
■ In the Extended Help File box, enter the name of the file and ID to
use for the extended help for the command.
■ In the Command Display Name box, enter the name of the command
that you want to display for the command.
■ In the Tags box, enter the tags you want to use when searching for
commands in the Search field of the application menu.
4 Click Remove.
■ In the Customizations In <file name> pane, tree view, locate and then
select the command you want to edit.
■ In the Command Display Name box, enter the name of the command
that you want to display for the command.
■ In the Tags box, enter the tags you want to use when search for
commands with the Search field of the application menu.
To use a command
To duplicate a command
Quick Reference
Commands
CUI
Manages the customized user interface elements in the product.
Create Macros
A macro defines the action that results when an interface element is selected.
A macro accomplishes a drawing task that would otherwise take a series of
actions by a user.
Overview of Macros
A macro can contain commands, special characters, and DIESEL (Direct
Interpretively Evaluated String Expression Language) programming code.
You add macros to interface elements by using the Customize User Interface
(CUI) Editor. Select an existing command or create a new command in the
Command List pane. Enter macros in the Macros section of the Properties
pane. There are no length limitations for macros. However, you do need to
know how specific characters are used in macros and be aware of other
considerations or limitations.
Macro Basics
A macro in a user interface element can be as simple as a command (such as
circle) and some special characters (such as ^C^C).
For a list of special control characters that you can use in macros, see Use
Special Control Characters in Macros on page 104.
■ If a line ends with a control character, a backslash (\), a plus sign (+), or a
semicolon (;), AutoCAD LT does not add a blank space after it.
An item that ends with a backslash (\) pauses a macro for user input.
Compare the following macros:
ucs
ucs ;
The first example enters ucs at the command prompt and presses SPACEBAR.
The following prompt is displayed.
Specify origin of UCS or
[Face/NAmed/OBject/Previous/View/World/X/Y/Z/ZAxis] <World>:
The second example enters ucs, presses SPACEBAR, and presses ENTER, which
accepts the default value (World).
3 In the Properties pane, select the Macro field and click the [ ] button that
is displayed.
The Long String Editor dialog box is displayed.
4 In the Long String Editor, edit the macro as desired and click OK.
You are returned to the Customize User Interface Editor.
Quick Reference
Commands
CUI
Manages the customized user interface elements in the product.
The macro starts the TEXT command, pauses for the user to specify a start
point, and then enters the address on three lines. In the triple semicolon (;;;),
the first semicolon ends the text string, the second repeats TEXT, and the
third accepts the default placement below the previous line.
; Issues ENTER
^M Issues ENTER
^I Issues TAB
^H Issues BACKSPACE
^Q Echoes all prompts, status listings, and input to the printer (equivalent
to Ctrl+Q)
Quick Reference
Commands
CUI
Manages the customized user interface elements in the product.
TEXT
Creates a single-line text object.
In the circle example, \1 pauses for the user to specify the center point and
then reads a radius of 1. Note that there is no space after the backslash.
-layer off \;
In this example, the macro starts -LAYER at the command prompt, enters the
Off option (off), and then pauses for the user to enter a layer name (\). The
macro then turns that layer off and exits the -LAYER command (;).
A macro typically resumes after one user input, such as a single point location.
Therefore, you cannot construct a macro that accepts a variable number of
inputs (as in object selection) and then continues. However, an exception is
made for SELECT: a backslash (\) suspends the SELECT command until object
selection has been completed. Consider the following example:
select \change previous ;properties color red ;
In this macro, SELECT creates a selection set of one or more objects (select \).
The macro then starts CHANGE (change), references the selection set using
the Previous option (previous;), and changes the color of all selected objects
to red (properties color red ;).
NOTE The backslash character (\) causes a macro to pause for user input. You
cannot use a backslash for any other purpose in a macro. When you need to specify
a file directory path, use a forward slash (/) as the path delimiter: for example,
/direct/file.
■ If X/Y/Z point filters are used, the command remains suspended until the
entire point has been accumulated.
■ For SELECT only, the macro does not resume until object selection has
been completed.
Quick Reference
Commands
CHANGE
Changes the properties of existing objects.
LAYER
Manages layers and layer properties.
SELECT
Places selected objects in the Previous selection set.
System Variables
PICKADD
Controls whether subsequent selections replace the current selection set or
add to it.
PICKAUTO
Controls automatic windowing at the Select Objects prompt.
Commands
CUI
Manages the customized user interface elements in the product.
NOTE Do not use ^C (Cancel) within a macro that begins with the string *^C^C;
this cancels the repetition.
Each macro in the example starts a command and then prompts you to select
an object. Any other prompts necessary to complete the command are
displayed, and then the command ends and starts again.
NOTE Command repetition cannot be used in macros for image tile menus.
Commands
CUI
Manages the customized user interface elements in the product.
This macro terminates the current command and starts ERASE in Single Object
Selection mode. After you choose this command, you either select a single
object to be erased or click a blank area in the drawing and specify window
selection. Any objects selected in this way are erased, and the command is
repeated (due to the leading asterisk) so that you can erase additional objects.
Press ESC to exit this mode.
Quick Reference
Commands
CUI
Manages the customized user interface elements in the product.
The following describes each section of the macro syntax for swapping
elements:
Macro syntax for swapping elements
$ Loads an interface element
A pull-down menu can be present either in the menu bar or on the active
shortcut menu but not both.
Quick Reference
Commands
CUI
Manages the customized user interface elements in the product.
The macro switches the FILLMODE system variable on and off by subtracting
the current value of FILLMODE from 1 and returning the resulting value to
the FILLMODE system variable. You can use this method to toggle system
variables whose valid values are 1 or 0.
If these macros did not end with ^Z, AutoCAD LT would automatically add a
space (ENTER), repeating the last command entered.
See also:
Quick Reference
Commands
CUI
Manages the customized user interface elements in the product.
Ribbon button items do not display a check mark when marked; only a border
is displayed.
NOTE To disable or mark ribbon button items, the “~” or “!.” sequence cannot
be placed before a command name explicitly; it must be inside a DIESEL expression.
Ribbon button items only support the use of DIESEL string expressions. For
more information about using DIESEL expressions, see DIESEL Expressions in
Macros. When grayed out, the macro and submenus associated with the menu
or ribbon button item are made inaccessible.
In the following example, the tilde (~) is placed at the beginning of the Copy
Link command label in the Name cell of the Properties pane.
■ A check mark. Displayed when a menu item does not have an image
associated with it.
Following is an example of the Edit menu with the OLE Links command
marked with a check mark and the Copy Link command's image marked with
a border:
Menu items can and ribbon button items must contain DIESEL string
expressions to conditionally mark them each time they are displayed. When
the following DIESEL string is added to the Macros cell for the applicable
command in the Properties pane, a check mark is placed to the left of the
menu item whose related system variable is currently enabled.
$(if,$(getvar,orthomode),!.)Ortho^O
$(if,$(getvar,snapmode),!.)Snap^B
$(if,$(getvar,gridmode),!.)Grid^G
The tilde (~) is the special character code to disable a command and an
exclamation point and period (!.) is the special character code to mark a
command.
The tilde (~), exclamation point, and period (!.) are placed at the beginning
of the Copy Link command label in the Name cell of the Properties pane.
Following is the resulting Copy Link marked and grayed out in the Edit menu.
5 Click Apply.
The changes to the command will be visible after the changes have been
applied and the CUI Editor is closed.
5 Click Apply.
The changes to the command will be visible after the changes have been
applied and the CUI Editor is closed.
5 Click Apply.
Quick Reference
Commands
CUI
Manages the customized user interface elements in the product.
4 In the Tag Editor dialog box, in the Tags box, enter a tag.
As you enter a tag, a popup menu might display showing a list of
previously used tags. Click a tag on the menu to use that tag. You can
add more than one tag to a command; separate each tag with a comma.
5 To add another tag for a command, press the Left Arrow key and enter
the tag. Repeat as needed.
6 Click OK.
3 In the Properties pane, select the Tags field and click the [ ] button.
4 In the Tag Editor dialog box, in the Tags box, click the tag you want to
remove. Press Delete.
5 Click OK.
Quick Reference
Commands
CUI
Manages the customized user interface elements in the product.
OPTIONS
Customizes the program settings.
The Stack Panel element groups the TextBlock and Image elements together.
You can have as many TextBlock and Image elements under a StackPanel
element that you need. The TextBlock element holds the text; the Image
element holds an illustration that is part of the extended help. To learn more
about XAML, visit Microsoft's web site at http://www.microsoft.com and perform
a search for XAML.
3 In the Properties pane, Description field, enter the tooltip text for the
selected command.
3 In the Properties pane, select the Extended Help File field and click [ ]
button.
4 In the Select Extended Help File dialog box, browse to and select the
XAML file that contains the extended help for the command. Click Open.
5 In the Select Help ID dialog box, select the help ID for the extended help
content. Click OK.
2 Change the text shown in italic in the previous step to match the
following:
<src:RibbonToolTip x:Key="MYEH_CMD_0003">
<src:RibbonToolTip.ExpandedContent>
<StackPanel>
<TextBlock Background="AntiqueWhite" TextAlignment="Center">
Configures the settings for the current drawing.
</TextBlock>
</StackPanel>
</src:RibbonToolTip.ExpandedContent>
</src:RibbonToolTip>
Quick Reference
Commands
CUI
Manages the customized user interface elements in the product.
OPTIONS
Customizes the program settings.
3 In the Properties pane, Description box, enter the descriptive text for the
selected command.
Quick Reference
Commands
CUI
Manages the customized user interface elements in the product.
OPTIONS
Customizes the program settings.
■ Select an image from the image list and the image name is assigned
to the Small, Large, or both the Small and Large image properties of
the selected command.
NOTE As you select an image from the image list, the image’s name is
displayed below the Export button in the Button Image pane.
■ In the Open dialog box, browse to and select the BMP file that you
want to import and click Open.
■ In the Button Image pane, under Apply To, select one of the three
image assignment options; Small Image, Large Image, or Both. Then
select the image you imported from the image list.
Quick Reference
Commands
CUI
Manages the customized user interface elements in the product.
NOTE In releases prior to AutoCAD LT 2011, custom images were stored separately
from the customization file. In AutoCAD LT 2011, images are now stored as part
of the CUIx file making it easier to share with others.
Custom images can be created in two different sizes: small and large. Small
images should be 16 x 16 pixels. Large images should be 32 x 32 pixels. Images
that do not match these sizes are scaled to fit.
3 In the Button Image pane, select an image from the image list that is
closest in appearance to the image you want to create or select an existing
image to edit. Click Edit.
TIP If you want to start with a blank image, select any image from the image
list under the Button Images pane. Click Edit to display the Button Editor
dialog box. In the Button Editor dialog box, click Clear.
4 In the Button Editor dialog box, use the Pencil, Line, Circle, and Erase
buttons to create or edit the button image. To change the selected color,
select a color from the color palette, or click More to open the Select
Color dialog box.
■ Pencil button. Edits one pixel at a time in the selected color. You can
drag the pointing device to edit several pixels at once.
■ Line button. Creates lines in the selected color. Click and hold to set
the first endpoint of the line. Drag to draw the line. Release to
complete the line.
■ Circle button. Creates circles in the selected color. Click and hold to
set the center of the circle. Drag to set the radius. Release to complete
the circle.
■ Erase button. Resets the color of one pixel at a time to the default
canvas color.
5 Click Save.
The Save Image dialog box is displayed.
6 In the Save Image dialog box, Image Name text box, enter a name and
click OK.
The image is saved to the working CUIx file.
7 Click Close.
You are returned to the Customize User Interface Editor.
Quick Reference
Commands
CUI
Manages the customized user interface elements in the product.
3 In the Button Image pane, right-click the image list and click Import
Image.
4 In the Open dialog box, browse to and select the BMP file that you want
to import and click Open.
The image is added to the image list and can then be assigned to a
command.
3 In the Button Image pane, select the image to export, and click Export.
5 Click Save.
NOTE You can only export images in the BMP (*.bmp, *.rle, or *.dib) format.
To import an image into a loaded customization file using the Image Manager
5 Click OK.
To export an image from a loaded customization file with the Image Manager
5 In the Browse For Folder dialog box, browse to the folder to which you
want to export the selected images. Click OK.
6 Click OK.
5 In the CUI Editor - Confirm Deletion of Image dialog box, click Delete
Image.
If the selected image is assigned to a command, the CUI Editor - Confirm
Deletion of Referenced Image dialog box is displayed. The deletion of the
image cannot be undone.
6 Click OK.
Quick Reference
Commands
CUI
Manages the customized user interface elements in the product.
4 Right-click the node that you want to paste the selected user interface
element to, and click Paste.
5 Click Apply.
NOTE The key combination Ctrl+D can be used to duplicate a user interface
element in-place.
4 Click Apply.
Commands
CUI
Manages the customized user interface elements in the product.
■ Adding commands directly to the Quick Access toolbar from the ribbon
or when the Customize User Interface (CUI) Editor is displayed. You can
also remove commands when the Customize User Interface (CUI) Editor
is displayed or not.
NOTE You can add controls to a Quick Access toolbar. The controls you can add
are listed under Ribbon Controls in the drop-down list under the Command List
pane.
■ Click Quick Access Toolbar1, wait, and click again over the Quick
Access toolbar’s name again to edit its name in-place.
4 Click Apply.
3 Right-click the Quick Access toolbar you want to delete and click Delete.
To add a command or control to a Quick Access toolbar from the CUI Editor
3 Click the plus sign (+) next to the Quick Access toolbar that you want to
modify.
4 Under the Command List pane, drag the command or control you want
to add to the Quick Access toolbar from the Command List pane to the
Quick Access Toolbar node under the Customizations In <file name> pane.
5 Once the splitter bar is in the location you want to insert the command
or control, release the pointing device button.
6 Click Apply.
To remove a command or control from a Quick Access toolbar with the CUI
Editor
3 Click the plus sign (+) next to the Quick Access toolbar from which you
want to remove a command or control.
To add and remove commands from the Quick Access toolbar outside the
CUI Editor
■ To add a command to the Quick Access toolbar
Do one of the following:
■ Right-click a command on the ribbon, and click Add to Quick Access
Toolbar.
3 Click the plus sign (+) next to the Quick Access toolbar that you want to
modify.
4 Right-click the Quick Access toolbar which you want to add a drop-down
to. Click New Drop-down.
NOTE You can click, wait, and click again over a drop-down name to edit
its name in-place in the Customizations In <file name> pane.
6 Drag the drop-down under the Quick Access toolbar to the position where
you want it placed. Use the visual indicator bar that is displayed to help
specify the location for the drop-down. Release the pointing device button
to reposition the drop-down.
7 Under the Command List pane, drag the command or control you want
to add to the Quick Access toolbar from the Command List pane to the
Quick Access Toolbar node under the Customizations In <file name> pane.
8 Once the splitter bar is in the location where you want to insert the
command or control, release the pointing device button.
10 If the drop-down will use the Split behavior, add a command to the
Primary Command node under the drop-down to set the command for
the main button.
11 Click Apply.
Quick Reference
Commands
CUI
Manages the customized user interface elements in the product.
Ribbon
You can customize the ribbon by creating and modifying ribbon panels and
organizing ribbon panels into groups of task-based tools with ribbon tabs.
Ribbon Panels
By customizing ribbon panels, you can organize commands that you use
frequently similar to toolbars. With ribbon panels, you can quickly access
commands, and reduce the number of user interface elements that are
displayed.
Name Name of the panel; does not appear in the user Home 2D - Draw
interface.
Aliases Specifies the aliases for the panel. Click the [ ] ID_Draw
button to open the Aliases dialog box. Each
alias in the CUIx file should be unique and is
used to reference the panel programmatically.
Ribbon | 149
Properties for the Home 2D - Draw Ribbon Panel
Properties Description Example
Pane Item
A new panel (named Panel1) is placed at the bottom of the Ribbon Panels
tree.
5 Select the new panel, and update its properties in the Properties pane:
■ In the Display Text box, enter the text you want to display for the
title of the panel when it is displayed on the ribbon.
■ In the KeyTip box, enter the characters to access the ribbon panel
from the keyboard.
6 Click Apply.
Ribbon | 151
3 Right-click the toolbar that you want to copy to a ribbon panel. Click
Copy to Ribbon Panels.
4 In the CUI Editor - Confirm Copy to Ribbon Panels Node dialog box,
click Yes.
The copied toolbar is copied to the Panels node under the Ribbons node.
5 Click Apply.
3 In the Open dialog box, Files of Type drop-down list, select Legacy
Customization Files (*.cui).
4 Browse to and select the customization (CUI) file that contains the
dashboard panels you want to copy to ribbon panels. Click Open.
5 Click the plus sign (+) next to Dashboard Panels to expand it.
6 Right-click over the dashboard panel you want to copy to a ribbon panel.
Click Copy to Ribbon Panels.
7 In the CUI Editor - Confirm Copy to Ribbon Panels Node dialog box,
click Yes.
The copied dashboard panel is copied to the Panels node under the
Ribbons node.
8 Drag the new ribbon panel from the Customizations In <file name> pane
on the right to the Panels node of one of the loaded CUIx files in the
Customizations In <file name> pane on the left.
6 Click Apply.
Ribbon | 153
To assign a command to the Panel Dialog Box Launcher
4 Click the plus sign (+) next to the ribbon panel where you want to assign
a command to its Panel Dialog Box Launcher node.
5 Drag a command from the Command List pane to the Panel Dialog Box
Launcher node for the panel.
Quick Reference
Commands
CUI
Manages the customized user interface elements in the product.
RIBBON
Opens the ribbon window.
RIBBONCLOSE
Closes the ribbon window.
Ribbon | 155
command. For more information about drop-downs on ribbon panels, see
Add Drop-downs to a Ribbon Panel on page 167.
In addition to using rows and sub-panels to organize commands, you can also
use menu separators. Menu separators are used to add space or lines between
commands and controls.
The following table describes the properties for the Line command of Row 1
on the Home 2D - Draw ribbon panel as they appear in the Properties pane.
Properties for the Line Command on Row 1 of the Home 2D - Draw Ribbon
Panel
Properties Description Example
Pane Item
Name Text used as the name and label of the com- Line
mand button; does appear in the user interface.
Button Controls the size and the label display of the Large with Text (Vertic-
Style command. The available options are Large With al)
Text (Vertical), Large With Text (Horizontal),
SmallWithText, or SmallWithoutText.
Descrip- Text used to describe the element; does not Creates straight line
tion appear in the user interface. segments
Extended Text that displays the file name and ID for the
Help File extended tooltip that is displayed when the
cursor hovers over a toolbar or panel button.
Ribbon | 157
Properties for the Line Command on Row 1 of the Home 2D - Draw Ribbon
Panel
Properties Description Example
Pane Item
the program scales it to that size. The string
must include alphanumeric characters with no
punctuation other than a hyphen (-) or an un-
derscore (_). It can also be a user-defined bit-
map. Click the [ ] button to open the Select
Image File dialog box.
See also:
4 Right-click the ribbon panel to which you want to add a row. Click New
Row.
5 Click Apply.
4 Click the plus sign (+) next to the ribbon panel where you want to add
a sub-panel or fold panel.
Ribbon | 159
5 Create a new row for the sub-panel or fold-panel if needed, or click the
plus sign (+) next to the row where you want to add a sub-panel or fold
panel.
7 Click Apply.
4 Click the plus sign (+) next to the ribbon panel from which you want to
remove a row or sub-panel.
5 Right-click the row or sub-panel that you want to remove. Click Delete.
4 Click the plus sign (+) next to the ribbon panel where you want to
reposition a row or sub-panel.
5 Drag the row or sub-panel that you want to reposition up or down under
the ribbon panel’s node. Use the visual indicator bar to position the row
above or below other rows or sub-panels.
6 Click Apply.
4 Click the plus sign (+) next to the ribbon panel where you want to add
a command.
5 Click the plus sign (+) next to the rows, sub-panels, or drop-downs to get
to the location you want to add a command.
Ribbon | 161
6 Drag a command from the Command List pane to a row, sub-panel, or
drop-down on the panel. Use the visual indicator bar to specify the
position of the command.
7 In the Properties pane, change the properties of the command you added
on page 164.
8 Click Apply.
4 Click the plus sign (+) next to the ribbon panel where you want to remove
a command.
5 Click the plus sign (+) next to the rows, sub-panels, or drop-downs to get
to the location you want to remove a command.
7 Click Apply.
4 Click the plus sign (+) next to the ribbon panel where you want to
reposition a command.
5 Click the plus sign (+) next to the rows, sub-panels, or drop-downs to get
to the location you want to reposition a command.
6 Drag the command to a new location. Use the visual indicator bar to
specify the position of the command.
Ribbon | 163
7 Click Apply.
4 Click the plus sign (+) next to the ribbon panel where you want to
show the label for a command.
5 Click the plus sign (+) next to the row, sub-panel, or drop-down where
you want to show the label for a command. If you need to, continue
expanding rows, sub-panels, and drop-downs to get to the command
or drop-down.
6 Select the command that you want to show its label for.
7 In the Properties pane, Button Style box, click the down arrow and
select Large With Text (Vertical), Large With Text (Horizontal), or
SmallWithText.
4 Click the plus sign (+) next to the ribbon panel which has the
command or drop-down for which you want to set the size.
5 Click the plus sign (+) next to the row or sub-panel that has the
command or drop-down for which you want to set the size. If you
need to, continue expanding rows, sub-panels, and drop-downs to
get to the command or drop-down.
6 Select the command or drop-down for which you want to set the size.
7 In the Properties pane, Button Style box, click the down arrow and
select Large With Text (Vertical), Large With Text (Horizontal),
SmallWithText, or SmallWithoutText.
Ribbon | 165
8 Click Apply.
4 Click the plus sign (+) next to the ribbon panel where you want to
change the style of a drop-down.
5 Click the plus sign (+) next to the row or sub-panel that contains the
drop-down you want to change. If you need to, continue expanding
rows and sub-panels to get to the drop-down.
6 Select the drop-down that you want to change, and update its
properties in the Properties pane:
■ In the Behavior box, click the down arrow and select Drop Down
Menu with Recent, Drop Down Menu, Split with Recent, Split, or
Split with Recent (Static).
■ In the Split Button List Style box, click the down arrow and select
Icon, Icon and Text, and Descriptive.
Quick Reference
Commands
CUI
Manages the customized user interface elements in the product.
RIBBON
Opens the ribbon window.
RIBBONCLOSE
Closes the ribbon window.
Ribbon | 167
The following table describes the properties for the Arc drop-down of Row 1
on under Sub-Panel 1 of the Home 2D - Draw ribbon panel as they appear in
the Properties pane.
Properties for the Arc Drop-down on Row 1 of the Home 2D - Draw Ribbon Panel
Properties Pane Item Description Example
Name Logical name for the drop-down; does not appear Arc
in the user interface.
Behavior Specifies if the button executes a command or dis- Split with Recent
plays a list of commands. The available options are
Drop Down Menu with Recent, Drop Down Menu,
Split with Recent, Split, Split with Recent (Static).
Split Button List Style Specifies how the commands on the drop-down IconText
will be displayed. The available options are Icon,
IconText, or Descriptive.
Button Style Controls the size and the label display of the drop- Large with Text (Vertic-
down. The available options are Large With Text al)
(Vertical), Large With Text (Horizontal), SmallWith-
Text, or SmallWithoutText.
Tooltip Title Text string that controls the title of the tooltip for
the command.
See also:
4 Click the plus sign (+) next to the ribbon panel where you want to add
a drop-down.
5 Right-click the row to which you want to add a drop-down. Click New
Drop-down.
Ribbon | 169
A new drop-down (named New Drop-down) is created in the last position
of the row.
7 In the Command List pane, drag the commands that you want to add to
the new drop-down in the Customizations In <file name> pane.
9 If the drop-down will use the Split behavior, add a command to the
Primary Command node under the drop-down to set the command for
the main button.
10 Click Apply.
Commands
CUI
Manages the customized user interface elements in the product.
RIBBON
Opens the ribbon window.
RIBBONCLOSE
Closes the ribbon window.
Ribbon Toggle Button - Authoring Toggle Displays or hides the Block Authoring palettes.
Palettes
Ribbon Combo Box - Background Color Drop-down Displays and changes the background color
list of the selected cells in a table.
Ribbon Toggle Button - Block Constraint Toggle Controls constraint display status and the
Status shading of objects based on their constraint
level.
Ribbon Label - Block Label Displays the name of the block that is cur-
rently being edited in the Block Editor.
Ribbon Combo Box - Block Visibility Drop-down Displays a list of the visibility states saved with
States list the current block in the Block Editor.
Ribbon | 171
Controls available for ribbon panels
Control element Control Description
Type
Ribbon Command Button - Block Visibil- Button Makes objects visible in the current visibility
ity Hide state or all visibility states in the block defini-
tion opened for edit in the Block Editor.
Ribbon Command Button - Block Visibil- Button Controls how objects that are made invisible
ity Mode for the current visibility state are displayed in
the Block Editor.
Ribbon Command Button - Block Visibil- Button Makes objects invisible in the current visibility
ity State state or all visibility states in the block defini-
tion opened for edit in the Block Editor.
Ribbon Command Button - Block Visibil- Button Allows you to create or modify the visibility
ity States states of the current block definition opened
for edit in the Block Editor.
Ribbon Combo Box - Cell Styles Drop-down Displays and changes the cell style of the se-
list lected cells in a table.
Ribbon Toggle Button - Command Line Toggle Displays or hides the command line window.
Ribbon Toggle Button - Design Center Toggle Displays or closes the DesignCenter palette.
Ribbon Toggle Button - DGN Osnap Toggle Controls object snapping for DGN underlays.
Ribbon Combo Box - Dimension Style Drop-down Displays and sets the current dimension style.
list
Ribbon Toggle Button - Drawing Recov- Toggle Displays or closes the Drawing Recovery
ery Manager Manager palette.
Ribbon Toggle Button - Drawing Status Toggle Displays or hides the drawing status bar.
Bar
Ribbon Toggle Button - DWF Osnap Toggle Controls object snapping for DWF underlays.
Ribbon Toggle Button - Dynamic Con- Toggle Displays or hides dynamic constraints.
straint Display
Ribbon Combo Box - What to Export Drop-down Controls which part of the drawing should
list be exported to a DWF, DWFx or PDF file.
Ribbon Combo Box - Page Setup Drop-down Allows you to export the drawing to a DWF,
list DWfx, or PDF file using the page setup set-
tings in the Page Setup Manager or to over-
ride these settings.
Ribbon Toggle Button - External Refer- Toggle Displays or closes the External References
ences palette.
Ribbon - Image, Show Image Toggle Toggle Displays or hides the selected raster image.
Button
Ribbon - Image, Transparency Toggle Toggle Controls the use of transparency for the selec-
Button ted raster image.
Ribbon Combo Box - IPE Color Color Drop-down Displays and changes the current color for
list the selected text in the multiline text editor.
Ribbon Combo Box - Font Drop-down Displays and changes the current font style
list for the selected text in the multiline text edit-
or.
Ribbon Combo Box - Text Height Drop-down Displays and changes the current text height
list for the selected text in the multiline text edit-
or.
Ribbon Gallery - IPE Text Style Gallery Displays and changes the current text style
for the selected text in the multiline text edit-
or.
Ribbon Spinner - Oblique Angle Spinner Displays and changes the current oblique
angle for the selected text in the multiline
text editor.
Ribbon Button - Paragraph Button Button Displays the Paragraph dialog box when the
multiline text editor is active.
Ribbon | 173
Controls available for ribbon panels
Control element Control Description
Type
Spell Check Settings Button Displays the Check Spelling Settings dialog
box when the multiline text editor is active.
Ribbon Spinner - Tracking Spinner Displays and changes the current tracking
spacing for the selected text in the multiline
text editor.
Ribbon Spinner Width Factor Spinner Displays and changes the current width factor
for the selected text in the multiline text edit-
or.
Ribbon Toggle Button - Layer Properties Toggle Displays or closes the Layer Properties Man-
ager palette.
LayerFilterComboControl Drop-down Displays and sets the layer filter used in the
list drawing.
Ribbon Combo Box - Layer State Drop-down Displays the available layer states; you can
list restore a saved layer state.
Ribbon Combo Box - Linetypes Drop-down Displays and sets the current linetype.
list
Ribbon Combo Box - Lineweight Drop-down Displays and sets the current lineweight.
list
Ribbon Toggle Button - Locked Layer Toggle Enables or disables the fading effect for locked
Fading layers.
Locked layer fading Slider Adjusts the percentage lock layers are faded
into the background.
Ribbon Toggle Button - Markup Set Toggle Displays or closes the Markup Set Manager
Manager palette.
Ribbon Combo Box - Multileader Style Drop-down Displays and sets the current multileader style.
list
3D Navigation Combo Control Multiple Displays and sets the current view to a
standard orthographic or isometric view, or
a saved name view based on the current
space.
Ribbon Combo Box - Object Color Drop-down Displays and sets the current object color.
list
Ribbon Menu Button - Switch Windows Button Displays a list of all open drawings; you can
switch to a different open drawing.
Ribbon Radio Button - Paragraph Align- Radio button Displays and changes the current paragraph
ment alignment for the selected text in the multiline
text editor.
Ribbon Toggle Button - Parameters Toggle Displays or closes the Parameters Manager
Manager palette.
Ribbon Toggle Button - PDF Osnap Toggle Controls object snapping for PDF underlays.
Ribbon Combo Box - Plot Style Drop-down Displays and sets the current plot style when
list the current drawing uses named plot styles.
Ribbon Toggle Button - Properties Toggle Displays or closes the Properties palette.
Ribbon Toggle Button - Quick Calculator Toggle Displays or closes the QuickCalc palette.
Ribbon Label - ReferenceEditName Label Displays the name of the block that is directly
being edited in the current drawing.
RibbonAutodeskSeekControl Text box and Allows you to perform a context search from
button the Autodesk Seek web site.
Ribbon | 175
Controls available for ribbon panels
Control element Control Description
Type
Ribbon Control - Empty Row Aligner Spacer Allows you to align empty rows with other
rows that contain commands and controls.
Ribbon Text Box - Find Text Text box Searches a drawing for matching text based
on a text string.
Ribbon Menu Button - Status Bar Op- Drop-down Displays a list of the status bar items that are
tions menu button currently turned on or off.
Ribbon Combo Box - Table Styles Drop-down Displays and sets the current table style.
list
Ribbon Gallery - Text Style Drop-down Displays and sets the current text style.
list
Ribbon Combo Box - Annotation Text Drop-down Displays and sets the default text height for
Height list new text objects.
Ribbon Toggle Button - Tool Palettes Toggle Displays or hides the Tool Palettes window.
Ribbon - Underlay, Adjust Color for Toggle Determines if the colors of the selected under-
Background lay are adjusted based on the current back-
ground color.
Contrast Slider Displays and sets the current contrast for the
selected underlay.
Ribbon - Underlay, Display Monochrome Toggle Determines if the selected underlay should
Toggle Button be displayed in monochrome colors only.
Fade Slider Displays and sets the current fade value for
the selected underlay.
Ribbon - Clip Toggle Button Toggle Determines if the selected underlay is fully
visible or just the area based on the clipping
boundary.
Ribbon - Show Underlay Toggle Button Toggle Determines if the selected underlay is visible
or not.
Ribbon Combo Box - Viewport Configur- Drop-down Sets how the active tiled viewport should be
ations list divided.
Xref fading Slider Displays and sets the level of fading that is
applied to the objects of an xref.
Ribbon Toggle Button - Xref fading Toggle Indicates the objects of xrefs are faded into
the background, enables or disables xref fad-
ing.
Layer Combo Control Drop-down Displays and sets the current layer.
list
4 Click the plus sign (+) next to the ribbon panel where you want to add
a control.
5 Create a new row for the control if you need to, or click the plus sign (+)
next to the row where you want to add a control.
6 In the Command List pane, in the Categories list, click Ribbon Control
Elements.
Ribbon | 177
The Command List pane displays the list of ribbon control elements only.
7 Drag a control from the Command List pane to add it to the panel. Use
the visual indicator bar to specify the position of the control.
8 Click Apply.
4 Click the plus sign (+) next to the ribbon panel where you want to
reposition a control.
6 Drag the control to a new location. Use the visual indicator bar to specify
the position of the command.
7 Click Apply.
4 Click the plus sign (+) next to the ribbon panel where you want to remove
a control.
5 Click the plus sign (+) next to the row where you want to remove a
control. If you need to, continue expanding sub-panels, rows, and
drop-downs to get to the control.
Ribbon | 179
7 Click Apply.
Quick Reference
Commands
CUI
Manages the customized user interface elements in the product.
RIBBON
Opens the ribbon window.
RIBBONCLOSE
Closes the ribbon window.
Ribbon Tabs
Ribbon tabs control the display and order in which ribbon panels are displayed
on the ribbon. You add ribbon tabs to a workspace to control which ribbon
tabs are displayed on the ribbon.
Ribbon tabs do not contain any commands or controls like a ribbon panel
does; instead, they manage the display of ribbon panels on the ribbon. Once
a ribbon tab is created, you can then add references to any of the ribbon panels
from the Panels node under the Ribbon node in the Customizations In <file
name> pane to the ribbon tab. After references to ribbon panels are added to
a ribbon tab, you can control the initial display order in which ribbon panels
appear on a ribbon tab from the ribbon tab’s node in the Customizations In
<file name> pane.
NOTE Newly created ribbon tabs are not automatically added to a workspace.
To display a new ribbon tab on the ribbon, select the workspace in which you
want the ribbon tab to be displayed with and then use the Workspace Contents
pane to add it to the workspace. For information on adding a ribbon tab to a
workspace, see To display ribbon tabs from the CUI Editor on page 301.
In the Workspace Contents pane, you add and remove ribbon tabs from the
ribbon, which is controlled by the current workspace. Once a ribbon tab has
been added to a workspace, you can control the order in which the tab is
displayed on the ribbon by expanding the Ribbon Tabs node under the
Workspace Contents pane.
Display Title of the tab; displayed when the ribbon tab Home
Text is assigned to a workspace and the Ribbon
palette is displayed.
Default Specifies if the ribbon tab is displayed the first Add to workspaces
Display time the CUIx file is loaded as a partial custom-
ization file. The available options are Do Not
Add to Workspaces or Add to Workspaces.
Workspace Specifies how the ribbon tab is merged or ad- Merge or add tab
Behavior ded to the ribbon when this CUIx file is loaded
as a partial customization file. The available
options are Add Tab Only, Merge Tab Only, or
Merge or Add Tab.
Aliases Specifies the aliases for the ribbon tab. Click the ID_TabHome
[ ] button to open the Aliases dialog box. Each
alias in the CUIx file should be unique; it is used
to reference the ribbon tab programmatically.
Ribbon | 181
Display Ribbon Tabs from a Partial CUIx File
When you load ribbon tabs from a partial CUIx file, you can use the Workspace
Behavior property to control how ribbon tabs that might share the same alias
in the main and partial CUIx files are handled. The Add Tab Only option
displays each ribbon tab that is loaded with a workspace as its own tab. While
Merge Tab Only displays the ribbon tabs from a partial CUIx file with those
that have a matching alias in the main CUIx file. The Merge or Add Tab option
merges the tab before a new tab is created on the ribbon.
A new ribbon tab (named New Tab) is placed at the bottom of the Tabs
node.
4 Right-click New Tab. Click Rename. Enter a new name for the ribbon tab.
5 Select the new ribbon tab in the tree view, and update the Properties
pane:
■ In the Display Text box, enter a text string that will appear on the
ribbon tab.
■ In the Contextual Display Type box, specify how the ribbon tab should
be displayed on the ribbon when used with a contextual ribbon tab
state.
■ In the KeyTip box, enter a text string that can be used to access the
ribbon tab from the keyboard.
6 Click Apply.
4 Right-click the ribbon tab that you want to remove. Click Remove.
5 Click Apply.
Ribbon | 183
To add a ribbon panel to a ribbon tab
4 Click the plus sign (+) next to the ribbon tab where you want to add a
ribbon panel.
6 Drag a ribbon panel from the Panels node to a ribbon tab. Use the visual
indicator bar to specify the position of the ribbon panel on the ribbon
tab.
7 Click Apply.
4 Click the plus sign (+) next to the ribbon tab where you want to remove
a ribbon panel.
5 Right-click the ribbon panel that you want to remove. Click Remove.
6 Click Apply.
4 Click the plus sign (+) next to the ribbon tab where you want to reposition
a ribbon panel.
5 Select the ribbon panel that you want to reposition and drag it to a new
location.
Ribbon | 185
6 Once the splitter bar is in the place where you want to insert the ribbon
panel, release the pointing device button.
7 Click Apply.
4 Click the plus sign (+) next to the ribbon tab that contains the ribbon
panel for which you want to adjust the resize style.
7 Click Apply.
Quick Reference
Commands
CUI
Manages the customized user interface elements in the product.
RIBBON
Opens the ribbon window.
RIBBONCLOSE
Closes the ribbon window.
4 Click the plus sign (+) next to Contextual Tab States to expand it.
5 Drag a ribbon tab from the Tabs node to a ribbon contextual tab state.
6 Click Apply.
3 Click the plus sign (+) next to Contextual Tab States to expand it.
4 Click the plus sign (+) next to the contextual tab state that contains the
ribbon tab you want to remove.
Ribbon | 187
5 Right-click the ribbon tab under the contextual tab state and click Remove.
6 Click Apply.
3 Click the plus sign (+) next to Contextual Tab States to expand it.
4 Click the plus sign (+) next to the contextual tab state that contains the
ribbon tab for which you want to change the contextual display type.
Quick Reference
Commands
CUI
Manages the customized user interface elements in the product.
RIBBON
Opens the ribbon window.
RIBBONCLOSE
Closes the ribbon window.
System Variables
RIBBONCONTEXTSELECT
Controls how ribbon contextual tabs are displayed when you single- or
double-click an object.
RIBBONCONTEXTSELLIM
Limits the number of objects that can be changed at one time with the ribbon
property controls or a contextual tab.
RIBBONSELECTMODE
Determines whether a pickfirst selection set remains selected after a ribbon
contextual tab is invoked and the command is completed.
Ribbon | 189
Toolbars
Toolbar customization can be as easy as placing or resizing a toolbar in the
application window to gain drawing efficiency or space. You can also create
and modify toolbars and flyout toolbars, add commands and controls, and
reposition and remove commands and controls from a toolbar.
NOTE When you create a toolbar, you should determine in which workspaces
you want to display the toolbar. By default, a new toolbar is displayed in all
workspaces.
The following table shows the properties of the Standard toolbar as they appear
in the Properties pane.
Description Text used to describe the element; does not appear in Standard Toolbar
the user interface.
Default Display Specifies if the toolbar is displayed when the CUIx file is Add to workspaces
loaded as a partial customization file. The available op-
Default X Location Specifies the location from the left edge of the screen 0
when the toolbar appears when it is floating, or the loca-
tion when it is docked. If docked, a value of 0 indicates
the left most location in a docked area.
Default Y Location Specifies the location from the top edge of the screen 0
when the toolbar appears when it is floating, or the loca-
tion when it is docked. If docked, a value of 0 indicates
the top most location in a docked area.
Aliases Specifies the aliases for the toolbar. Click the [ ] button TB_STANDARD,
to open the Aliases dialog box. Each alias in the CUIx file Standard
should be unique and it is used to reference the toolbar
programmatically.
When you create a new toolbar, the first task you need to do is to provide a
name for it. A new toolbar has no commands or controls assigned to it. If a
toolbar has no commands or controls on it, it is ignored by the program until
you add at least one command or control to it. You add commands and
controls to a toolbar by dragging a command or control from an existing
toolbar or the Command List pane and dropping it onto a toolbar. Once a
command or control has been added to a toolbar, you can change the text
Toolbars | 191
that is displayed in the tooltip when the cursor hovers over top of the button
by changing the Name property that is displayed in the Properties pane.
To display a toolbar
■ Do one of the following:
To display toolbars from the user interface on page 295
To display toolbars using the CUI Editor on page 306
To create a toolbar
■ Click Toolbar1, wait, and click again over the toolbar’s name again
to edit its name in-place.
4 Select the new toolbar in the tree view, and update the Properties pane:
■ In the Description box, enter a description for the toolbar.
■ In the Rows box, enter the number of rows for an undocked toolbar.
Toolbars | 193
5 In the Command List pane, drag the command you want to add to a
location just below the name of the toolbar in the Customizations In <file
name> pane.
6 Click Apply.
3 Drag the menu that you want to create a toolbar from and drop it onto
the Toolbars node.
3 In the Command List pane, drag the command to the toolbar you want
to add it to in the Customizations In <file name> pane.
4 Click Apply.
Toolbars | 195
3 Select the toolbar you want to add a command to.
4 In the Command List pane, drag the command you want to add to the
selected toolbar and drop it on the toolbar’s preview in the Toolbar
Preview pane.
You can control where the command is placed by releasing the mouse
button when the black vertical splitter bar is displayed.
5 Click Apply.
4 Click Apply.
3 Click the plus sign (+) next to the toolbar that contains the command or
control you want to reposition to expand it.
4 Drag the name of the command or control you want to reposition to the
new location in the list of tools.
Toolbars | 197
While dragging the command or control, use the visual indicator bar to
specify the new position of the command or control. When the left arrow
appears, the command or control is moved to the front of the toolbar.
5 Click Apply.
3 Select the toolbar that contains the command or control you want to
reposition.
4 In the Toolbar Preview, drag the command or control that you want to
reposition.
While dragging the command or control, use the visual indicator bar to
specify the new position of the command or control.
5 Click Apply.
While dragging the command, use the visual indicator bar to specify the
new position of the command.
4 Click Apply.
3 Click the plus sign (+) next to a toolbar that contains the command or
control you want to remove.
5 Click Apply.
Toolbars | 199
To remove a command or control from a toolbar in the Toolbar Preview pane
3 Select the toolbar that contains the command or control you want to
reposition.
4 In the Toolbar Preview pane, drag the command or control that you want
to remove and drop it outside of the preview.
5 Click Apply.
3 Drag the command you want to remove from the toolbar and drop it
over the drawing window.
NOTE Making changes to a toolbar’s properties here only affect the initial
appearance of the toolbar after the CUIx file has been loaded. To control the
appearance of a toolbar, it is best to use a workspace.
5 Click Apply.
4 In the Properties pane, Display section, make the desired change to the
Name property (not the Command Name or Command Display Name
properties), and the Description and Extended Help File properties.
5 Click Apply.
Toolbars | 201
Quick Reference
Commands
CUI
Manages the customized user interface elements in the product.
QUICKCUI
Displays the Customize User Interface Editor in a collapsed state.
RIBBON
Opens the ribbon window.
RIBBONCLOSE
Closes the ribbon window.
System Variables
TOOLTIPS
Controls the display of tooltips on the ribbon, toolbars, and other user
interface elements.
Name String that does not appear in the user interface un- Zoom
less the property Use Own Button is set to Yes.
Use Own Button Controls whether the last used toolbar button is set No
as the current button or not. The possible values are
Yes or No.
WARNING Do not change the aliases for a toolbar that is being used as a flyout;
otherwise the link between the toolbar and flyout will become broken.
3 Right-click the toolbar to which you want to add a flyout toolbar. Click
New Flyout.
Toolbars | 203
A new flyout toolbar (named Toolbar1) is placed below the toolbar you
selected.
NOTE You can click, wait, and click again over a toolbar name to edit its
name in-place in the Customizations In <file name> pane.
NOTE Just renaming the toolbar won’t change the name of the flyout. You
must select and rename the flyout independently if you want them to both
have the same name.
5 In the Command List pane, drag the command you want to add to the
toolbar flyout in the Customizations In <file name> pane.
3 Click the plus sign (+) next to the toolbar to which you want to add a
flyout toolbar.
4 Locate the toolbar you want to use as a flyout. Drag the toolbar to a
location in the expanded toolbar.
Toolbars | 205
5 Click Apply.
3 Click the plus sign (+) next to the toolbar to which you want to add a
flyout toolbar.
4 Click the plus sign (+) next to the Menus tree node to expand it.
5 Drag the menu that you want to create a flyout from and drop it onto
the node of the toolbar where you want to place the flyout.
If the menu is dropped on a toolbar, a new flyout and toolbar are created.
Quick Reference
Commands
CUI
Manages the customized user interface elements in the product.
Autodesk Seek Con- Allows for entering a text string to locate content on the Autodesk
trol Seek web site.
Dim Style Control Displays and sets the current dimension style.
Find Text Control Allows for searching on a text string contained in the current
drawing.
Layer Control Displays the current layer and allows you to set a layer current.
Line Weight Control Displays and sets the current line weight.
Toolbars | 207
Control elements for toolbars
Control element Description
Named View Control Displays and sets the current named view.
Plot Style Control Displays and sets the current plot style.
Redo Skinny Button Allows you to reverse the previous undo or undoes.
Control
Table Style Control Displays and sets the current table style.
Text Style Control Displays and sets the current text style.
UCS Control Displays the current UCS and allows you to restore a saved UCS.
Undo Skinny Button Allows you to undo the previous action or actions.
Control
View Control Displays and sets the current standard 3D view for a viewport.
Viewport Scale Con- Displays and sets the current scale for a floating viewport.
trol
Workspace Control Displays the current workspace and allows you to set a workspace
current.
3 Click the plus sign (+) next to the toolbar to which you want to add a
control.
The Command List pane displays the list of toolbar control elements
only.
6 Click Apply.
Toolbars | 209
2 In the Customize User Interface Editor, Customize tab, in the
Customizations In <file name> pane, click the plus sign (+) next to the
Toolbars tree node to expand it.
The Command List pane displays the list of toolbar control elements
only.
5 In the Command List pane, drag the control you want to add to the
selected toolbar and drop it on the toolbar’s preview in the Toolbar
Preview pane.
You can control where you place the command by releasing the mouse
button when the vertical splitter bar is displayed in the location you
want.
6 Click Apply.
3 Click the plus sign (+) next to the toolbar to which you want to add a
control.
5 In the Properties pane, Control box, click the down arrow to display a
list of toolbar controls.
6 Click a toolbar control to replace the original control with the one you
selected.
7 Click Apply.
Toolbars | 211
Quick Reference
Commands
CUI
Manages the customized user interface elements in the product.
Name String used as the caption of the menu on the menu bar. &File
Aliases Specifies the aliases for the menu. Click the [ ] button to POP1, FILE
open the Aliases dialog box. Each alias in the CUIx file
should be unique; and it is used to reference the menu
programmatically.
Quick Reference
Commands
CUI
Manages the customized user interface elements in the product.
System Variables
MENUBAR
NOTE When you create a menu, you should determine in which workspaces you
want to display the menu in. By default, a new menu is displayed in all workspaces.
A new menu (named Menu1) is placed at the bottom of the Menus tree.
■ Click Menu1, wait, and click again over the menu’s name again to
edit its name in-place.
4 Select the new menu in the tree view, and update the Properties pane as
follows:
■ In the Description box, enter a description for the menu.
NOTE You can change the name of a command after it has been added to
a menu. This allows you to define how the user can access the menu item
using keyboard navigation with the Alt key. To do this, select the menu item
under the Menus node and then change the Name property in the Properties
pane.
6 Click Apply.
3 In the Command List pane, drag the command you want to add to a
location just below the menu in the Customizations In <file name> pane.
4 Click Apply.
For information about creating a command, see Create, Edit, and Reuse
Commands on page 94.
3 Click the plus sign (+) next to the pull-down menu that has the command
whose text you want to change.
5 In the Properties pane, in the Display section, make the desired change
to the Name property (not the Command Name or Command Display
Name properties).
6 Click Apply.
Commands
CUI
Manages the customized user interface elements in the product.
System Variables
MENUBAR
GRIPS Defines the Hot Grip shortcut menu. (Right-click the drawing
area while a grip on an object is selected.)
CMDEFAULT Defines the Default mode shortcut menu. (Right-click the drawing
area while no command is active and no objects are selected.)
CMEDIT Defines the Edit mode shortcut menu. (Right-click the drawing
area while one or more objects are selected, no grips are selected,
and no command is active.)
OBJECTS_objectname
Name String that is only used in the CUI Editor and is Block Objects Menu
not displayed in the user interface.
Descrip- Text used to describe the element; does not Shortcut menu for
tion appear in the user interface. block objects
Aliases Specifies the aliases for the shortcut menu. Click POP512,OB-
the [ ] button to open the Aliases dialog box. JECTS_BLOCKREF
Each alias in the CUIx file should be unique and
it is used to reference the shortcut menu pro-
grammatically.
f In the Aliases dialog box, press Enter so you are on a new line. Enter
additional aliases for the menu, and after each one, press Enter. An
alias is automatically assigned, and defaults to the next available POP
g In the Command List pane, drag the command that you want to add
to the location just below the shortcut menu in the Customizations
In <file name> pane.
i Click Apply.
f In the Aliases dialog box, press Enter so you are on a new line. Enter
additional aliases for the menu, and after each one, press Enter. An
alias is automatically assigned, and defaults to the next available POP
number, based on the number of shortcut menus already loaded in
the program.
g In the Command List pane, drag the command that you want to add
to the location just below the shortcut menu in the Customizations
In <file name> pane.
i Click Apply.
f In the Aliases dialog box, press Enter so you are on a new line. Enter
additional aliases for the menu, and after each one, press Enter. An
alias is automatically assigned, and defaults to the next available POP
number, based on the number of shortcut menus already loaded in
the program.
g In the Command List pane, drag the command that you want to add
to the location just below the shortcut menu in the Customizations
In <file name> pane.
i Click Apply.
3 In the Command List pane, drag the command you want to add to a
location just below the menu in the Customizations In <file name> pane.
4 Click Apply.
For information about creating a command, see Create, Edit, and Reuse
Commands on page 94.
3 Click the plus sign (+) next to the shortcut menu that has the command
whose text you want to change.
5 In the Properties pane, in the Display section, make the desired change
to the Name property (not the Command Name or Command Display
Name properties).
6 Click Apply.
Commands
CUI
Manages the customized user interface elements in the product.
System Variables
SHORTCUTMENU
Controls whether Default, Edit, and Command mode shortcut menus are
available in the drawing area.
Create Submenus
You can create submenus to organize and group similar commands together.
Submenus are created in much the same way that you create a menu.
The following table describes the non-alphanumeric characters that can be
used to control the display and behavior of the caption for a submenu.
Non-alphanumeric characters not listed are reserved for future use as special
menu characters.
\t Pushes all label text entered after Help\tF1 displays Help on the left
these characters to the right side of side of the pull-down menu and
the menu. F1 on the right side.
To create a submenu
■ Click Menu1, wait, and click again over the menu’s name again to
edit its name in-place.
8 Click Apply.
Quick Reference
Commands
CUI
Manages the customized user interface elements in the product.
The $ loads a menu section; Pn specifies the active menu section (0 through
16 are valid values); i specifies the menu item number; and xxx (if present),
specifies a string of grayed out or marked characters.
Using the $Pn=xxx syntax, the following example adds a check mark to item
1 in the POP7 section.
$P7.1=!.
Quick Reference
Commands
CUI
Manages the customized user interface elements in the product.
The following macro example replaces a menu at position P3 with the menu
named MyMenu in the customization group named MYMENU.
$P3=mymenu.new3
You can use the $Pn=* special command from within any macro to force the
menu currently assigned to area POPn to be displayed.
®
NOTE The swapping of pull-down menus does not conform to the Microsoft
user interface guidelines and is not guaranteed to be available in future releases
of the program.
■ B - Buttons
■ P - Pull-down menus
■ A - Mouse buttons
■ T - Tablet menus
section
B1-4, A1-4, P0-16, T1-4
customizationgroup
Customization group name in the desired CUIx file
menuname
■ If the current menu bar has only three menus, inserting a menu after menu
P5 results in the new menu's location being P4.
The following shows how to remove the menu NEW3 that is a member of the
MyMenu group.
$Gmymenu.new3=-"
As you might expect, the preceding format is preferable to the Pn= format
because it removes only the specified menu. The following shows how to
remove the menu at the P4 location (whatever it is).
$P4=-
Quick Reference
Commands
CUI
Manages the customized user interface elements in the product.
CUILOAD
Loads a CUIx file.
CUIUNLOAD
Unloads a CUIx file.
-TOOLBAR
Displays, hides, and customizes toolbars.
WORKSPACE
Creates, modifies, and saves workspaces and makes a workspace current.
Quick Properties
With the Quick Properties palette, for a selected object, you can access a sub-set
of the properties that are accessible from the Properties palette.
You can customize the properties that are displayed on the Quick Properties
palette. The properties (displayed when an object is selected) are common to
all object types and are specific to the object that was selected. The available
properties are the same as those on the Properties palette and for rollover
tooltips.
NOTE You can synchronize the properties that are displayed on the Quick
Properties palette with those for rollover tooltips.
NOTE When the system variable QPMODE is set to a value of 1, the general
properties that are checked are displayed in the Quick Properties palette for all
object types that are not in the list on the Objects pane.
To control which object types are used with the Quick Properties palette
4 In the Edit Object Type List dialog box, select the object types you want
to display properties for on the Quick Properties palette.
If an object type is checked, the properties for the object type are displayed
on the Quick Properties palette when an object of the same type is selected
5 Click OK.
3 In the Objects pane, select an object from the Object Type list.
4 In the Properties pane, select the properties you want displayed for an
object type on the Quick Properties palette.
5 Click Apply.
3 In the Objects pane, select Block Reference from the Object Type list.
4 In the Properties pane, select the check box next to Custom and Attributes.
If the Custom category is checked, the dynamic properties for a block are
displayed on the Quick Properties palette. If the Attributes category is
5 Click Apply.
3 In the Properties pane, select the check boxes next to the general
properties you want the Quick Properties palette to display for all object
types.
5 Click Apply.
5 Click Apply.
Quick Reference
Commands
CUI
Manages the customized user interface elements in the product.
System Variables
QPLOCATION
Sets the location mode of Quick Properties palette.
QPMODE
Sets the on or off state of Quick Properties palette.
Rollover Tooltips
Rollover tooltips display the current values of selected properties.
The properties and values that are displayed in a rollover tooltip can be
customized by object type. When customizing the display of the properties
for a rollover tooltip, you can display properties common to all object types
or properties that are specific to an object type. The available properties are
the same as those on the Properties and Quick Properties palettes.
NOTE You can synchronize the properties used for rollover tooltips with those
displayed on the Quick Properties palette.
NOTE When an object is not in the Object Type list on the Objects pane, the
general properties that are checked for all object types are displayed on the rollover
tooltips.
If an object type is checked, the properties for the object type are displayed
on a rollover tooltip when the cursor hovers over an object of the same
type. Clear the check mark next to an object type to remove support for
the object type from rollover tooltips.
5 Click OK.
5 Click Apply.
To override the general properties for all object types that support rollover
tooltips
5 Click Apply.
5 Click Apply.
5 Click Apply.
Quick Reference
Commands
CUI
Manages the customized user interface elements in the product.
OPTIONS
Customizes the program settings.
System Variables
ROLLOVERTIPS
Controls the display of rollover tooltips in the application.
Shortcut Keys
You can assign shortcut keys (sometimes called accelerator keys) to commands
you use frequently.
Name String that is only used in the CUI Editor and is Save
not displayed in the user interface.
Descrip- Text used to describe the element; does not Saves the current
tion appear in the user interface. drawing
NOTE A shortcut key inherits its properties from the command that is used to
create it.
2 In the Customize User Interface Editor, Customize tab, click the plus sign
(+) next to Keyboard Shortcuts to expand it.
3 Click the plus sign (+) next to Shortcut Keys to expand it.
In the Properties pane, the properties for the shortcut key are displayed.
5 In the Key(s) box, click the [ ] button to open the Shortcut Keys dialog
box.
6 Hold down the modifier key Ctrl with a combination of Shift and Alt if
desired and press a letter, number, function, or virtual key such as F1 or
Insert. Valid modifier and key combinations include the following:
■ Function (Fn) keys containing no modifiers
NOTE The virtual keys that are supported are Escape, Insert, Delete,
Home, End, Page Up, Page Down, Left Arrow, Right Arrow, Up Arrow,
and Down Arrow. The virtual key Escape can only be used by itself or with
the modifier combination Ctrl+Shift+Alt.
7 Click OK to assign the key combination and close the Shortcut Keys dialog
box.
Quick Reference
Commands
CUI
Manages the customized user interface elements in the product.
System Variables
TOOLTIPS
Controls the display of tooltips on the ribbon, toolbars, and other user
interface elements.
F1 Displays Help
F3 Toggles OSNAP
F4 Toggles TABMODE
F5 Toggles ISOPLANE
F7 Toggles GRIDMODE
F8 Toggles ORTHOMODE
F9 Toggles SNAPMODE
NOTE In the Customize User Interface (CUI) Editor, you can view, print, or copy
a list of shortcut keys, temporary override keys, or both. The shortcut keys and
temporary override keys in the list are those keys used by the CUIx files that are
loaded in the program.
Properties for the Object Snap Override : Endpoint Temporary Override Key
Properties Description Example
pane item
Name String that is only used in the CUI Editor and is Object Snap Override : Endpoint
not displayed in the user interface.
Descrip- Text used to describe the element; does not ap- Object Snap Override : Endpoint
tion pear in the user interface.
Macro1 Specifies the macro that should be executed when ^P'_.osmode 1 $(if,$(eq,$(getvar,
(Key the keystroke combination is held down by the osnapoverride),'_.osnapoverride 1)
Down) user.
2 In the Customize User Interface Editor, Customize tab, click the plus sign
(+) next to Keyboard Shortcuts to expand it.
5 Select the new temporary override in the tree view, and update the
Properties pane:
■ In the Description box, enter a description for the temporary override
key.
■ In the Key(s) box, click the [ ] button to open the Shortcut Keys dialog
box. In the Shortcut Keys dialog box, click in the Press New Shortcut
Key box to ensure the box has focus, and press a key. Valid modifier
keys include function (Fn keys) with no modifiers, Shift+letter, or
Shift+number key.
■ In the Macro 2 (Key Up) box, enter a macro to be executed when the
temporary override key is released. When no value is defined, key up
restores the application to its previous state (before the temporary
override was executed).
6 Click Apply.
2 In the Customize User Interface Editor, Customize tab, click the plus sign
(+) next to Keyboard Shortcuts to expand it.
3 Click the plus sign (+) next to Temporary Override Keys to expand it.
■ In the Macro 2 (Key Up) box, enter a macro to be executed when the
temporary override key is released. When no value is defined, key up
restores the application to its previous state (before the temporary
override was executed).
6 Click Apply.
Quick Reference
Commands
CUI
Manages the customized user interface elements in the product.
System Variables
TOOLTIPS
Controls the display of tooltips on the ribbon, toolbars, and other user
interface elements.
TEMPOVERRIDES
Turns temporary override keys on and off.
F3 Toggles OSNAP
F8 Toggles ORTHOMODE
F9 Toggles SNAPMODE
NOTE In the Customize User Interface (CUI) Editor, you can view, print, or copy
a list of shortcut keys, temporary override keys, or both. The shortcut keys and
temporary override keys in the list are those keys used by the CUIx files that are
loaded in the program.
Name String used to identify the double click action Attribute Block
in the CUI Editor.
The new double click action (named DoubleClick1) is placed at the bottom
of the Double Click Actions tree.
■ Click DoubleClick1, wait, and click again over the double click action’s
name again to edit its name in-place.
■ In the Object Name box, enter a DXF name or one of the special object
names used for an insert, surface, or underlay object. The value will
automatically be converted to uppercase after the box loses focus.
5 In the Command List pane, drag the command you want to add to the
double click action in the Customizations In <file name> pane.
NOTE Only a single command can be associated with a double click action
at a time.
6 Click Apply.
In the Properties pane, the properties for the double click action you
selected are displayed.
4 In the Object Name box, enter a DXF name or one of the special object
names used for an insert, surface, or underlay object.
5 If you want to replace the current command assigned to the double click
action, click in the Command List pane and drag a different command
to the selected double click action in the Customizations In <file name>
pane.
6 Click Apply.
Commands
CUI
Manages the customized user interface elements in the product.
OPTIONS
Customizes the program settings.
System Variables
DBLCLKEDIT
Controls the double click editing behavior in the drawing area.
PICKFIRST
Controls whether you select objects before (noun-verb selection) or after you
issue a command.
There are some exceptions as to when the DXF name is not used for the Object
Name property of a double click action. These exceptions apply to objects that
use the INSERT DXF names. For example, the double click action named
“Attribute Dynamic Block” in the acadlt.cuix file uses the object name
ATTDYNBLOCKREF. which is used for insert objects that contain attributes
and dynamic actions.
The following table shows the DXF names for many of the objects commonly
found in a drawing. In most cases, the DXF name and the object name are
the same value with the exception of the INSERT DXF name.
CIRCLE Circle
INSERT The Object Names for the different types of block reference
objects are as follows:
ATTBLOCKREF Block reference with attributes
LINE Line
MLINE Multiline
MLEADER Multileader
POINT Point
POLYLINE 2D or 3D polyline
RAY Ray
REGION 2D region
SOLID 2D solid
TABLE Table
WIPEOUT Wipeout
ATTDEF DDEDIT
ATTRIB ATTIPEDIT
ATTBLOCKREF ATTEDIT
ATTDYNBLOCKREF ATTEDIT
BLOCKREF $M=$(if,$(and,$(>,$(getvar,blockeditlock),0)),^C^C_proper-
ties,^C^C_bedit)
DYNBLOCKREF $M=$(if,$(and,$(>,$(getvar,blockeditlock),0)),^C^C_proper-
ties,^C^C_bedit)
HATCH HATCHEDIT
IMAGE IMAGEADJUST
LWPOLYLINE PEDIT
MTEXT MTEDIT
POLYLINE PEDIT
SPLINE SPLINEDIT
TEXT DDEDIT
Mouse Buttons
You can change the standard behavior of pointing devices in the program.
Aliases Specifies the aliases for the mouse button. Click AUX1
the [ ] button to open the Aliases dialog box.
Each alias in the CUIx file should be unique and
it is used to reference the mouse button pro-
grammatically.
5 In the Command List pane, drag the command you want to add to the
mouse button in the Customizations In <file name> pane.
6 Click Apply.
Quick Reference
Commands
CUI
Manages the customized user interface elements in the product.
System Variables
MBUTTONPAN
Controls the behavior of the third button or wheel on the pointing device.
The first button starts the LINE command and displays the Specify First Point
prompt in the normal fashion. The second button also starts the LINE
command, but the program uses the current crosshairs location at the Specify
First Point prompt and displays the Specify Next Point prompt.
Quick Reference
Commands
CUI
Manages the customized user interface elements in the product.
Aliases Specifies the aliases for the tablet menu. Click TABLET1, TABLET1STD
the [ ] button to open the Aliases dialog box.
Each alias in the CUIx file should be unique and
it is used to reference the tablet menu program-
matically.
3 Click the plus sign (+) next to Tablet Menus to expand it.
4 Click the plus sign (+) next to a tablet menu to expand it.
6 In the Command List pane, locate the command you want to add.
8 Click Apply.
3 Click the plus sign (+) next to Tablet Menus to expand it.
4 Click the plus sign (+) next to a tablet menu to expand it.
5 Right-click the row or column that you want to clear. Click Clear
Assignment.
6 Click Apply.
Quick Reference
Commands
CUI
Manages the customized user interface elements in the product.
TABLET
Calibrates, configures, and turns on and off an attached digitizing tablet.
To customize tablet buttons, you follow the same procedures as for customizing
mouse buttons.
For more information about customizing tablet buttons, see Mouse Buttons
on page 270.
Quick Reference
Commands
CUI
Manages the customized user interface elements in the product.
Name String that is used only in the CUI Editor and is Tiled Viewport Layout
not displayed in the user interface.
Aliases Specifies the aliases for the image tile menu. image_vporti
Click the [ ] button to open the Aliases dialog
box. Each alias in the CUIx file should be unique
and it is used to reference the image tile menu
programmatically.
The following table shows the properties for an image tile slide.
Properties of the Four: Equal tile slide on the Tiled Viewport Layout image
tile menu
Properties Description Example
pane item
Name String displayed in the list box on the left side Four: Equal
of the image tile menu dialog box. The string
must include alphanumeric characters with no
punctuation other than a hyphen (-) or an un-
derscore (_).
Command The name of the command as it appears in the Tiled Viewports, Four:
Name Command List pane. Equal
You can use any slide generated by AutoCAD LT as an image. Keep the
following suggestions in mind as you prepare slides for an image tile menu.
■ Keep the image simple. When an image tile menu is displayed, you must
wait for all images to be drawn before making a selection. If you show
numerous complex symbols, use simple, recognizable images rather than
full renditions.
■ Fill the box. When making a slide for an image, be sure to fill the screen
with the image before starting MSLIDE. If the image is very wide and short,
or long and thin, the image tile menu will look best if you use PAN to
center the image on the screen before making the slide.
Images are displayed with an aspect ratio of 3:2 (3 units wide by 2 units
high). If your drawing area has a different aspect ratio, it can be difficult
to produce image slides that are centered in the image tile menu. If you
work within a layout viewport that has an aspect ratio of 3:2, you can
position the image and be assured that it will look the same when it is
displayed in the image tile menu.
■ Remember the purpose of the images. Do not use images to encode abstract
concepts into symbols. Image tiles are useful primarily for selecting a
graphic symbol.
4 In the Create Slide File dialog box, specify the file name.
5 Click Save, and add it to a slide library file if desired. You can associate
this image slide to a new image tile.
2 In the Select Slide File dialog box, browse to and select the slide file you
want to view.
3 Click Open.
The slide file should be displayed in the drawing window. Perform a
Regen on the drawing to clear the slide file from the display.
4 While in the location of the slide files, enter dir *.sld /b > <file name>.
As an example: dir *.sld /b > “myslides”
A text file will be created with the names of the slide files contained in
the current folder.
5 With the text file created of all the slide files in the current folder, enter
<AutoCAD LT Install folder>\slidelib.exe <slide library file name> < <text
file with slide names>.
As an example: “C:\Program Files\AutoCAD LT
2011\slidelib.exe”“myslidelib” < “myslides”
WARNING After you create the slide library, place the individual slide files in a
safe place so they do not accidently get deleted. This is important if you need to
rebuild the slide library one day.
3 In the Legacy list, right-click Image Tile Menu. Click New Image Tile
Menu.
A new image tile menu (named ImageTileMenu1) is placed at the bottom
of the Image Tile Menus tree.
■ Click ImageTileMenu1, wait, and click again over the image tile’s
name again to edit its name in-place.
5 In the Command List pane, drag a command to the new image tile menu
in the Customizations In <file name> pane.
6 In the Properties pane, enter the properties for the new image tile slide
as follows:
■ In the Name box, enter the text to display in the list box for the image
tile.
■ In the Slide library box, enter the name of the image tile slide library
that contains the slide for the image tile. The image tile slide library
must be in one of the folders that defines the Support File Search Path.
If you do not have a slide library, but rather an image tile slide file,
you enter its name in the image tile slide library box.
■ In the Slide label box, enter the name of the image tile slide file
contained in the image tile slide library listed in the Slide library box.
7 Click Apply.
Commands
CUI
Manages the customized user interface elements in the product.
MSLIDE
Creates a slide file of the current model viewport or the current layout.
VSLIDE
Displays an image slide file in the current viewport.
Customize Workspaces
You can customize workspaces to create a drawing environment that displays
only those commands on the Quick Access toolbar, toolbars, menus, ribbon
tabs, and palettes that you select.
For more information about customizing workspaces with the Customize User
Interface Editor, see Control User Interface Elements in the CUI Editor on
page 296.
After you click Customize Workspace in the Workspace Contents pane, the
Customizations In <file name> pane lists the user interface elements that can
be added to the workspace that is currently being modified. Check boxes are
displayed next to each user interface element in the loaded CUIx files. You
use the check boxes to add or remove user interface elements from a workspace.
Name String displayed in the drop-down box on the Work- AutoCAD LT Classic
spaces toolbar, at the command prompt for the
WORKSPACE command, under the Workspaces menu
item in the Tools menu, and in the CUI Editor.
Start On Determines if the Model tab, last active layout tab, or Model
the current active tab in the drawing is displayed when
the workspace is restored or set current.
Status bars Determines if the status bars for the drawing window Application only
or application are displayed or not when the workspace
is restored or set current. The available options are
Application Only, All Off, All On, or Drawing Status Bar
Only.
Scroll bars Determines if the scroll bars are visible or not when the On
workspace is restored or set current.
■ Click Workspace1, wait, and click again over the workspace’s name
again to edit its name in-place.
5 In the Customizations In <file name> pane, click the plus sign (+) next to
the tree nodes to expand them.
NOTE The Quick Access toolbars, ribbon tabs, toolbars, menus, and partial
CUIx file nodes now display check boxes next to them so you can easily add
elements to the workspace.
6 Click the check box next to each user interface element that you want
to add to the workspace.
2 On the Workspaces toolbar, click the drop-down list and select Save
Current As.
3 In the Save Workspace dialog box, Name box, enter a name to create
a new workspace or select an existing workspace from the drop-down
list to overwrite it.
2 In the Save Workspace dialog box, Name box, enter a name to create
a new workspace or select an existing workspace from the drop-down
list to overwrite it.
NOTE You can also save a workspace from the Quick Access toolbar.
■ In the Status Bar box, select an option (Application Only, All Off, All
On, Drawing Status Bar Only).
■ In the Scroll Bars box, select an option (On, Off, Do Not Change).
4 Click Apply.
To duplicate a workspace
■ Click Copy Of <workspace name>, wait, and click again over the
workspace’s name again to edit its name in-place.
6 Click Apply.
NOTE You can also set a workspace from the Quick Access toolbar.
■ To set a workspace current from the Tools menu on the menu bar
■ On the menu bar, click Tools menu ➤ Workspaces ➤ select the
workspace you want to set current.
3 Right-click the workspace you want to set current. Click Set Current.
3 Right-click the workspace you want to set as default. Click Set Default.
4 Click Apply.
3 Click OK.
4 In the Customizations In <file name> pane (right side), drag the workspace
from the CUIx file to the Workspaces node of the main CUIx file in the
Customizations In <file name> pane (left side).
5 Click Apply.
Quick Reference
Commands
CUI
Manages the customized user interface elements in the product.
CUIEXPORT
Exports customized settings from the main CUIx file to an enterprise or
partial CUIx file.
CUIIMPORT
Imports customized settings from an enterprise or partial CUIx file to the
main CUIx file.
System Variables
WSCURRENT
Returns the current workspace name at the Command prompt and sets a
workspace to current.
■ Ribbon tabs
■ Toolbars
■ Palettes
Control the Display of the Ribbon Panels and Tabs on the Ribbon
You can control the display of ribbon panels and tabs from the ribbon shortcut
menu. You can display one of the ribbon tabs assigned to the current workspace
or one of the ribbon panels assigned to the active ribbon tab. To control which
ribbon tabs and panels are assigned to the current workspace, see Control User
Interface Elements in the CUI Editor on page 296.
See also:
■ To display the Quick Access toolbar above or below the ribbon from the
user interface on page 295 (Procedure)
To display the Quick Access toolbar above or below the ribbon from the user
interface
1 Right-click on the Quick Access toolbar.
■ Click Show Quick Access Toolbar Above the Ribbon to display the
Quick Access toolbar above the ribbon.
To control the display of ribbon tabs and panels on the ribbon from the user
interface
1 Right-click on the ribbon.
Quick Reference
Commands
CUI
Manages the customized user interface elements in the product.
System Variables
MENUBAR
■ Ribbon tabs
■ Toolbars
■ Menus
■ Palettes
■ If layout tabs are displayed along the bottom of the drawing window.
See also:
■ To display the Quick Access toolbar above or below the ribbon from the
CUI Editor on page 300 (Procedure)
■ To display ribbon tabs from the CUI Editor on page 301 (Procedure)
■ To control the display of ribbon tabs on the ribbon on page 304 (Procedure)
■ To control the display of ribbon panels for a ribbon tab on page 304
(Procedure)
■ To associate a tool palette group with a ribbon tab on page 305 (Procedure)
5 In the Customizations In <file name> pane, click the plus sign (+) next to
the Quick Access Toolbars tree node or Partial Customization Files tree
node to expand it.
6 Click the check box next to the Quick Access toolbar to add it to the
workspace.
8 Click Apply.
To display the Quick Access toolbar above or below the ribbon from the CUI
Editor
4 In the Workspace Contents pane, click the Quick Access Toolbar tree
node.
5 In the Properties pane, click the Orientation box and select Above or
Below from the drop-down list.
Above displays the Quick Access Toolbar above the ribbon, while below
sets the Quick Access Toolbar below the ribbon.
6 Click Apply.
5 In the Customizations In <file name> pane, click the plus sign (+) next to
the Ribbon Tabs tree node or Partial Customization Files tree node to
expand it.
6 Click the check box next to each ribbon tab that you want to add to the
workspace.
In the Workspace Contents pane, the selected elements are added to the
workspace.
8 Click Apply.
3 Select the workspace that has the ribbon tab you want to reposition.
4 In the Workspace Contents pane, click the plus sign (+) next to the Ribbon
Tabs tree node to expand it.
A splitter bar shows the new location for the ribbon tab.
NOTE Make sure to set the workspace as current to ensure the changes are
displayed.
7 Click Apply.
4 In the Workspace Contents pane, click the plus sign (+) next to the Ribbon
Tabs tree node to expand it.
5 Click the plus sign (+) next to the ribbon tab with the ribbon panel that
you want to reposition to expand it.
A splitter bar shows the new location for the ribbon panel.
7 Once the splitter bar is in the place where you want to insert the ribbon
panel, release the pointing device button.
8 Click Apply.
3 Select the workspace that has the ribbon tab you want to change.
4 In the Workspace Contents pane, click the plus sign (+) next to the Ribbon
Tabs tree node to expand it.
■ In the ToolPalette Group box, select one of the listed tool palette
groups.
7 Click Apply.
3 Select the workspace that has the ribbon tab for which you want to change
the properties of the ribbon panels.
5 Click the plus sign (+) next to the ribbon tab for which you want to
change the properties of the ribbon panels.
8 Click Apply.
4 Select the workspace that has the ribbon tab for which you want to assign
a tool palette group.
5 In the Workspace Contents pane, click the plus sign (+) next to the Ribbon
Tabs node to expand it.
6 Select the ribbon tab that you want to assign a tool palette group.
7 In the Properties pane, in the ToolPalette Group box, click the down
arrow and select the tool palette group you want to assign to the ribbon
tab.
8 Click Apply.
5 In the Customizations In <file name> pane, click the plus sign (+) next to
the Toolbars tree node, or Partial Customization Files tree node to expand
it.
6 Click the check box next to each toolbar that you want to add to the
workspace.
NOTE Make sure to set the workspace current to ensure the changes are
displayed.
8 Click Apply.
3 In the Workspace Contents pane, click the plus sign (+) next to the
Toolbars tree node to expand it.
■ In the Rows box, enter a number. Enter a number to have the buttons
on the toolbar wrap around to create the number of rows if possible.
0 is the default value. (Available only if Orientation is set to Floating.)
6 Click Apply.
5 In the Customizations In <file name> pane, click the plus sign (+) next to
the Menus tree node, or Partial Customization Files tree node to expand
it.
6 Click the check box next to each menu that you want to add to the
workspace.
In the Workspace Contents pane, the selected elements are added to the
workspace.
8 Click Apply.
4 In the Workspace Contents pane, click the plus sign (+) next to the Menus
node to expand it.
A splitter bar shows the new location for the pull-down menu.
6 Once the splitter bar is in the place where you want to insert the menu,
release the pointing device button.
7 Click Apply.
4 In the Workspace Contents pane, click the plus sign (+) next to the
Palettes node to expand it.
6 In the Properties pane, under Appearance, Show box, click the drop-down
list and select Show.
7 Click Apply.
Quick Reference
Commands
CUI
Manages the customized user interface elements in the product.
■ Command Line
■ DesignCenter
■ External References
■ Layer Properties Manager
■ Markup Set Manager
■ Properties
■ QuickCalc
■ Ribbon
■ Tool Palette
Properties for the Tool Palettes window under the AutoCAD LT Classic workspace
Properties pane Description Example
item
Show Visibility state of the palette. The available options are Yes
No, Yes, or Do Not Change. Do Not Change keeps the
last used state of the palette when the workspace is
restored or set current.
Allow Docking Controls if the user can dock the palette by dragging Yes
it to one of the designated docking areas. The available
options are No, Yes, or Do Not Change. Do Not
Change maintains the last used setting for the palette
when the workspace is restored or set current.
Auto Hide Controls if the palette rolls up when not in use. The Off
available options are On, Off, or Do Not Change. Do
Not Change maintains the last used setting for the
palette when the workspace is restored or set current.
Default Group Controls which of the user defined palette groups All Palettes
should be displayed.
See also:
3 In the Workspace Contents pane, click the plus sign (+) next to Palettes
to expand the list.
■ In the Auto Hide box, select an option (On, Off, or Do Not Change).
■ In the Default Group box, select a Tool Palette group (Tool Palettes
window only).
6 Click Apply.
Quick Reference
Commands
CUI
Manages the customized user interface elements in the product.
Transfer Customization
The Customize User Interface (CUI) Editor can be used to transfer data in a
CUI, MNU, or MNS file to a CUIx file without modifying the original
customization or menu file. The new customization file that is created has
the same name as the original file, but with a .cuix extension.
You can also transfer customization information between files. For example,
you can transfer toolbars from a partial CUIx file to the main CUIx file so that
the program can display the toolbar information. In addition, you can move
customizations from the main CUIx file to partial CUIx files, or from a partial
CUIx file to another partial CUIx file.
NOTE All elements can be transferred between two CUIx files with the exception
of the property settings defined under the Quick Properties and Rollover Tooltips
nodes.
If you transfer user interface elements that reference other user interface
elements, such as a flyout, all the relevant information for that interface
element is also transferred. For example, if you transfer the Draw toolbar,
which references the Insert toolbar, the Insert toolbar is also transferred.
NOTE Button images may not appear in the program when you transfer a toolbar,
pull-down menu, or ribbon panel from a CUIx file. If the images are loaded from
an image file, those images must reside in a folder that is defined in the Options
dialog box, Files tab under Support File Search Path or Custom Icon Location. If
the images come from a third-party resource DLL, contact the party who created
the resource DLL.
NOTE The Migrate Custom Settings dialog box can be used to migrate user
interface customization from previous releases. To access the Migrate Custom
Settings dialog box, click Start menu (Windows) ➤ All Programs (or Programs)
➤ Autodesk ➤ AutoCAD LT 2011 ➤ Migrate Custom Settings.
2 In the Customize User Interface Editor, Transfer tab, in the left pane,
click the Open Customization File button.
3 In the Open dialog box, locate the customization file (MNU, MNS, CUI,
or CUIx) from which you want to import customizations, and select it.
Click Open.
5 In the Open dialog box, locate the customization file (MNU, MNS, CUI,
or CUIx) to which you want to export customizations, and select it. Click
Open.
6 In the left pane, click the plus sign (+) next to an interface element node
to expand it. Expand the corresponding node in the right pane.
7 Drag interface elements from the right pane to the appropriate location
in the left pane.
NOTE Interface elements can be dragged in either direction, from the left
to the right pane or the right to the left pane.
8 Click Apply.
Commands
CUI
Manages the customized user interface elements in the product.
CUIEXPORT
Exports customized settings from the main CUIx file to an enterprise or
partial CUIx file.
CUIIMPORT
Imports customized settings from an enterprise or partial CUIx file to the
main CUIx file.
Migrating/Upgrading
Commands
How do I create a new command and add it to a user interface element, such
as a pull-down menu?
Commands are created and managed through the Command List pane located
in the lower-left corner of the Customize tab of the CUI Editor. See To create
a command on page 95 for more information.
Once the command has been created, it can be added to or used to create a
number of different user interface elements. To add the command to a menu
Menus
Toolbars
Why do my toolbars not stay in the same place after I close and restart
AutoCAD LT 2011?
This happens because of the way menus are loaded into AutoCAD LT at startup.
This problem only happens when partial and enterprise CUIx files are used.
To resolve this problem, you can use the new /w command line switch. This
causes AutoCAD LT 2011 to re-initialize the workspace upon startup and place
the toolbars in their correct locations. See To restore a workspace with a
command line switch on page 290 for more information.
Why do I get an AutoCAD LT message box when I try to use a toolbar flyout?
The AutoCAD LT message box is displayed because the toolbar that is being
referenced for the toolbar flyout is not found. AutoCAD LT can’t find the
toolbar because it no longer exists, is not currently loaded because the partial
CUIx file it is in is not loaded, or the alias for the toolbar has been changed.
Launch the CUI Editor and select the flyout on the toolbar that currently is
not working properly. In the Properties pane look at the Source Toolbar
property. Use the Find option to look for a toolbar element with an alias that
matches the text string in the Source Toolbar property of the flyout that does
not work. If one is not located, remove the flyout from the toolbar and drag
the toolbar that you want to reference as a flyout on the toolbar. Close the
CUI Editor. The flyout should now work correctly once again.
Workspaces
Quick Reference
Commands
CUI
Manages the customized user interface elements in the product.
CUIEXPORT
Exports customized settings from the main CUIx file to an enterprise or
partial CUIx file.
CUIIMPORT
Imports customized settings from an enterprise or partial CUIx file to the
main CUIx file.
CUILOAD
Loads a CUIx file.
CUIUNLOAD
Unloads a CUIx file.
OPTIONS
Customizes the program settings.
QUICKCUI
Displays the Customize User Interface Editor in a collapsed state.
WORKSPACE
Creates, modifies, and saves workspaces and makes a workspace current.
325
SETVAR or by entering modemacro at the command prompt. If you modify
the MODEMACRO setting, you can experiment with various status line formats;
however, the maximum number of characters you can enter in this manner
is 255.
If you set MODEMACRO to the null string by entering a period (.), AutoCAD
LT displays the standard status line.
Quick Reference
Commands
SETVAR
Lists or changes the values of system variables.
System Variables
MODEMACRO
Displays a text string on the status line, such as the name of the current
drawing, time/date stamp, or special modes.
In the macro expression, somefun is the name of the DIESEL function, and
arg1, arg2, and so on, are arguments to the function, interpreted according
NOTE The examples in this topic may show the MODEMACRO string as more
than one line of text. You enter it as one long string at the prompt.
You can retrieve any system variable by entering $(getvar, varname). The
current setting of the system variable replaces the macro expression on the
status line. Then, when you switch text styles, for example, MODEMACRO is
reevaluated. If it changes, the new text style name is displayed on the status
line.
Expressions can be nested, and they can be as complex as you want. The
example that follows displays the current snap value and angle (in degrees)
in the status line. It uses nested expressions to convert the snap angle from
radians to degrees and truncates the value to an integer.
Command: modemacro
New value for MODEMACRO, or . for none <"">: Snap: $(getvar, snapunit)
$(fix,$(*,$(getvar,snapang),$(/,180,3.14159)))
You can also display the values in the current linear and angular units modes.
Command: modemacro
New value for MODEMACRO, or . for none <"">: Snap: $(rtos,$(index,0,
$(getvar,snapunit))),$(rtos,$(index,1,$(getvar,snapunit))) $(angtos,
$(getvar,snapang))
DIESEL copies its input directly to the output until it comes to the dollar sign
character ($) or a quoted string. You can use quoted strings to suppress
evaluation of character sequences that would otherwise be interpreted as
DIESEL functions. You can include quotation marks in quoted strings by using
Quick Reference
Commands
SETVAR
Lists or changes the values of system variables.
System Variables
MODEMACRO
Displays a text string on the status line, such as the name of the current
drawing, time/date stamp, or special modes.
■ The symbols to insert are one unit high by one unit wide.
■ The DIMSCALE variable is set to the drawing's scale factor (that is, a drawing
to be plotted at a scale of 1" = 10' would have a scale factor of 120, or a
1/4" = 1' scale drawing would have a scale factor of 48).
The DIESEL expressions in the following example multiply the current value
of DIMSCALE by the specified value, and return an appropriate scale factor.
$M=$(*,$(getvar,dimscale),0.375)
$M=$(*,$(getvar,dimscale),0.5)
$M=$(*,$(getvar,dimscale),0.625)
DIESEL expressions can also return string values to pull-down menu item
labels, so that you can make menus unavailable or otherwise alter the way
they are displayed. To use a DIESEL expression in a pull-down menu label,
make sure that the first character is the $ character.
In the next example, the current layer is set to BASE and the following DIESEL
expression is used as the label.
$(eval,"Current layer: " $(getvar,clayer))
The result is that the appropriate pull-down menu is displayed and updated
whenever the current layer changes.
Current Layer: BASE
NOTE The width of pull-down and shortcut menus is determined when the
customization file is being loaded. Menu labels generated or changed by DIESEL
expressions after a menu is loaded are truncated to fit within the existing menu
width.
If you anticipate that a DIESEL-generated menu label will be too wide, you
can use the following example to ensure that the menu width will
accommodate your labels. This example displays the first 10 characters of the
current value of the USERNAME system variable.
$(eval,"Current value: " $(getvar,username))+
$(if, $(eq,$(getvar,username),""), 10 spaces )^C^Cusername
Also, you can use a DIESEL macro to mark pull-down menu labels or make
them unavailable. The following pull-down menu label displays an unavailable
ERASE while a command is active. The text is displayed normally when a
command is not active.
$(if,$(getvar,cmdactive),~)ERASE
You can use a similar approach to place a mark beside a pull-down menu item
or to interactively change the character used for the mark.
You can use the CLIPBOARD system variable to enable or disable Clipboard
commands on your menu. For example, the following DIESEL expression
disables the Paste Special menu item when the Clipboard is empty:
$(If,$(getvar, clipboard),,~)/Paste &Special...
^C^C_pastespec
Quick Reference
System Variables
CLIPBOARD
Indicates the status of the Clipboard.
MENUECHO
Sets menu echo and prompt control bits.
USERNAME
Specifies the user name.
+ (addition)
Returns the sum of the numbers val1, val2, …, val9.
$(+, val1 [, val2, …, val9])
If the current thickness is set to 5, the following DIESEL string returns 15.
$(+, $(getvar,thickness),10)
Quick Reference
System Variables
MENUECHO
Sets menu echo and prompt control bits.
- (subtraction)
Returns the result of subtracting the numbers val2 through val9 from val1.
$(-, val1 [, val2 , …, val9])
Quick Reference
System Variables
MENUECHO
Sets menu echo and prompt control bits.
* (multiplication)
Returns the result of multiplying the numbers val1, val2, …, val9.
$(*, val1 [, val2, …, val9])
System Variables
MENUECHO
Sets menu echo and prompt control bits.
/ (division)
Returns the result of dividing the number val1 by val2, …, val9.
$(/, val1 [, val2, …, val9])
Quick Reference
System Variables
MENUECHO
Sets menu echo and prompt control bits.
= (equal to)
If the numbers val1 and val2 are equal, the string returns 1; otherwise, it
returns 0.
$(=, val1, val2)
Quick Reference
System Variables
MENUECHO
Sets menu echo and prompt control bits.
The following expression gets the current value of HPANG; if the value is less
than the value stored in the system variable USERR1, it returns 1. If the value
10.0 is stored in USERR1 and the current setting of HPANG is 15.5, the
following string returns 0.
$(<, $(getvar,hpang),$(getvar,userr1))
Quick Reference
System Variables
MENUECHO
Sets menu echo and prompt control bits.
Quick Reference
System Variables
MENUECHO
Sets menu echo and prompt control bits.
System Variables
MENUECHO
Sets menu echo and prompt control bits.
Quick Reference
System Variables
MENUECHO
Sets menu echo and prompt control bits.
Quick Reference
System Variables
MENUECHO
Sets menu echo and prompt control bits.
Quick Reference
System Variables
MENUECHO
Sets menu echo and prompt control bits.
angtos
Returns the angular value in the format and precision specified.
$(angtos, value [, mode, precision])
Edits the given value as an angle in the format specified by the mode and
precision as defined for the analogous AutoLISPfunction. (The values for
mode are shown in the following table.) If mode and precision are omitted, it
uses the current values chosen by the UNITS command.
0 Degrees
1 De-
grees/minutes/seconds
2 Grads
3 Radians
4 Surveyor's units
and | 335
Quick Reference
System Variables
MENUECHO
Sets menu echo and prompt control bits.
edtime
Returns a formatted date and time based on a given picture.
$(edtime, time, picture)
Edits the AutoCAD LT Julian date given by time (obtained, for example, from
$(getvar,date) according to the given picture). The picture consists of
format phrases replaced by specific representations of the date and time.
Characters not interpretable as format phrases are copied literally into the
result of $(edtime). Format phrases are defined as shown in the following
table. Assume that the date and time are Saturday, 5 September 1998
4:53:17.506.
D 5 H 4
DD 05 HH 04
DDD Sat MM 53
DDDD Saturday SS 17
M 9 MSEC 506
MO 09 AM/PM AM
YY 98 a/p a
YYYY 1998
Quick Reference
System Variables
MENUECHO
Sets menu echo and prompt control bits.
eq
If the strings val1 and val2 are identical, the string returns 1; otherwise, it
returns 0.
$(eq, val1, val2)
Quick Reference
System Variables
MENUECHO
Sets menu echo and prompt control bits.
eq | 337
eval
Passes the string str to the DIESEL evaluator and returns the result of
evaluating it.
$(eval, str)
Quick Reference
System Variables
MENUECHO
Sets menu echo and prompt control bits.
fix
Truncates the real number value to an integer by discarding any fractional
part.
$(fix, value)
Quick Reference
System Variables
MENUECHO
Sets menu echo and prompt control bits.
getenv
Returns the value of the environment variable varname.
$(getenv, varname)
System Variables
MENUECHO
Sets menu echo and prompt control bits.
getvar
Returns the value of the system variable with the given varname.
$(getvar, varname)
Quick Reference
System Variables
MENUECHO
Sets menu echo and prompt control bits.
if
Conditionally evaluates expressions.
$(if, expr, dotrue [, dofalse])
Quick Reference
System Variables
MENUECHO
Sets menu echo and prompt control bits.
getvar | 339
index
Returns the specified member of a comma-delimited string.
$(index, which, string)
Assumes that the string argument contains one or more values delimited by
the macro argument separator character, the comma. The which argument
selects one of these values to be extracted, with the first item numbered 0.
This function is most frequently used to extract X, Y, or Z coordinate values
from point coordinates returned by $(getvar).
Quick Reference
System Variables
MENUECHO
Sets menu echo and prompt control bits.
nth
Evaluates and returns the argument selected by which.
$(nth, which, arg0 [, arg1,…, arg7])
If which is 0, nth returns arg0, and so on. Note the difference between $(nth)
and $(index); $(nth)returns one of a series of arguments to the function,
while $(index) extracts a value from a comma-delimited string passed as a
single argument. Arguments not selected by which are not evaluated.
Quick Reference
System Variables
MENUECHO
Sets menu echo and prompt control bits.
Quick Reference
System Variables
MENUECHO
Sets menu echo and prompt control bits.
rtos
Returns the real value in the format and precision specified.
$(rtos, value [, mode, precision])
Edits the given value as a real number in the format specified by the mode and
precision as defined by the analogous AutoLISP function. If mode and
precision are omitted, it uses the current values selected with the UNITS
command.
Edits the given value as a real number in the format specified by mode and
precision. If mode and precision are omitted, it uses the current values
selected with the UNITS command.
Quick Reference
System Variables
MENUECHO
Sets menu echo and prompt control bits.
strlen
Returns the length of string in characters.
$(strlen, string)
or | 341
Quick Reference
System Variables
MENUECHO
Sets menu echo and prompt control bits.
substr
Returns the substring of string, starting at character start and extending for
length characters.
Quick Reference
System Variables
MENUECHO
Sets menu echo and prompt control bits.
upper
Returns the string converted to uppercase according to the rules of the current
locale.
$(upper, string)
Quick Reference
System Variables
MENUECHO
Sets menu echo and prompt control bits.
Quick Reference
System Variables
MENUECHO
Sets menu echo and prompt control bits.
Quick Reference
System Variables
MENUECHO
Sets menu echo and prompt control bits.
xor | 343
344
Slides and Command
Scripts 6
Slides are snapshots of drawing files that can be used for giving presentations, for creating
image tile menus, and for viewing another drawing while you work.
A script reads and executes commands from a text file. You can run a script when you start
AutoCAD LT®, or you can run a script from within AutoCAD LT using the SCRIPT command.
A script provides an easy way to create continuously running displays for product
demonstrations and trade shows.
Create Slides
Slides are snapshots of drawing files. You can use slides for giving presentations,
creating custom image tile menus, and viewing an image of another drawing
while you work.
Overview of Slides
A slide is a snapshot of a drawing. Although it contains a picture of the drawing
at a given instant, it is not a drawing file.
You cannot import a slide file into the current drawing, nor can you edit or
print a slide. You can only view it.
You can use slide files in the following ways:
®
■ For making presentations within AutoCAD LT
345
You create a slide by saving the current view in slide format. A slide created
in model space shows only the current viewport. A slide created in paper space
shows all visible viewports and their contents. Slides show only what was
visible. They do not show objects on layers that were turned off or frozen or
objects in viewports that were turned off.
When you view a slide file, it temporarily replaces objects on the screen. You
can draw on top of it, but when you change the view (by redrawing, panning,
or zooming), the slide file disappears, and AutoCAD LT redisplays only what
you drew and any preexisting objects.
You can display slides one by one or use a script to display slides in sequence.
Slides also can be used in custom menus. For example, if you create scripts
that insert blocks containing mechanical parts you use frequently, you can
design a custom image tile menu that displays a slide of each part. When you
click the slide image on the menu, AutoCAD LT inserts the block into the
drawing.
A slide library is a file containing one or more slides. Slide library files are used
for creating custom image tile menus and for combining several slide files for
convenient file management.
You cannot edit a slide. You must change the original drawing and remake
the slide. If you use a low-resolution graphics monitor when creating a slide
file and later upgrade to a high-resolution monitor, you can still view the
slide. AutoCAD LT adjusts the image accordingly; however, the slide does not
take full advantage of the new monitor until you remake the slide file from
the original drawing.
To make a slide
1 Display the view you want to use for the slide.
3 In the Create Slide File dialog box, enter a name and select a location for
the slide.
AutoCAD LT offers the current name of the drawing as a default name
for the slide and automatically appends the .sld file extension.
4 Click Save.
The current drawing remains on the screen, and the slide file is saved in
the folder that you specified.
Commands
MSLIDE
Creates a slide file of the current model viewport or the current layout.
REDRAW
Refreshes the display in the current viewport.
VSLIDE
Displays an image slide file in the current viewport.
System Variables
FILEDIA
Suppresses display of file navigation dialog boxes.
Utilities
SLIDELIB
Compiles slide files listed in an ASCII file into a slide library file.
View Slides
You can view slides individually using VSLIDE. To view a series of slides for a
presentation, use a script file.
Be careful about using editing commands while you view a slide, which looks
like an ordinary drawing. Editing commands affect the current drawing
underneath the slide but not the slide itself.
Some commands may force redrawing, which removes the slide from display.
To view a slide
1 At the command prompt, enter vslide.
2 In the Select Slide File dialog box, select a slide to view and click OK.
The slide image is displayed in the drawing area.
Commands
REDRAW
Refreshes the display in the current viewport.
VSLIDE
Displays an image slide file in the current viewport.
2 Name and save the file as a text file with a .txt file extension.
5 At the prompt, enter the following syntax to create the slide library:
slidelib libraryname < list.txt
For example, if you named your text file areas.txt, you could create a
library called house.slb by entering slidelib house < areas.txt. The SLIDELIB
utility appends the file extension .slb to the slide library file.
5 To remove the slide from the display, click View menu ➤ Redraw.
Quick Reference
Commands
MSLIDE
Creates a slide file of the current model viewport or the current layout.
REDRAW
Refreshes the display in the current viewport.
VSLIDE
Displays an image slide file in the current viewport.
Utilities
SLIDELIB
Compiles slide files listed in an ASCII file into a slide library file.
NOTE Keep in mind that prompts and command names may change in future
releases, so you may need to revise your scripts when you upgrade to a later version
of this program. For similar reasons, avoid the use of abbreviations; future command
additions might create ambiguities.
A script can execute any command at the command prompt except a command
that displays a dialog box. In most cases, a command that displays a dialog
box has an alternative version of the command that displays command
prompts instead of a dialog box.
Script files can contain comments. Any line that begins with a semicolon (;)
is considered a comment, and it is ignored while the script file is being
processed. The last line of the file must be blank.
All references to long file names that contain embedded spaces must be
enclosed in double quotes. For example, to open the drawing my house.dwg
from a script, you must use the following syntax:
open "my house"
When command input comes from a script, it is assumed that the settings of
the PICKADD and PICKAUTO system variables are 1 and 0, respectively;
therefore, you do not have to check the settings of these variables.
A script is treated as a group, a unit of commands, reversible by a single U
command. However, each command in the script causes an entry in the undo
log, which can slow script processing. If you like, you can use UNDO Control
None to turn off the undo feature before running the script, or you can write
it at the beginning of the script itself. Remember to turn it back on (UNDO
Control All) when the script is finished.
The script that is running stops when another script command is invoked.
5 Save the file as ASCII text (TXT file), with a file extension of .scr.
The script file may contain comments, as follows:
; Turn grid on
grid on
; Set scale for linetypes
ltscale 3.0
; Set current layer and its color
layer set 0 color red 0
Commands
DELAY
Provides a timed pause within a script.
GRAPHSCR
Switches from the text window to the drawing area.
RESUME
Continues an interrupted script.
RSCRIPT
Repeats a script file.
SCRIPT
Executes a sequence of commands from a script file.
TEXTSCR
Opens the text window.
VSLIDE
Displays an image slide file in the current viewport.
The first line turns on the grid. The second line sets the global scale for
linetypes. The third line sets the current layer to layer 0 and sets its default
color to red. AutoCAD LT assumes that in a script you want to use the version
of LAYER command that displays command prompts rather than the dialog
box version. The result is equivalent to entering -layer at the command prompt.
The fourth line is blank, ending LAYER.
You could run a script at startup to open a drawing by using the following
syntax in the Run dialog box:
ACADLT drawing_name /b setup
All file names that contain embedded spaces must be enclosed in double
quotes, for example, “guest house”. You can also specify the view that is
displayed when the drawing opens by using the /v switch and the view name.
The /b switch and the script file must be the last parameter listed.
Including the file extensions .exe, .dwg, .dwt, and .scr is optional. If AutoCAD
LT cannot find the script file, AutoCAD LT reports that it cannot open the
file.
To run the same script at startup but create a new drawing using the
MyTemplate.dwt file as the template, enter the following in the Run dialog box:
ACADLT /t MyTemplate /b setup
This command creates a new drawing and issues a sequence of setup commands
from the setup.scr file. When the script has finished running, the command
prompt is displayed. If you want to use the default template for the new
drawing, you can omit the /t switch and the template file name.
NOTE You can no longer use this method to start a new drawing and give it a
name. Name the drawing when you save it.
4 In the Select Script File dialog box, select a script file and click Open.
4 On the fourth line, enter vslide. On the fifth line, enter vslide *slide3.
On the sixth line, enter delay 2000.
The fourth, fifth, and sixth lines display slide2, preload slide3, and specify
a delay for viewing slide2.
5 On the seventh line, enter vslide. On the eighth line, enter delay 3000.
The seventh and eighth lines display slide3 and specify a delay for viewing
slide3.
7 To stop a repeating script press ESC. To continue the script, enter resume.
Quick Reference
Commands
DELAY
Provides a timed pause within a script.
GRAPHSCR
Switches from the text window to the drawing area.
RESUME
Continues an interrupted script.
RSCRIPT
Repeats a script file.
SCRIPT
Executes a sequence of commands from a script file.
TEXTSCR
Opens the text window.
359 | Index
repeating 109 customizing workspaces 70, 280,
reusing 94 296
ribbon panels and 149 Dynamic Display pane 47
scripts 350 FAQs 319
shortcut menus and 67, 212 tree nodes 56
status line messages 128 CUIx (customization) files
submenus and 227 backups 73
swapping menu contents 110 backwards compatibility 48
tablet buttons and 274 creating 73
tagging 119 CUI Editor 42, 58
tooltips 122 customization FAQs 322
transparent commands 106 defined 54
comments enterprise CUIx files 82
script commenting 350 finding items in 86
conditional expressions in macros 112 importing workspaces 282
configuration files (plotters) menu swapping 232
multiple 6 migrating older files to 316
configuration files (pointing devices) partial CUIx files 78
multiple 6 structure 50
contextual ribbon tabs 64, 187 XML-based format 48
control characters in macros 104 current workspaces 283
controls custom icon files 11
ribbon controls 171 customization
ribbon panels 149 about 1
toolbar controls 207 customization files (CUI)
coordinates backwards compatibility 48
reading with pointing devices 271 CUIx files 42
copying defined 55
buttons to other toolbars 190 DIESEL expressions in 328
customization file data 316 directory structure and 4
list of shortcut keys 248 locating files 11
crosshairs migrating to CUIx 316
coordinates of 271 structure 50
CUI (customization) files customization files (CUIx)
backwards compatibility 48 about 42, 73
CUIx files 42 backups 73
defined 55 backwards compatibility 48
migrating to CUIx 316 creating 73
structure 50 CUI Editor 58
CUI Editor customization FAQs 322
about 39, 42, 58 defined 54
changes in customization and 48, enterprise CUIx files 82
319 finding items in 86
Command List pane 45 importing workspaces 282
Customizations In pane 44 menu swapping 232
migrating older menu files to 316
360 | Index
partial CUIx files 78 windows 296
structure 50 workspaces 70, 280, 293
XML-based format 48
customization groups 52, 54
Customizations In pane (CUI editor) 44 D
Customize User Interface editor dashboard panel 55
about 39, 42, 58 dashes
changes in customization and 48 hatch pattern definitions 30
Command List pane 45 linetype definitions 20
Customizations In pane 44 dates
customizing workspaces 70, 280, edtime DIESEL function 336
296 delaying slide shows 354
Dynamic Display pane 47 deleting
FAQs 319 menus 231
tree nodes 56 ribbon items 155
customizing toolbar buttons 190
about customization 39 dialog boxes
AutoCAD functions and features 1 image tile dialog boxes 275
commands 58, 92 DIESEL expressions
Customize User Interface editor 39, about 325
58 customizing status line 326
double click actions 68, 262 error messages 343
FAQs for 319 macros and 101, 112, 328
glossary of terms for 54 nesting 327
hatch patterns 27 pull-down menu labels 329
hatches 27 quoted strings in 327
images for commands 132 DIESEL functions
legacy interface elements 272 addition 331
linetypes 19 and 335
locating customized files 8 angtos 335
migrating older customization catalog 331
files 316 division 332
mouse button actions 69, 270 edtime 336
properties 233 eq 337
pull-down menus 65, 212 equal to 332
Quick Access toolbar 142 eval 338
ribbon 61, 149, 294 fix 338
shortcut keys 68 getenv 338
shortcut menus 67, 212 getvar 339
status line 325–326 greater than 333
tablet buttons 274 greater than or equal to 334
templates 14 if 339
toolbars 60, 64, 190 index 340
tooltips 241 less than 333
types of customized files 8 less than or equal to 334
user interface 39, 73 multiplication 331
Index | 361
not equal to 333 editing
nth 340 commands 94
or 341 double click actions for 262
rtos 341 shortcut keys 248
strlen 341 slide files and 347
substr 342 toolbars 192
subtraction 331 edtime DIESEL function 336
upper 342 element IDs 55
xor 343 enterprise customization files
digitizing tablets about 73
buttons 270, 274 creating 82
directory paths customization FAQs 322
program and support files 4 defined 55
displaying eq DIESEL function 337
contextual ribbon tabs 64 equal to DIESEL function 332
hidden files 9 error messages
list of shortcut keys 248 DIESEL 343
menus 298 eval DIESEL function 338
palettes 294, 298 exporting images for commands 134
Quick Access toolbar 293, 297 extended help 122
ribbon panels 294, 297
ribbon tabs 294, 297
slide shows 354 F
slides 347 files
toolbars 294, 297 locations 8
tooltips 241 maintenance 7
workspace toolbars 190 roaming profiles and 9
division DIESEL function 332 finding
docked windows 56 commands in CUIx files 86
dots in linetype definitions 20 customized files 8
double click actions tagged commands 119
customization FAQs 321 fix DIESEL functions 338
customizing 68, 262 floating windows 56
drawing files (DWG) flyouts
folders and maintenance 7 buttons 202
slides of 345 toolbars 202
drop-down lists 171, 207 FMP files (font mapping) 11
drop-downs font mapping files 11
ribbon panels 167 fonts
Dynamic Display pane (CUI editor) 47 including in linetypes 24
Dynamic Help 53 function keys (F1-F12) 248, 253, 256,
261
E
echoes in macros 103 G
getenv DIESEL function 338
362 | Index
getvar DIESEL function 339 Customize User Interface editor 39,
graphics for commands 129, 132, 134 58, 296
graying out menu item labels 113 customizing 39
greater than DIESEL function 333 legacy interface elements 272
greater than or equal to DIESEL terminology 54
function 334 workspaces 70
interface elements
defined 55
H swapping 110, 231
hatch patterns tree view 44
about 27 interface items 55
creating 27 international character sets 109
examples 27, 31, 34 Internet
multiple lines 34 customizing templates for 14
hatches
creating 27 K
customizing 27
Help keyboard input in macros 106
Dynamic Help 53 keyboard shortcuts 68, 248, 253, 256,
locating Help files 11 261
tooltip command Help 122
hidden files 9
hiding L
toolbar buttons 190 languages
macro translations 109
I legacy interface elements 55, 272
less than DIESEL function 333
if DIESEL function 339 less than or equal to DIESEL
image tile menus function 334
creating 275 library search path 4
menu swapping 231 LIN files (linetype library) 11, 19
slides and 348 linetypes
images for commands 129, 132, 134 about 19
importing creating 20
customization file data 316 customizing 19
images for commands 134 examples 20
workspace settings 282 simple 20
index DIESEL function 340 text characters in 24
input listing
pausing macros for 106 commands 45
inserting keyboard shortcuts 248
menus 231 loading
interface customization files 73
changes in customization process 48 partial customization files 78
customization FAQs 319
Index | 363
M removing 231
shortcut menus 67
macros submenus 227
about 101 swapping 110, 230
conditional expressions in 112 tablet menus 272
defined 56 workspace arrangements 298
DIESEL expressions in 112, 328 migrating
international language support 109 customization FAQs 319
length 103 menu files from previous
pausing for user input 103, 106 releases 316
repeating commands 109 MNC files 49
scripts 350 MNL files (menu LISP)
selecting objects with 110 customization and 49
shortcut keys and 248 MNR files (menu template) 49
special character codes for MNS files (source menu)
commands 104 changes in customization and 48
suppressing echoes and defined 55
prompts 103 migrating 316
swapping interface elements MNU files (menu template)
with 110 changes in customization and 48
syntax 101 defined 55
tablet menus and 272 migrating 49, 316
terminating 103 model space
main customization files 56, 73 slides created in 346
menu files 49 modifying
menu groups (customization commands 94
groups) 52, 54 double click actions for 262
menu items shortcut keys 248
DIESEL expressions and 329 toolbars 192
disabling 113 mouse
graying out 113 coordinates of crosshairs 271
status line messages 128 customizing button actions 69, 270
menu referencing 229 double click actions 262
menu resource files (MNR) 49 swapping actions 110
menu swapping 110, 232 multiple configuration files 6
menu template files (MNU) 48, 55 multiple-line hatch patterns 34
menus multiplication DIESEL function 331
creating 65, 67, 212
customization FAQs 320
customizing 65, 67, 212 N
international language support 109 naming
legacy interface elements 55 linetypes 21
menu files 49 networks
menu referencing 229 enterprise customization files
pull-down menus 65, 213 and 82
rearranging commands 44
364 | Index
nodes swapping actions 110
interface customization 56 prefixes for commands 18
not equal to DIESEL function 333 preloading slides 354
nth DIESEL function 340 previous releases
number pad keys 248, 253, 256, 261 backwards compatibility 48
changes in customization process 48
legacy interface elements 272
O migrating custom settings from 316
object properties printing
customizing 233 lists of shortcut keys 248
objects profiles 9
double click actions 266 prompts
properties 233 suppressing 103
shortcut menus 218 properties
or DIESEL function 341 commands 92
customizing 233
Quick Properties panel 233
P toolbars 190
workspaces 282
palettes PSF files 11
defined 56 Publish to Web wizard
displaying 294 customizing templates 14
workspaces and 298, 312 pull-down menus
paper space creating 65, 213
slides created in 346 customizing 65, 212, 231
partial customization files menu referencing 229
about 73
creating 78
defined 56 Q
toolbars and 232
partial menu files 231 Quick Access toolbar 56, 60, 142, 293,
PAT files 11 297
patterns Quick Properties panel 233
linetypes 22
pausing macros 103, 106 R
PGP files (program parameters) 11
plot styles rearranging
locating files 9 menus 44
plotter configuration files ribbon items 155
locating files 10 ribbon tabs 180
multiple files 6 toolbar buttons 190
PMP files (plot model parameter) 10 referencing menus 229–230
pointing devices removing
coordinates of crosshairs 271 menus 231
customizing button actions 270 ribbon items 155
double click actions 262 toolbar buttons 190
multiple configuration files 6 repeating commands 109
Index | 365
replacing selecting
commands in CUIx files 86 objects with macros 110
ribbon shortcut keys
command images 129, 132, 134 assigning 248
contextual tab states 64, 187 customizing 68
controls 171 defaults 253
customizing 61, 149 temporary override keys 256, 261
defined 56 shortcut menus
drop-downs on panels 167 aliases 217
reorganizing command and context-sensitive shortcut
controls 155 menus 217
ribbon panels 56, 61 creating 67, 217
ribbon tabs 63–64, 180 customizing 67, 212
workspaces and 297 double click actions 262
ribbon panels menu referencing 229
adding items to 155 slide libraries 277, 348
controls for 171 slide shows 354
creating 61 SLIDELIB utility 348
customizing 149, 294 slides
defined 56 about 345
drop-downs on 167 creating 345
rearranging 297 editing commands and 347
ribbon tabs image tile menus and 275, 277, 348
contextual tab states 64, 187 preloading 354
creating 63, 180 slide libraries 348
customizing 294 slide shows 354
rearranging 297 viewing 347
roaming profiles 9 source menu files (MNS) 48–49, 55, 316
rollover tooltips 241 spaces in linetypes 20
rows (ribbon) 149 special characters
rtos DIESEL function 341 commands and 227
image tile menus 275
macros and 101, 104, 227
S startup scripts 352
SCR files (scripts) 350 status line 128, 325–326
scripts strings in CUIx files 86
about 345, 350 strlen DIESEL function 341
file names and 350, 353 submenus 227
running at startup 352 substr DIESEL function 342
running slide shows from 354 subtraction DIESEL function 331
switches and 353 support files
search paths locations 11
default file locations 4 suppressing echoes and prompts 103
searching swapping
finding commands in CUIx files 86 interface elements with macros 110
finding tagged commands 119 menus 230
366 | Index
switches rearranging elements on 44
running scripts and 353 workspace arrangements 297
switching tooltips
toolbar controls 207 command Help in 122
symbols customizing 241
commands and 227 transferring customization files 316
image tile menus 275 translating macros 109
macros and 101, 104, 227 transparent commands 106
syntax tree nodes 56
macros 101
system variables
toggling values with macros 112 U
unique IDs (element IDs) 55
T unloading
partial customization files 78
tablets UNT files 11
customizing buttons 270, 274 updating
customizing menus 272 customization files 316
menu swapping 110, 231 upgrading
tags customization FAQs 319
element IDs 55 migrating customization files 316
menu commands 119 upper DIESEL function 342
templates user input
customizing 14 pausing macros 106
temporary override keys 255, 261 user interface
terminating macros 103 changes in customization process 48
text customization FAQs 319
including in linetypes 24 Customize User Interface editor 39,
time 58, 296
edtime DIESEL function 336 customizing 39
toolbar buttons legacy interface elements 272
customizing 190 terminology 54
images 190 workspaces 70
rearranging 44, 190
toolbars
command images 129, 132, 134 W
controls on 207 web pages
creating 64, 192 templates 14
customization FAQs 320 windows
customizing 64, 190 customizing 296
displaying 294 workspaces and 312
flyouts on toolbar buttons 202 workspaces
naming 190 CUI Editor 280, 296
partial CUIx files and 232 current 283
properties 190 customization FAQs 321
Quick Access toolbar 60, 142, 297 customizing 70, 280, 293
Index | 367
defined 56 X
importing 282
properties 282 XAML files 123
ribbon tabs 180 xor DIESEL function 343
toolbars in 190
368 | Index