Another way using activex and including circles and ellipses
Peter Jamtgaard
Code:
(defun C:plArea (/ intCount entSelection lstEntity objSelection
ssSelections )
(princ "\nSelect Polylines: ")
(setq ssSelections (ssget (list (cons 0 "*polyline,circle,ellipse")))
sngTotal 0
)
(repeat (setq intCount (sslength ssSelections))
(setq intCount (1- intCount)
entSelection (ssname ssSelections intCOunt)
objSelection (vlax-ename->vla-object entSelection)
)
(setq sngTotal (+ sngTotal (vla-get-area objSelection)))
)
(princ "\n")
(princ sngTotal)
(princ " sq. inches")
(princ "\n")
(princ (/ sngTotal 144.0))
(princ " sq. feet")
(princ)
)