*错误* (AutoLISP)
用户可定义的错误处理函数 支持的平台:Windows 和 Mac OS 签名(*error* string)
返回值类型:不适用 此函数不会返回,除非使用 .vl-exit-with-value 言论如果不是 ,则在存在 AutoLISP 错误条件时将其作为函数执行。*error*nil 函数可以包含对不带参数的函数的调用(例如,)。这将取消以前使用该函数调用的 AutoCAD 命令。*error*command(command)command 例子以下函数执行与 AutoLISP 标准错误处理程序相同的操作。它打印文本“error:”,后跟说明: (defun *error* (msg) (princ "error: ") (princ msg) (princ) ) 相关参考相关概念 |
|Archiver|CAD开发者社区
( 苏ICP备2022047690号-1 苏公网安备32011402011833)
GMT+8, 2025-3-14 08:06
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.