- 积分
- 5037
- 明经币
- 个
- 注册时间
- 2005-1-4
- 在线时间
- 小时
- 威望
-
- 金钱
- 个
- 贡献
-
- 激情
-
|
楼主 |
发表于 2012-9-14 11:31:59
|
显示全部楼层
查看了楼上提供的搜索,将*error*加进去,运行是ok的
(defun c:cc ()
(command "undo" "be")
(defun *error*(msg)
(command "undo" "e")
(setq *error* nil)
(princ)
)
(command "pline")
(while (= (logand (getvar "CmdActive") 1) 1) (command pause))
(*error* "")
)
将 (= (logand (getvar "CmdActive") 1) 1) (command pause) 加到copy里面,运行问题依据,不知道怎么弄了,晕!
(defun c:c (/ s)
(command "undo" "be")
(defun *error*(msg)
(command "undo" "e")
(setq *error* nil)
(princ)
)
(setq s (ssget))
(if s
(command "copy" s "" "m" (= (logand (getvar "CmdActive") 1) 1) (command pause))
)
(*error* "")
)
|
|