Polyline Information

Function Syntax PolyInfo
Current Version 1.3
Download PolyInfoV1-3.lsp
View HTML Version PolyInfoV1-3.html
Donate

Program Description

This program provides the user with detailed information about every segment of a selected LWPolyline in the form of either an AutoCAD Table (if available), Text file, or CSV file.

Upon calling the program with the command syntax polyinfo at the AutoCAD command-line, the user is prompted to select an LWPolyline to be queried from the active drawing. At this prompt the user also has the option to choose the form of output for the information harvested by the program; this output format will be remembered between drawing sessions to enable streamlined repeated program usage.

The program will output LWPolyline segment data to either an AutoCAD Table Object created in the active drawing (if such object is available in the version of AutoCAD in which the program is being executed), or a tab-delimited Text file or CSV file automatically created (streamlining the program to minimise prompts) in the working directory of the active drawing.

For every segment of the selected LWPolyline, the program will extract the following information:

  • Segment Number
  • Segment Start Vertex Coordinate
  • Segment End Vertex Coordinate
  • Segment Start Width
  • Segment End Width
  • Segment Length
  • Arc Centre (if arc segment)
  • Arc Radius (if arc segment)

Example of Table Output

PolyInfo Table Example

Instructions for Running

Please refer to How to Run an AutoLISP Program.

textsize

increase · reset · decrease

Designed & Created by Lee Mac © 2010