--@----- 23:46:58
[PHP](defun c:ff( / an dis p p1 p2 s sa ss)
(setq ss (ssget) p ""
p1 (getpoint "
起点:")
p2 (getpoint "
第二点:" p1)
an (angle p1 p2) dis (distance p1 p2)
)
(setq s (entlast) sa (ssadd))
(command "copy" ss "" p1 p2)
(setq s (entnext s))
(while s (ssadd s sa)(setq s (entnext s)))
(while (= p "" )
(setq p (getstring "
空格键继续:")
p1 p2 p2 (polar p1 an dis)
ss sa
)
(setq s (entlast) sa (ssadd))
(if p
(command "copy" ss "" p1 p2)
)
(setq s (entnext s))
(while s (ssadd s sa)(setq s (entnext s)))
)
(princ)
)
--@----- 23:47:45
这个连续复制的代码 哪位高手能增加个记忆上次复制的距离不?
[aa1315684809]雾萦晨阳 23:53:59
(defun c:test()
(setq a (getint "请输入一个数字”))
(setq b (* a a))
(print b)
)
[aa1315684809]雾萦晨阳 23:54:37
请问为什么我的这个会[qqimg]201307/{376BEE79-56F6-359D-239C-EE98B371B107}.jpg[/qqimg]
求解答 |