(defun c:tes ( / &kw1 a1 ent)
(vl-load-com)
(princ "\n请éæ©å°éå¤æ®µçº¿")
(if (setq &kw1 (ssget '((0 . "LWPOLYLINE") (70 . 1))))
(progn
(setq a1 0)
(while (setq ent (ssname &kw1 0))
(setq &kw1 (ssdel ent &kw1) a1 (+ a1 (vlax-curve-GetArea ent)))
);循ç¯ç»æ
(princ "\néæ©çå¤æ®µçº¿ç»è®¡é¢ç§¯ä¸ºï¼")
(princ (rtos (* 0.000001 a1 2 3)))
(princ "å¹³æ¹ç±³")
)
)
(princ)
);è¿ä¸ªæ¯autolispç¨åºï¼å¤å¶å°è®°äºæ¬ï¼ä»¥ã.lspã为åç¼å½åï¼CADå½ä»¤ãapploadãå è½½åï¼å½ä»¤ãTESãå³å¯ä½¿ç¨ã
温馨提示:内容为网友见解,仅供参考