Polyline Taper

Function Syntax ptaper
Current Version 1.0
Download PolylineTaperV1-0.lsp
View HTML Version PolylineTaperV1-0.html
Donate

Program Description

This program allows the user to apply a tapered width across all vertices of a selected polyline.

Upon issuing the command syntax ptaper at the AutoCAD command-line, the user may specify a starting width and an ending width for the taper. At these prompts, the last entered value in the current drawing session will be offered as a default option which may be selected by pressing ENTER at the prompt.

The program will then continuously prompt the user to select a 2D polyline (LWPolyline) to which to apply the taper. Following a valid selection, the program will modify the selected polyline such that the polyline segment width at the first vertex is equal to the specified starting width, and the segment width at the final vertex is equal to the specified ending width, with the segment width increasing uniformly along all vertices of the polyline.

The user may exit the program by pressing ENTER or right-clicking at the selection prompt.

The taper direction may be reversed by either reversing the relevant polyline prior to using this program (using the Reverse option of the PEDIT command, for example), or by specifying the taper widths in reverse order.

The program is compatible with 2D polylines containing linear segments and/or arc segments, constructed in any UCS.

Demonstration

Polyline Taper Demo

Instructions for Running

Please refer to How to Run an AutoLISP Program.

textsize

increase · reset · decrease

Designed & Created by Lee Mac © 2010