2011

Table Of Contents
eval . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
fix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
getenv . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
getvar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
if . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
nth . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
or . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
rtos . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
strlen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
substr . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
upper . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
xor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
DIESEL Error Messages . . . . . . . . . . . . . . . . . . . . . . . . . . 87
Chapter 6
Command Scripts . . . . . . . . . . . . . . . . . . . . . . . . . 89
Create Command Scripts . . . . . . . . . . . . . . . . . . . . . . . . . 89
Overview of Command Scripts . . . . . . . . . . . . . . . . . . . 89
Run Scripts at Startup . . . . . . . . . . . . . . . . . . . . . . . . 91
Chapter 7
Introduction to Programming Interfaces . . . . . . . . . . . . . 93
AutoLISP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
Overview of AutoLISP . . . . . . . . . . . . . . . . . . . . . . . . 93
Use AutoLISP Applications . . . . . . . . . . . . . . . . . . . . . 95
Automatically Load and Run AutoLISP Routines . . . . . . . . . . 96
Overview of AutoLISP Automatic Loading . . . . . . . . . . 96
The ACAD.LSP File . . . . . . . . . . . . . . . . . . . . . . 97
The ACADDOC.LSP File . . . . . . . . . . . . . . . . . . . . 99
Prevent AutoLISP Errors When Loading Startup Files . . . . 100
S::STARTUP Function: Postinitialization Execution . . . . . 101
ObjectARX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
Overview of ObjectARX . . . . . . . . . . . . . . . . . . . . . . 102
Use ObjectARX Applications . . . . . . . . . . . . . . . . . . . . 103
Chapter 8
Shapes and Shape Fonts . . . . . . . . . . . . . . . . . . . . . 105
Overview of Shape Files . . . . . . . . . . . . . . . . . . . . . . . . . 105
Create Shape Definition Files . . . . . . . . . . . . . . . . . . . . . . 107
Shape Descriptions . . . . . . . . . . . . . . . . . . . . . . . . . 107
Vector Length and Direction Code . . . . . . . . . . . . . . . . 108
Special Codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
Use Special Codes . . . . . . . . . . . . . . . . . . . . . . 110
Codes 0, 1, and 2: End of Shape and Draw Mode
Control
. . . . . . . . . . . . . . . . . . . . . . . . . . . 111
Codes 3 and 4: Size Control . . . . . . . . . . . . . . . . . 112
Contents | v