The following table shows the values of error codes generated by AutoLISP. The ERRNO system variable is set to one of these values when an AutoLISP function call causes an error that AutoCAD detects. AutoLISP applications can inspect the current value of ERRNO with (getvar "errno").
The ERRNO system variable is not always cleared to zero. Unless it is inspected immediately after an AutoLISP function has reported an error, the error that its value indicates may be misleading. This variable is always cleared when starting or opening a drawing.
Online program error codes |
|
---|---|
Value |
Meaning |
0 |
No error |
1 |
Invalid symbol table name |
2 |
Invalid entity or selection set name |
3 |
Exceeded maximum number of selection sets |
4 |
Invalid selection set |
5 |
Improper use of block definition |
6 |
Improper use of xref |
7 |
Object selection: pick failed |
8 |
End of entity file |
9 |
End of block definition file |
10 |
Failed to find last entity |
11 |
Illegal attempt to delete viewport object |
12 |
Operation not allowed during PLINE |
13 |
Invalid handle |
14 |
Handles not enabled |
15 |
Invalid arguments in coordinate transform request |
16 |
Invalid space in coordinate transform request |
17 |
Invalid use of deleted entity |
18 |
Invalid table name |
19 |
Invalid table function argument |
20 |
Attempt to set a read-only variable |
21 |
Zero value not allowed |
22 |
Value out of range |
23 |
Complex REGEN in progress |
24 |
Attempt to change entity type |
25 |
Bad layer name |
26 |
Bad linetype name |
27 |
Bad color name |
28 |
Bad text style name |
29 |
Bad shape name |
30 |
Bad field for entity type |
31 |
Attempt to modify deleted entity |
32 |
Attempt to modify seqend subentity |
33 |
Attempt to change handle |
34 |
Attempt to modify viewport visibility |
35 |
Entity on locked layer |
36 |
Bad entity type |
37 |
Bad polyline entity |
38 |
Incomplete complex entity in block |
39 |
Invalid block name field |
40 |
Duplicate block flag fields |
41 |
Duplicate block name fields |
42 |
Bad normal vector |
43 |
Missing block name |
44 |
Missing block flags |
45 |
Invalid anonymous block |
46 |
Invalid block definition |
47 |
Mandatory field missing |
48 |
Unrecognized extended data (XDATA) type |
49 |
Improper nesting of list in XDATA |
50 |
Improper location of APPID field |
51 |
Exceeded maximum XDATA size |
52 |
Entity selection: null response |
53 |
Duplicate APPID |
54 |
Attempt to make or modify viewport entity |
55 |
Attempt to make or modify an xref, xdef, or xdep |
56 |
ssget filter: unexpected end of list |
57 |
ssget filter: missing test operand |
58 |
ssget filter: invalid opcode (-4) string |
59 |
ssget filter: improper nesting or empty conditional clause |
60 |
ssget filter: mismatched begin and end of conditional clause |
61 |
ssget filter: wrong number of arguments in conditional clause (for NOT or XOR) |
62 |
ssget filter: exceeded maximum nesting limit |
63 |
ssget filter: invalid group code |
64 |
ssget filter: invalid string test |
65 |
ssget filter: invalid vector test |
66 |
ssget filter: invalid real test |
67 |
ssget filter: invalid integer test |
68 |
Digitizer is not a tablet |
69 |
Tablet is not calibrated |
70 |
Invalid tablet arguments |
71 |
ADS error: Unable to allocate new result buffer |
72 |
ADS error: Null pointer detected |
73 |
Cannot open executable file |
74 |
Application is already loaded |
75 |
Maximum number of applications already loaded |
76 |
Unable to execute application |
77 |
Incompatible version number |
78 |
Unable to unload nested application |
79 |
Application refused to unload |
80 |
Application is not currently loaded |
81 |
Not enough memory to load application |
82 |
ADS error: Invalid transformation matrix |
83 |
ADS error: Invalid symbol name |
84 |
ADS error: Invalid symbol value |
85 |
AutoLISP/ADS operation prohibited while a dialog box was displayed |