SEGREPORT reports every segment of a polyline in full detail, as an AutoCAD table, a text file or a CSV. This is the tool for producing a setting-out schedule from a boundary — or for checking a polyline that measures wrong somewhere and you cannot see where.
What SegmentReport does
For each segment you get the segment number, start and end X and Y, start and end width, the length — the true arc length where the segment is curved — and for curved segments the arc centre X and Y and the radius.
Three output formats. Table places an AutoCAD table object in the drawing. TXT writes a tab-delimited file and opens it. CSV writes a comma-delimited file for a spreadsheet and opens that. Choose Output at the prompt to switch between them; the choice is remembered between sessions.
How to use it
- Load the routine with
APPLOAD, or put it on your support file search path. - Type
SEGREPORT. - Choose Output at the prompt if you want a different format.
- Pick the polyline.
- For Table, pick an insertion point. For TXT and CSV, the file opens automatically.
How it works
The arc columns only appear if they are needed. A polyline with no curved segments produces a report without the centre and radius columns at all, rather than three columns of blanks. On a straight-sided boundary that is the difference between a schedule somebody can read and one they have to edit first.
The Table option is only offered where the AutoCAD version supports table objects, which is why the output prompt is built at load time rather than written out fixed. On an older release the option simply is not there, instead of being there and failing.
Text and CSV files are written beside the drawing, named from the polyline’s own handle — so repeated runs on different polylines do not overwrite one another. Reporting six boundaries gives you six files, not one file six times.
Notes and limits
- Curved segments report true arc length, not the chord.
- Files are named from the polyline handle, so they are unique but not descriptive — rename them if they are going to somebody else.
- Table output needs a version that supports tables. The option is hidden where it is unavailable.
- Coordinates are in the current UCS. Check it before producing a setting-out schedule.
Download and details
| Name | SegmentReport — report every segment of a polyline in full detail |
| Download | SegmentReport.lsp — 21.8 KB, plain AutoLISP source. Downloads directly; no zip to unpack. |
| Type | AutoCAD AutoLISP routine |
| Command | SEGREPORT |
| Requires | the ActiveX layer (loaded automatically by the routine with vl-load-com). |
| Source size | 21.8 KB, 570 lines |
| Error handling | Yes — a *error* handler restores every system variable it changed, on cancel as well as on error. |
| Undo | The whole operation is wrapped in a single undo group, so one U reverses all of it. |
| Compatibility | AutoCAD (any release with AutoLISP), BricsCAD, ZWCAD, GstarCAD, ProgeCAD and other IntelliCAD-based platforms. AutoCAD LT needs a LISP enabler. No .NET, no ObjectARX, no installer. |
| Author | YZ, August 2026 |
| Licence | Free to use, supplied “as is” with no warranty. |
References
- RUNLENGTH LISP — distance along a chain rather than segment by segment
- POINTBRIDGE LISP — export polyline vertices as coordinate data
- PARTOFFSET LISP — why bulge and width have to divide proportionally
- More free AutoLISP routines on this site
- Wisey’s Steel Shapes — free structural steel section drawing program