Homeโ€บ Blogโ€บ TXZ LISP: Sync Text Caption to Z Elevation Free Download
๐Ÿ“ LISP

TXZ LISP: Sync Text Caption to Z Elevation Free Download

๐Ÿงฎ 2  |  ๐ŸŸข 2
07 Jan 2026 Trishunya Team
TXZ LISP: Sync Text Caption to Z Elevation Free Download
๐Ÿ“ LISP · CAD UTILITIES

TXZ LISP: Sync Text Caption to Z Elevation (Free AutoLISP Download)

๐Ÿ“… 07 Jan 2026 ๐Ÿท๏ธ CAD BGBgol Global
TXZ AutoLISP routine, Sync Text Caption to Z Elevation, shown inside a CAD window

TXZ fixes a common survey-drawing problem: elevation labels drawn as plain TEXT often sit at Z = 0 even though their caption displays a real elevation value (e.g. "484.947"). Many downstream tools read an entity's true elevation from its Z coordinate, not from what the text says, so a "zero elevation" text is invisible or wrong to those tools. TXZ reads the numeric value written in each text's caption and writes that same number into the text entity's actual Z coordinate.

TEXTELEV-bgol (Sync Text Caption to Z Elevation)

CATEGORY
3D Polyline Lisps
COMMAND NAME
TXZ
LISP FILE
TEXTELEV-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 "sync text-to-Z" 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

TXZ fixes a common survey-drawing problem: elevation labels drawn as plain TEXT often sit at Z = 0 even though their caption displays a real elevation value (e.g. "484.947"). Many downstream tools read an entity's true elevation from its Z coordinate, not from what the text says, so a "zero elevation" text is invisible or wrong to those tools. TXZ reads the numeric value written in each text's caption and writes that same number into the text entity's actual Z coordinate.

How to Use

  1. Load TEXTELEV-bgol.lsp into your CAD session (drag-and-drop the file onto the drawing window, or use the APPLOAD command).
  2. Type TXZ at the command line and press Enter.
  3. Select one or more elevation-label TEXT entities (captions that are numeric elevation values, e.g. "484.947").
  4. For each selected text, its caption is parsed as a number and written into the entity's Z coordinate; X and Y positions are left unchanged.
  5. The command reports how many texts were updated and how many were skipped because their caption wasn't numeric.
  6. Works across many selected texts in a single command run.

Why Use It

  • Synchronizes label and geometry, what a person reads matches what software reads from the entity's true 3D elevation.
  • Saves manual work, no more opening Properties for every elevation text and typing in the Z value by hand.
  • Enables downstream 3D workflows, surface (TIN/DTM) generation, volume calculations, and any process relying on true entity elevation now gets correct data.
  • Batch operation, fixes many texts at once instead of one at a time.

Where to Use It

  • Cleaning up legacy or field-imported survey drawings where elevation spot labels were drawn as flat (Z = 0) text.
  • Preparing point/elevation data for surface (TIN/DTM) generation, where the software needs real Z values on the point/text entities.
  • Any QA step before exporting drawing data to GIS or terrain-modeling software that trusts geometry Z over text content.

Notes

  • Non-numeric TEXT captions (labels, titles, etc.) are automatically skipped and reported, so it's safe to run on a mixed selection.
  • X and Y coordinates of each text are never changed, only Z is updated to match the caption.
  • 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 TXZ work on?

TXZ 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 TXZ?

Non-numeric TEXT captions (labels, titles, etc.) are automatically skipped and reported, so it's safe to run on a mixed selection.

What is the main benefit of using TXZ?

Synchronizes label and geometry, what a person reads matches what software reads from the entity's true 3D elevation.

Is TXZ free to use for commercial projects?

Yes. TXZ 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 TXZ command into my drawing?

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