请高手指点“关于在lisp中画多段线并取长度”的问题
(defun c:ll (/ CURVE TLEN SS N SUMLEN)(command "pline") ;要实现此功能代码应如何写???
(vl-load-com)
(setq ss (ENTLAST))
(setq CURVE (vlax-ename->vla-object ss))
(setq TLEN (vlax-curve-getdistatparam CURVE (vlax-curve-getendparam CURVE)))
(print (strcat "选" "总长度=" (rtos tlen 2 4)))
(princ)
)
本人初学菜鸟,上面的代码有问题,请高手指点怎样写才能达到我的目的!? (command "pline")
(while (= (logand (getvar "CmdActive") 1) 1) (command pause)); add this line :victory: ,非常感谢Camello,谢谢!!!
页:
[1]