ELVD LISP: Interpolate Elevation at Distance Interval (Free AutoLISP Download)
ELVD takes two known elevation text labels and automatically fills in as many intermediate elevation labels as fit between them, spaced at a fixed real-world distance interval you choose (e.g. every 3 m or 5 m), instead of a fixed point count. The number of interpolated points adapts to the actual distance between the two references.
ELEVDIST-bgol (Interpolate Elevation at Distance Interval)
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 distance-driven elevation interpolation used in survey and profile 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
ELVD takes two known elevation text labels and automatically fills in as many intermediate elevation labels as fit between them, spaced at a fixed real-world distance interval you choose (e.g. every 3 m or 5 m), instead of a fixed point count. The number of interpolated points adapts to the actual distance between the two references.
How to Use
- Load
ELEVDIST-bgol.lspinto your CAD session (drag-and-drop the file onto the drawing window, or use theAPPLOADcommand). - Type
ELVDat the command line and press Enter. - Select the first (start) elevation TEXT entity.
- Select the second (end) elevation TEXT entity.
- Enter the desired distance interval.
- Intermediate elevation labels are linearly interpolated and placed along the straight line between the two references, spaced at that interval, on layer
BGOL-ELVD.
Why Use It
- Distance-based thinking, lets you think in real spacing terms ("a value every 5 meters") rather than "give me N points," which matches how cross-section/profile intervals are usually specified.
- Adapts automatically, the number of generated labels adjusts to fit the actual distance between the two reference points.
- No manual math, removes manual linear-interpolation arithmetic and label placement, reducing transcription errors on long runs of elevation data.
Where to Use It
- Filling in intermediate spot elevations along a straight survey or formation line at a standard distance interval (e.g. every 5 m or 10 m, a common cross-section/profile interval in road, rail, and irrigation projects).
- Any drafting task needing evenly-spaced, linearly interpolated elevation labels between two known values without manually placing or calculating each one.
Notes
- Interpolated points are placed along the straight line connecting the two reference text insertion points; for a curved alignment, interpolate between closer point pairs for better accuracy.
- Text height for the new labels matches the first reference text's height (falls back to 2.5 if unavailable).
- If the entered interval is larger than the distance between the two references, no intermediate points are generated and a message is shown.
- 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
ELVD is a standard AutoLISP routine, so it runs in AutoCAD, BricsCAD, ZWCAD, and most other AutoLISP-compatible CAD platforms without modification.
Interpolated points are placed along the straight line connecting the two reference text insertion points; for a curved alignment, interpolate between closer point pairs for better accuracy.
Distance-based thinking, lets you think in real spacing terms ("a value every 5 meters") rather than "give me N points," which matches how cross-section/profile intervals are usually specified.
Yes. ELVD 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 ELEVDIST-bgol.lsp onto your open drawing window, or load it through the APPLOAD command, then type ELVD 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.