CAD开发者社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

AutoLISP 开发指南

错误代码参考(AutoLISP)

2023-1-6 10:55| 发布者: admin| 查看: 619| 评论: 0|来自: AutoCAD

下表显示了 AutoLISP 生成的错误代码的值。当 AutoLISP 函数调用导致 AutoCAD 检测到的错误时,系统变量将设置为这些值之一。AutoLISP 应用程序可以检查 的当前值。ERRNOERRNO(getvar "errno")

系统变量并不总是清除为零。除非在 AutoLISP 函数报告错误后立即对其进行检查,否则其值指示的错误可能会产生误导。启动或打开图形时,始终清除此变量。ERRNO

注意:的可能值及其含义可能会发生变化。ERRNO

在线程序错误代码

价值

意义

0

无错误

1

符号表名称无效

2

无效的实体或选择集名称

3

超出最大选择集数

4

无效的选择集

5

块定义的使用不当

6

外部参照使用不当

7

对象选择:拾取失败

8

实体文件结束

9

块定义文件结束

10

找不到最后一个实体

11

非法尝试删除视口对象

12

PLINE期间不允许操作

13

无效的句柄

14

句柄未启用

15

坐标转换请求中的参数无效

16

坐标转换请求中的空格无效

17

无效使用已删除的实体

18

表名无效

19

无效的表函数参数

20

尝试设置只读变量

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

已加载的最大应用程序数

76

无法执行应用程序

77

不兼容的版本号

78

无法卸载嵌套的应用程序

79

应用程序被拒绝卸载

80

应用程序当前未加载

81

内存不足,无法加载应用程序

82

ADS 错误:转换矩阵无效

83

ADS 错误:符号名称无效

84

ADS 错误:符号值无效

85

显示对话框时禁止 AutoLISP/ADS 操作


路过

雷人

握手

鲜花

鸡蛋

最新评论

QQ|Archiver|CAD开发者社区 ( 苏ICP备2022047690号-1 )

GMT+8, 2024-5-19 15:03

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

返回顶部