2012
Table Of Contents
- Contents
- Basic Customization
- Custom Linetypes
- Custom Hatch Patterns
- User Interface Customization
- DIESEL
- Command Scripts
- Introduction to Programming Interfaces
- Shapes and Shape Fonts
- Overview of Shape Files
- Create Shape Definition Files
- Shape Descriptions
- Vector Length and Direction Code
- Special Codes
- Use Special Codes
- Codes 0, 1, and 2: End of Shape and Draw Mode Control
- Codes 3 and 4: Size Control
- Codes 5 and 6: Location Save/Restore
- Code 7: Subshape
- Codes 8 and 9: X-Y Displacements
- Code 00A: Octant Arc
- Code 00B: Fractional Arc
- Codes 00C and 00D: Bulge-Specified Arcs
- Code 00E: Flag Vertical Text Command
- Text Font Descriptions
- Sample Files
- Big Font Descriptions
- Unicode Font Descriptions
- Superscripts and Subscripts in SHX Files
- Index
Commands and Command Element
The Commands element is optional unless the LoadOnCommandInvocation
parameter is enabled for the LoadReasons attribute. Used to specify which
commands to register for LoadOnCommandInvocation.
You can specify more than one Command element as needed.
A Commands element can have the following attribute attached to it:
DescriptionAttribute
Name used to organize related commands.GroupName
Command Element
Specifies the global and local names for each command.
A Command element can have any of the following attributes attached to it:
DescriptionAttribute
Global command name.Global
Local command name.Local
Commands can be defined for multiple languages by
combining Local with a locale code. See Supported
Locale Codes (page 100) for a full list of supported locale
codes.
Supported Locale Codes
AutoCAD for Mac is localized in a wide range of languages and the structure
of the PackageContents.xml file supports these different languages with locale
codes.
Many of the attributes in the PackageContents.xml file support localized
languages. Append a locale code to the end of an attribute name to define a
localized version of the attribute.
100 | Chapter 7 Introduction to Programming Interfaces