(defun C:zz (/ CURVE TLEN SS N SUMLEN)
(vl-load-com)(setq SUMLEN 0)
(setq SS (ssget '((0 . "CIRCLE,ELLIPSE,LINE,*POLYLINE,SPLINE,ARC"))))
(setq N 0)
(repeat (sslength SS)
(setq CURVE (vlax-ename->vla-object (ssname SS N)))
(setq TLEN (vlax-curve-getdistatparam CURVE (vlax-curve-getendparam CURVE)))
(setq SUMLEN (+ SUMLEN TLEN))
(setq N (1+ N))
)
(princ (strcat "\n共选择 " (itoa (sslength SS)) " 条线段. 线段总长: " (rtos SUMLEN 2 3) ".")) (princ)
)
大佬们知道这个注册成功后怎么删除吗?两次成功已经没办法测试了。。。注册表搜索不到 正是要找的,学习一下,谢谢!
页:
1
[2]