明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1874|回复: 2

如何在visual lisp的dwg命令反应器中加入(command ".....")

[复制链接]
发表于 2005-7-2 00:12 | 显示全部楼层 |阅读模式
(vl-load-com)
;**************************************************************
;setup and intilise the reactor
(vlr-dwg-reactor "timespurge" '((:vlr-beginclose . timespurge)))
;**************************************************************

(defun timespurge (rctr param)
;get the reactor Object

(vl-cmdf "autopurge");

(princ)
);defun
;********************************************************
(princ)
;********************************************************

以上代码似乎不能工作。每次cad文字窗口都不显示purge结果。请高手指点如何在reactor中
调用AutoCAD命令。(不是autolisp命令噢)
e.g. line, circle,
发表于 2005-7-3 23:38 | 显示全部楼层
告诉你,反映器是不可能包含CAD命令的!想其他的方法吧。
发表于 2005-7-9 21:13 | 显示全部楼层
可以的!!很简单,去CAD官方论坛看吧
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-5-18 16:01 , Processed in 0.236767 second(s), 25 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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