明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1776|回复: 5

[求助]向Autolisp返回变量值的问题?

[复制链接]
发表于 2002-12-15 19:03 | 显示全部楼层 |阅读模式
在ARX中有如下的句子:  
int ff=10;
acedRetInt(ff);
执行以后,在AutoCAD命令行下输入  !ff   ,返回nil,没有值是怎么回事啊?
发表于 2002-12-16 08:52 | 显示全部楼层

(setq ff yourcommand)

 楼主| 发表于 2002-12-16 12:10 | 显示全部楼层

谢谢,下来试试!

 楼主| 发表于 2002-12-17 17:30 | 显示全部楼层

还是不行,也不知怎么办,再请教大侠!有个例子最好。

[此贴子已经被作者于2002-12-17 17:30:43编辑过]
 楼主| 发表于 2002-12-18 17:35 | 显示全部楼层

重新求助,麻烦斑竹解救!!!(上面的老问题)

发表于 2002-12-18 18:09 | 显示全部楼层

->

在ARX中
1. using "defun" to create a command.(eg,test1)
2.
int test1(double a1,char a2[])
{
.....
as you say!
}
3. In lisp (or AutoCAD)
(setq ff (test1 3.122 "abcdeff"))
! ff
===================================
This means, you send datas (A double 3.122 and a string "abcdeff") from lisp to arx and get a returned data which saved in ff
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 )  
©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途

GMT+8, 2024-5-3 09:10 , Processed in 1.760436 second(s), 23 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表