Tips #1939 (C:LL) and #1940 (C:OL) are two great examples of how Visual LISP works well with AutoCAD objects. The first is a command function named (C:LL) that you use to measure the length of linear objects. Load the file HTH1939.LSP and type LL. Select linear objects such as lines, arcs, polylines, and so forth. By using the Length property of AutoCAD objects, this function quickly computes the sum of lengths.
|