Total Area Autocad Lisp May 2026
This Visual LISP function works on any curve and returns a real number.
Use a LISP that outputs in acres to 4 decimal places, and include a check for polylines with bulge segments (curves). The basic vlax-curve-getArea handles arcs correctly. total area autocad lisp
| Error Message | Likely Cause | Solution |
| :--- | :--- | :--- |
| ; error: bad argument type | You selected a non-curve entity (line, arc, text, block). | Modify your ssget filter to exclude those. |
| ; error: no function definition: VLAX-CURVE-GETAREA | Visual LISP extensions not loaded. | Add (vl-load-com) at the top of your LISP file. |
| Total = 0.00 | Polylines are not closed or are self-intersecting. | Use PEDIT → Close. For complex intersections, use REGION first. |
| Area is huge (e.g., 1e9) | Drawing units are millimeters, but you expected meters. | Divide total by 1,000,000 in your LISP. | This Visual LISP function works on any curve