向 AutoLISP 函数返回值
ObjectARX 提供了一组函数,使外部函数能够将值返回给 AutoLISP。这些值返回函数没有 AutoLISP 对应项。下表总结了这些函数。
下面的示例演示应用程序收到请求时调用的函数的方案。它向 AutoLISP 返回一个实际值。kInvkSubrMsg int dofun() { ads_real x; // Check the arguments and input conditions here. // Calculate the value of x. acedRetReal(x); return GOOD; } 注意:外部函数可以在单个请求时对值返回函数进行多次调用,但 AutoLISP 函数仅返回上次调用的值返回函数传递的值。kInvkSubrMsg
父主题: |
|Archiver|CAD开发者社区
( 苏ICP备2022047690号-1 苏公网安备32011402011833)
GMT+8, 2025-3-14 06:58
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.