Homeโ€บ Blogโ€บ VIZ LISP: Interpolate Vertex Elevations Free Download
๐Ÿ“ LISP

VIZ LISP: Interpolate Vertex Elevations Free Download

๐Ÿงฎ 1  |  ๐ŸŸข 1
08 Jan 2026 Trishunya Team
VIZ LISP: Interpolate Vertex Elevations Free Download
๐Ÿ“ LISP · CAD UTILITIES

VIZ LISP: Interpolate Vertex Elevations (Free AutoLISP Download)

๐Ÿ“… 08 Jan 2026 ๐Ÿท๏ธ CAD BGBgol Global
VIZ AutoLISP routine, Interpolate Vertex Elevations, shown inside a CAD window

VIZ calculates and labels the elevation at every intermediate vertex of a polyline when only the start and end elevations are known. It computes each intermediate value by linear interpolation, proportional to distance travelled along the polyline, and drops readable elevation text at every vertex.

VXINTERP-bgol (Interpolate Vertex Elevations)

CATEGORY
3D Polyline Lisps
COMMAND NAME
VIZ
LISP FILE
VXINTERP-bgol.lsp
LICENSE
Open-source, free

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 linear-interpolation elevation 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

VIZ calculates and labels the elevation at every intermediate vertex of a polyline when only the start and end elevations are known. It computes each intermediate value by linear interpolation, proportional to distance travelled along the polyline, and drops readable elevation text at every vertex.

How to Use

  1. Load VXINTERP-bgol.lsp into your CAD session (drag-and-drop the file onto the drawing window, or use the APPLOAD command).
  2. Type VIZ at the command line and press Enter.
  3. Select the polyline you want to interpolate.
  4. Enter the known elevation at the start vertex when prompted.
  5. Enter the known elevation at the end vertex when prompted.
  6. Elevation text is created at every vertex (including both endpoints, for confirmation), interpolated proportionally to distance along the polyline, placed on a dedicated layer, BGOL-VIZ (colour red).

Why Use It

  • No manual arithmetic, removes the need to calculate every intermediate vertex's elevation by hand when only the two endpoints are known.
  • One-step labeling, produces a full set of elevation labels along the entire polyline in a single command run, ready for further use.
  • Accuracy, interpolation is calculated programmatically (true 2D distance-based proportion) rather than eyeballed, removing manual arithmetic error.

Where to Use It

  • Generating formation-level or design-gradeline elevations along a polyline when only the start and end levels are defined (e.g. a straight-grade road segment, channel invert, or pipeline profile).
  • Filling in intermediate elevation labels for a polyline representing a simplified linear feature (e.g. a proposed slope or ramp) between two known survey/design points.
  • Any drafting task needing quick, consistent linear interpolation of elevation data along a multi-vertex line.

Notes

  • Interpolation is distance-proportional along the polyline (not simply vertex-count-proportional), so unevenly spaced vertices are still interpolated correctly.
  • Works on LWPOLYLINE entities; edit BGOL:VIZ-Vertices in the .lsp if you need to support legacy 3D POLYLINE VERTEX sub-entities directly.
  • Text precision defaults to 3 decimal places via the *bgol-viz-precision* constant near the top of the .lsp file.
  • 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

What CAD platforms does VIZ work on?

VIZ is a standard AutoLISP routine, so it runs in AutoCAD, BricsCAD, ZWCAD, and most other AutoLISP-compatible CAD platforms without modification.

What should I know before using VIZ?

Interpolation is distance-proportional along the polyline (not simply vertex-count-proportional), so unevenly spaced vertices are still interpolated correctly.

What is the main benefit of using VIZ?

No manual arithmetic, removes the need to calculate every intermediate vertex's elevation by hand when only the two endpoints are known.

Is VIZ free to use for commercial projects?

Yes. VIZ is fully open-source and free to use, modify, and redistribute for both personal and commercial work, developed and shared by the BGol Community.

How do I load the VIZ command into my drawing?

Drag and drop VXINTERP-bgol.lsp onto your open drawing window, or load it through the APPLOAD command, then type VIZ 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.

Back to all articles