Limited Length Polyline
|View HTML Version||TotalLengthPolylineV1-0.html|
This program allows the user to dynamically construct a straight-segmented polyline whose overall length may optionally be limited to a given value.
Upon issuing the command syntax tlpline at the AutoCAD command-line, the program will first prompt the user to specify an optional length limit. At this prompt, the user may press ENTER to dismiss the prompt and proceed without restricting the polyline length.
The user may then proceed to dynamically construct a polyline with linear segments, with the overall polyline length automatically restricted to the specified limit. After three vertices have been specified, the user may choose to close the polyline, with the length remaining within the given limit.
Whilst constructing the polyline, the overall polyline length is displayed in real-time beside the AutoCAD cursor as a visual aid. The program uses my GrText utility to facilitate this visual effect.
The program also utilises my GrSnap utility to enable Object Snap functionality in conjunction with the dynamic visual effect.
The program is also designed to perform successfully under all UCS and View settings.
Instructions for Running
Please refer to How to Run an AutoLISP Program.