Autocad Lisp [cracked]: Total Area
Have a specific total area calculation challenge? Modify the LISP to fit your exact workflow, and you’ll wonder how you ever drafted without it.
(defun total-area () (setq total 0) (setq ss (ssget "_:L")) (setq count (sslength ss)) (repeat count (setq ent (ssname ss 0)) (setq area (vla-get-Area (vlax-ename->vla-object ent))) (setq total (+ total area)) (ssdel ent ss) ) (princ "Total Area: ") (princ total) (princ "\n") ) total area autocad lisp
(defun C:TA ( / ss ent obj area total cnt) Have a specific total area calculation challenge
Advanced routines create "Field Expressions" that automatically update the displayed total if the linked geometry is modified and the drawing is regenerated. Popular LISP Routines & Commands ESurvey Lisp Help: Collection of AutoLisp for Entity Area total area autocad lisp