VNUM LISP: Export Polyline Vertex with Auto Numbering (Free AutoLISP Download)
VNUM numbers every vertex across one or more selected polylines or polygons sequentially, continuing the count across objects rather than restarting per object, marks each number directly on the drawing, and exports the same numbered data to a CSV file. Drawing numbers always match CSV rows, which is especially useful for setting-out (staking) work in the field.
VTXNUMOUT-bgol (Export Polyline Vertex with Auto Numbering)
Command Type: AutoLISP routine (works in AutoCAD, BricsCAD, ZWCAD and most AutoLISP-compatible CAD platforms)
Developed by: BGol Community, bgol.in
Inspired by the general concept of numbered-vertex export utilities used in CAD/survey drafting. This is an original, independently written routine, new file name, new command name, new source code, created so the CAD community has a free, editable, open-source alternative.
Overview
VNUM numbers every vertex across one or more selected polylines or polygons sequentially, continuing the count across objects rather than restarting per object, marks each number directly on the drawing, and exports the same numbered data to a CSV file. Drawing numbers always match CSV rows, which is especially useful for setting-out (staking) work in the field.
How to Use
- Load
VTXNUMOUT-bgol.lspinto your CAD session (drag-and-drop the file onto the drawing window, or use theAPPLOADcommand). - Type
VNUMat the command line and press Enter. - Select one or more polylines/polygons.
- Press Enter to finish the selection.
- Choose a location and file name for the
.csvoutput (defaults tovertexlist.csv). - Every vertex is numbered on-screen on a dedicated layer,
BGOL-VNUM(colour yellow), and the same numbered rows are written to the CSV.
Why Use It
- Field-ready traceability, on-drawing numbers match CSV rows exactly, so field crews can match drawing vertex numbers to the corresponding coordinate list.
- Continuous numbering, numbering continues sequentially across multiple selected objects, producing one unified point list even when working with several separate polygons at once.
- No manual cross-referencing, removes the slow, error-prone task of manually numbering and matching points before exporting.
Where to Use It
- Setting-out/staking work where field crews need a numbered coordinate list that corresponds exactly to numbered points on the design drawing.
- Any land survey or construction layout task requiring a traceable, numbered point export from multiple polygon/polyline objects at once.
- Preparing coordinate data for import into a Total Station or GPS data collector, where point numbers must be unambiguous and consistent with the design drawing.
Notes
- Works on LWPOLYLINE entities; select all polygons/polylines you want included in a single selection so numbering continues correctly across all of them.
- LWPOLYLINEs store a single Elevation property (not per-vertex Z), so the Elevation column reflects that per-object value.
- On-drawing number labels are placed on layer
BGOL-VNUM; edit the text height constant inC:VNUMif you need larger or smaller labels. - Source code is fully open, feel free to study, modify, and redistribute it under the same open, free-for-all spirit.
Credits
Developed and shared for the CAD community by BGol Community. Website: https://bgol.in/ Free and open-source, use it, modify it, share it, for personal or commercial work alike.
Frequently Asked Questions
VNUM is a standard AutoLISP routine, so it runs in AutoCAD, BricsCAD, ZWCAD, and most other AutoLISP-compatible CAD platforms without modification.
Works on LWPOLYLINE entities; select all polygons/polylines you want included in a single selection so numbering continues correctly across all of them.
Field-ready traceability, on-drawing numbers match CSV rows exactly, so field crews can match drawing vertex numbers to the corresponding coordinate list.
Yes. VNUM is fully open-source and free to use, modify, and redistribute for both personal and commercial work, developed and shared by the BGol Community.
Drag and drop VTXNUMOUT-bgol.lsp onto your open drawing window, or load it through the APPLOAD command, then type VNUM at the command line to run it.
๐ค About BGol Community
BGol Community of Advanced Surveying builds and shares free, open-source tools for the survey and CAD drafting community.
๐ Made with โค๏ธ by BGol Community of Advanced Surveying
Free, open-source, and built for the CAD community, for personal or commercial use, always.