明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1556|回复: 0

如何将这段lisp译成arx??请大师帮忙!!!

[复制链接]
发表于 2009-6-28 22:05:00 | 显示全部楼层 |阅读模式
defun WipeOutFrames ( ZeroOrOne / valid data ss i )
(cond
( (and
(member ZeroOrOne (setq valid '(0 1)))
(setq data (DictSearch (NamedObjDict) "acad_wipeout_vars"))
(null (eq ZeroOrOne (cdr (assoc 70 data))))
)
(entmod
(subst
(cons 70 ZeroOrOne)
(assoc 70 data)
data
)
)
(if (setq i -1 ss (ssget "x" '((0 . "wipeout"))))
(repeat (sslength ss)
(entupd (ssname ss (setq i (1+ i))))
)
)
)
( (null (member ZeroOrOne valid))
(princ "\nInvalid parameter value. Syntax:")
(princ "\n (WipeOutFrames 0) to turn frames off.")
(princ "\n (WipeOutFrames 1) to turn frames on.")
)
)
(princ)
)
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-11-25 14:39 , Processed in 0.165319 second(s), 23 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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