2011
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
AutoLISP provides two file formats for applications:
■ Reading an LSP file (.lsp)—an ASCII text file that contains AutoLISP program
code.
■ Reading an FAS file (.fas)—a binary, compiled version of a single LSP
program file.
NOTE Like-named AutoLISP application files are loaded based on their Modified
time stamp; the LSP or FAS file with the most recent time stamp is loaded unless
you specify the full file name (including the file name extension).
Because AutoCAD for Mac can read AutoLISP code directly, no compiling is
required. This makes AutoLISP an easy language to experiment with, regardless
of your programming experience.
Even if you are not interested in writing AutoLISP applications, your AutoCAD
for Mac package includes many useful routines. Routines are also available as
shareware through third-party developers. Knowing how to load and use these
routines can enhance your productivity.
NOTE When command input comes from the AutoLISP command function, the
settings of the PICKADD and PICKAUTO system variables are assumed to be 1 and
0, respectively. This preserves compatibility with previous releases of AutoCAD for
Mac and makes customization easier (because you don't have to check the settings
of these variables).
For information about AutoLISP programming, see the AutoLISP Developer's
Guide, and for information about AutoLISP, see the AutoLISP Reference in the
Help system.
Quick Reference
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.
94 | Chapter 7 Introduction to Programming Interfaces