CAD开发者社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

AutoLISP 开发指南

vl-exit-with-error(AutoLISP)

2023-1-5 16:57| 发布者: admin| 查看: 462| 评论: 0|来自: AutoCAD

摘要: 将控制权从错误处理程序传递到调用命名空间的 *error* 函数

将控制权从错误处理程序传递到调用命名空间的 *error* 函数

支持的平台:视窗和 Mac OS

签名

(vl-exit-with-error msg)
.msg

类型:字符串

向用户显示的消息。

返回值

类型:没有

没有

言论

此函数由在其自己的命名空间中运行的应用程序使用。执行时,它会调用函数,堆栈展开,控制权返回到命令提示符。vl-exit-with-error*error*

例子

下面的代码说明了如何使用 ofto 将字符串传递给调用命名空间的函数:vl-exit-with-error*error*

(defun *error* (msg)
  ... ; processing in VLX namespace/execution context
(vl-exit-with-error (strcat "My application bombed! " msg)))

路过

雷人

握手

鲜花

鸡蛋

最新评论

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

GMT+8, 2024-5-19 13:53

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

返回顶部