[求助]有没有测量曲线长度的小程序啊
有没有测量曲线长度的小程序啊reply
(defun c:test ( / en curve-obj name eparam len)<BR> (setq en (car (entsel "\n选择一条线:")))<BR> (if en<BR> (progn<BR> (setq curve-obj (vlax-ename->vla-object en))<BR> (setq name (vlax-get-property curve-obj 'ObjectName))<BR> (if (wcmatch (strcase name) "*LINE")<BR> (progn<BR> (setq eparam (vlax-curve-getEndParam curve-obj))<BR> (setq len (vlax-curve-getDistAtParam curve-obj eparam))<BR> )<BR> (princ "\n非曲线.")<BR> )<BR> )<BR> );if<BR>) 谢谢斑竹啊,呵呵 谢谢斑竹啊,呵呵
页:
[1]