[958620832]仁者 16:56:58
(defun c:br ()
(setq ent (car (entsel "
请选择被打断线段:"))
p (getpoint "
请选择断点:"))
(setq ent (redraw ent 3))
(command "_.break" ent p p)
(princ))
问题何在?
[vormittag]桔子 16:57:56
ent-> nil
redraw 的返回值总是nil
[958620832]仁者 17:00:04
怎么讲redraw加进去呢?
[958620832]仁者 17:01:13
怎么实现线段被打断之前是高亮度显示呢?
[958620832]仁者 17:03:44
(defun c:br ()
(setq ent (car (entsel "
请选择被打断线段:")))
(redraw ent 3)
(setq p (getpoint "
请选择断点:"))
(command "_.break" ent p p)
(princ))
这样就可以了 |