Mark Chainages Along Alignment
eplisp, the free multilingual LISP library
| Openly licensed; the original file is hosted here together with its license. | |
… Rate this tool: | |
| Commands | CHM |
|---|---|
| Category | Drawing and Editing |
| Author | BGol Community |
| Source | thevijayparmar/bgol-cad-lisps |
| License | MIT |
| Requirements | AutoCAD (full version, not LT), BricsCAD; no Express Tools needed. |
| Prompt language | English |
| Files | CHNMRK-bgol.lsp (6 KB) |
| Added | 2026-10-26 |
| Download the original fileSource repository | |
CHM walks along a selected alignment at a fixed interval, drawing a perpendicular tick at each station and a chainage label with a set prefix and suffix.
CHM is an AutoLISP routine for marking chainages on road, channel or pipeline alignments. On a centerline drawn as a polyline, line or arc it adds a cross-section tick and a station label at a regular interval. It suits infrastructure drafters who need to show cross-section locations on a plan quickly.
Overview
After the alignment is selected, the command asks for the start chainage (default 0), the increment (30), the tick length (20), a prefix (Ch.), a suffix (M) and the number of decimals (2). From the start of the alignment, at every increment, it draws a line perpendicular to the tangent and places a label such as 'Ch. 120.00 M' just beyond the end of the tick. Ticks go on layer BGOL-CHM-CS (blue) and labels on BGOL-CHM-LBL (yellow).
How to use it
- Load CHNMRK-bgol.lsp with APPLOAD.
- Type CHM at the command line.
- Select the polyline, line or arc to use as the alignment.
- Enter the start chainage, increment, tick length, prefix, suffix and precision, or press Enter to accept the defaults.
Notes and limitations
- Chainages are written as plain decimals (e.g. Ch. 120.00 M); the 0+120.00 station format is not supported.
- The end of the alignment is not marked unless it falls exactly on an increment.
- Labels are not rotated and stay horizontal; their height is fixed at 2.0 units and does not follow the drawing scale.
- Ticks and labels are drawn at Z=0, which matters for alignments with elevation.
- Do not enter zero or a negative increment; the routine does not check it and the loop may not end.
- License: the repository's LICENSE file is MIT; the file header also states the code is free to use, modify and share.
- The repository was published in 2026 and the amount of testing is not stated; try it on a copy of the drawing first.
Source and license
This tool is not made by eplisp. The file is published unchanged under its author's license; copyright stays with the author.
- CHNMRK-bgol.lsp (6 KB)
- License text
References
- Source repository: thevijayparmar/bgol-cad-lisps – https://github.com/thevijayparmar/bgol-cad-lisps/tree/3acbe32f71b489f4c81dcd9372f989591a9be858/Alignment%20Lisps/Mark%20Chainages
- Author: BGol Community – https://bgol.in/
- License: MIT – https://github.com/thevijayparmar/bgol-cad-lisps/blob/3acbe32f71b489f4c81dcd9372f989591a9be858/LICENSE
Found a mistake, or are you the author of this tool? Request a correction or removal