Interpolate Levels Between Two Texts (ELVD)
eplisp, the free multilingual LISP library
| Openly licensed; the original file is hosted here together with its license. | |
… Rate this tool: | |
| Commands | ELVD |
|---|---|
| Category | Measuring and Totals |
| Author | BGol Community |
| Source | thevijayparmar/bgol-cad-lisps |
| License | MIT |
| Requirements | AutoCAD, AutoCAD LT 2024 and later, BricsCAD, ZWCAD. Uses plain AutoLISP only. |
| Prompt language | English |
| Files | ELEVDIST-bgol.lsp (4 KB) |
| Added | 2026-10-26 |
| Download the original fileSource repository | |
Places linearly interpolated level texts at a fixed spacing along the straight line between two existing level texts picked in the drawing.
ELVD fills in levels between two known spot heights. It is meant for road, drainage and grading drawings where intermediate levels are needed at a regular interval, for example every 10 m.
Overview
You pick a start and an end level text and enter the interval. The routine reads both values as numbers, measures the distance between the two text insertion points and creates a new TEXT at each interval along that line, with values interpolated in proportion to distance and rounded to two decimals. The new texts use the height of the first text and go on the layer BGOL-ELVD (created in magenta if missing).
How to use it
- Load ELEVDIST-bgol.lsp with APPLOAD.
- Type ELVD and press Enter.
- Pick the start level text.
- Pick the end level text.
- Enter the distance interval; the intermediate levels are placed along the line.
Notes and limitations
- The picked texts must hold a plain number such as 102.35; prefixes such as EL or added units make the value read as 0 or wrong.
- When the distance is not an exact multiple of the interval, the last interval point before the end text is skipped (105 m at 10 m spacing gives levels up to 90 m, not 100 m).
- Positions follow the straight line between the two text insertion points, not a road alignment or polyline.
- Output always has two decimals, left-justified at each point with no rotation.
- Creates the layer BGOL-ELVD if it is missing.
- The repository was published in 2026; test 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.
References
- Source repository: thevijayparmar/bgol-cad-lisps – https://github.com/thevijayparmar/bgol-cad-lisps/tree/3acbe32f71b489f4c81dcd9372f989591a9be858/Land%20Survey%20Lisps/Interpolate%20Elevation
- 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