I have a lisp file that calculates the area and perimeter of an object in m2 and m. It only works for closed polylines at the moment, can anyone help me to amend it to work for picked points as well as polylines as the Acad area command does. Cheers (defun c:aaaa () (setq obj (car (entsel))) (command "area" "o" obj) (setq A1 (/ (getvar "area") 1000000)) (setq P1 (/ (getvar "perimeter") 1000)) (terpri) (prompt "Area = ")(princ A1)(prompt "m2") (terpri) (prompt "Peri = ")(princ P1)(prompt "m") (princ) )