SUMAREA creates a live field totalling the length or area of selected objects, with the option to subtract a second selection. What SumField does The subtraction is what makes this more than a running total. Select the outline of a room, then select the columns and voids inside it, and the field reports the net floor area. Edit any of the boundaries and the figure … [Read more...] about SUMAREA LISP: Live Net Area Field With Subtraction
AutoLISP Routines
STRINGTALLY LISP: Count Text Occurrences Into a Table
STRINGTALLY counts how many times each distinct piece of text appears in a selection, and builds the result as a real AutoCAD table object in the drawing. What StringTally does Select everything annotated and you get a schedule: each unique string, and how many of them there are. Useful for counting door types, drainage symbols and fitting references — … [Read more...] about STRINGTALLY LISP: Count Text Occurrences Into a Table
STRETCHBOTH LISP: Extend Both Ends of Lines and Arcs
The LENGTHEN command extends one end at a time, and you have to pick the end you mean. STRETCHBOTH does both ends of every object in a selection at once — useful for extending a run of grid lines, section marks or setting-out lines past the geometry they refer to. What StretchBoth does Give a distance, select the objects, and every one grows by that amount … [Read more...] about STRETCHBOTH LISP: Extend Both Ends of Lines and Arcs
STRAYHUNT LISP: Find Objects at Absurd Coordinates
A drawing whose geometry sits millions of units from the origin behaves badly: snaps become unreliable, hatches fail, dimensions drift, and display artefacts appear at high zoom. STRAYHUNT finds the object causing it. What StrayHunt does Why it happens. Coordinate arithmetic is done in double precision, and the further from the origin you work, the fewer bits … [Read more...] about STRAYHUNT LISP: Find Objects at Absurd Coordinates
STOPWATCH LISP: Time Every AutoCAD Command as It Runs
STOPWATCH reports how long every AutoCAD command takes to run. Toggle it on and each command prints its elapsed time when it finishes. What StopWatch does This is the practical way to find out what is actually making a drawing feel slow, rather than guessing. Run the suspect commands with the timer on and read the numbers. How to use it Load the … [Read more...] about STOPWATCH LISP: Time Every AutoCAD Command as It Runs
STATETALLY LISP: Count Dynamic Blocks by Visibility State
STATETALLY counts blocks — and, crucially, breaks dynamic blocks down by visibility state rather than lumping them together under one name. What StateTally does That is what makes it different from an ordinary block count. A single dynamic block definition called DOOR might appear in the drawing as single doors, double doors and fire doors, all sharing one … [Read more...] about STATETALLY LISP: Count Dynamic Blocks by Visibility State