Segment Curve
Function Syntax | segs |
Current Version | 1.1 |
Download | SegmentCurveV1-1.lsp |
View HTML Version | SegmentCurveV1-1.html |
Donate |
Program Description
This program enables the user convert every object in a selection into a polyline approximating the object using a given number of linear segments.
Upon calling the program with segs at the AutoCAD command-line, the user is prompted to make a selection of planar curve objects (Arcs, Circles, Ellipses, Lines, Splines, or 2D Polylines) and then to specify the number of segments for the resulting polyline.
The program will then proceed to create a 2D polyline with properties identical to each selected object, approximating the selected object using the specified number of linear segments.
If a selected object has a coordinate with non-zero Z-component, the resultant polyline will have an elevation equal to the Z-component of the first point on the curve.
Example of Usage
Instructions for Running
Please refer to How to Run an AutoLISP Program.