• Skip to main content
  • Skip to primary sidebar
  • Skip to footer
blog.draftsperson.net

blog.draftsperson.net

the art of technical drawing

blog.draftsperson.net

SEGREPORT LISP: Report Every Segment of a Polyline

August 3, 2026

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

  1. Load the routine with APPLOAD, or put it on your support file search path.
  2. Type SEGREPORT.
  3. Choose Output at the prompt if you want a different format.
  4. Pick the polyline.
  5. 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

NameSegmentReport — report every segment of a polyline in full detail
DownloadSegmentReport.lsp — 21.8 KB, plain AutoLISP source. Downloads directly; no zip to unpack.
TypeAutoCAD AutoLISP routine
CommandSEGREPORT
Requiresthe ActiveX layer (loaded automatically by the routine with vl-load-com).
Source size21.8 KB, 570 lines
Error handlingYes — a *error* handler restores every system variable it changed, on cancel as well as on error.
UndoThe whole operation is wrapped in a single undo group, so one U reverses all of it.
CompatibilityAutoCAD (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.
AuthorYZ, August 2026
LicenceFree 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

Filed Under: AutoLISP Routines

Primary Sidebar

Subscribe to our Youtube Channel

Post CAD drafting jobs on Freelancer.com. and get some free money to do this.

Categories

  • American Steel Industry (4)
  • AutoCAD Articles & Reference (30)
  • AutoCAD Bugs & Problems (19)
  • AutoCAD Tips (29)
  • AutoCAD Tutorials (54)
  • AutoLISP Routines (328)
  • AutoLISP Tutorials (15)
  • CAD Standards (7)
  • Civil 3D (7)
  • Civil Drafting (4)
  • Dimensions (2)
  • Drafting Funnies (71)
  • Drafting History (9)
  • Drafting Standards (84)
  • Electrical Drafting (2)
  • General IT reference (7)
  • Geometry (15)
  • GIS (2)
  • Hatch Patterns (12)
  • Office Life Hacks (3)
  • PT (1)
  • Revit Tutorials (54)
  • Steel Detailing (14)
  • Structural Drafting (26)
  • Technical Dictionary (61)
  • Useful Website Links (19)

Footer

Free downloads

  • Free AutoLISP routines
  • Free hatch patterns
  • SHX fonts & text styles
  • Numbering LISP collection
  • ISO 3098B font

Reference charts

  • AWS weld symbols chart
  • Steel detailing chart
  • Hole & slot sizes
  • Bolt edge distance
  • ANSI & ARCH paper sizes
  • How to fold an A1 drawing

Useful links

  • CAD blocks (DWG)
  • Revit families
  • structuraldrafter.com
  • cad-corner.com
  • About
  • Privacy policy

Provided for free with no warranty · Log in