If you work with surveying data, total station outputs, or GIS data imports in AutoCAD, BricsCAD, or ZWCAD, you’ve likely run into this frustrating scenario:
You import a massive set of coordinates, but the text labels (elevations, point numbers, or descriptions) are sitting slightly askew from the actual physical CAD Point entities. Manually clicking and dragging hundreds or thousands of text blocks to snap them back to their exact point origins can completely ruin your afternoon.
Today, we are going to automate this entirely using a free, custom AutoLISP routine.
This script allows you to batch-select all your text and point entities, specify a maximum distance threshold (to prevent text from flying across the screen to random points), and automatically snap every text label to its closest point anchor in seconds.
The Solution:
TextToPointMax.lspThis AutoLISP script processes both standard
TEXT and MTEXT elements. It calculates the 2D distance between each text anchor and every point in your selection, identifies the absolute closest match within your safe threshold, and moves the text. Crucially, it preserves the text's original Z-elevation.

No comments:
Post a Comment