• Skip to main content
  • Skip to primary sidebar
  • Skip to footer
blog.draftsperson.net

blog.draftsperson.net

the art of technical drawing

blog.draftsperson.net

POINTBRIDGE LISP: Convert Point Data, Drawing to File

August 3, 2026

POINTBRIDGE reads coordinates from one place and writes them to another. Both ends can be any of five things: block insertion points, a text or CSV file, AutoCAD point objects, lightweight polyline vertices, or 3D polyline vertices.

What PointBridge does

So one command covers every combination of the five. Import a surveyor’s CSV as blocks on a chosen layer, at a chosen scale and rotation. Export every manhole block’s position for the setting-out engineer. Turn a scatter of point objects into a polyline through them. Pull the vertices of a boundary polyline out to a spreadsheet. Convert a 3D polyline to a lightweight one, or the reverse.

Attributes travel with the points. When both ends are a block or a file, attribute values are carried across. Export attributed blocks and each row gets the coordinates followed by that block’s attribute values; import the same file and the values are written back into the inserted blocks, in order. That is what turns a coordinate list into a real survey exchange — point number, description and level ride along with the position.

How to use it

  1. Load the routine with APPLOAD, or put it on your support file search path.
  2. Type POINTBRIDGE.
  3. Choose the input type and the output type. Whichever you pick at one end is removed from the list at the other.
  4. Use the Format button to say which file column holds which coordinate, and set the delimiter.
  5. Sort by X, Y or Z if the output needs to be ordered.
  6. Type POINTRESET to clear the remembered settings.

How it works

File columns are not assumed to be X, Y, Z. The Format button sets which column holds which coordinate, so a file arriving as Easting, Northing, Level — or as Y, X, Z — is read correctly without editing it first. The same setting controls the order columns are written in.

Delimiters: point, comma, semicolon, tab and space are offered, plus a free-text box for anything else. A .CSV file forces the comma and locks the control, so a file with a .csv extension is always genuinely comma-separated.

Sorting reorders attribute values with the points, so the pairing is never broken. Sorting by Y is how a scattered point file becomes an orderly chainage list.

The input and output types are always different — whichever is chosen at one end is removed from the list at the other, because converting something to itself is not a useful operation.

Notes and limits

  • Writing to an existing file replaces it. The file browser asks before overwriting.
  • Set the column format before importing an unfamiliar file. Easting/Northing order is the usual trap.
  • Attributes only travel between blocks and files, since points and polyline vertices have nothing to carry them.
  • Settings last the session. POINTRESET puts them back to defaults.

Download and details

NamePointBridge — move point data between the drawing and a file, in any direction
DownloadPointBridge.lsp — 71.9 KB, plain AutoLISP source. Downloads directly; no zip to unpack.
TypeAutoCAD AutoLISP routine
CommandsPOINTBRIDGE, POINTRESET
Requiresthe ActiveX layer (loaded automatically by the routine with vl-load-com); nothing extra — the dialog is written to a temporary file at run time and deleted again, so there is no .dcl to install.
Source size71.9 KB, 1,498 lines
Error handlingYes — a *error* handler restores every system variable it changed, on cancel as well as on error.
UndoNot needed — this routine only reads the drawing and changes nothing.
CompatibilityAutoCAD (any release with AutoLISP), BricsCAD, ZWCAD, GstarCAD, ProgeCAD and other IntelliCAD-based platforms. AutoCAD LT needs a LISP enabler. No .NET, no ObjectARX, no installer.
AuthorYZ, August 2026
LicenceFree to use, supplied “as is” with no warranty.

References

  • GRIDSURF LISP — importing a gridded CSV as a surface rather than points
  • VPGRID LISP — a survey coordinate grid over a viewport
  • More free AutoLISP routines on this site
  • Wisey’s Steel Shapes — free structural steel section drawing program

Filed Under: AutoLISP Routines

Primary Sidebar

Subscribe to our Youtube Channel

Post CAD drafting jobs on Freelancer.com. and get some free money to do this.

Categories

  • American Steel Industry (4)
  • AutoCAD Articles & Reference (30)
  • AutoCAD Bugs & Problems (19)
  • AutoCAD Tips (29)
  • AutoCAD Tutorials (54)
  • AutoLISP Routines (328)
  • AutoLISP Tutorials (15)
  • CAD Standards (7)
  • Civil 3D (7)
  • Civil Drafting (4)
  • Dimensions (2)
  • Drafting Funnies (71)
  • Drafting History (9)
  • Drafting Standards (84)
  • Electrical Drafting (2)
  • General IT reference (7)
  • Geometry (15)
  • GIS (2)
  • Hatch Patterns (12)
  • Office Life Hacks (3)
  • PT (1)
  • Revit Tutorials (54)
  • Steel Detailing (14)
  • Structural Drafting (26)
  • Technical Dictionary (61)
  • Useful Website Links (19)

Footer

Free downloads

  • Free AutoLISP routines
  • Free hatch patterns
  • SHX fonts & text styles
  • Numbering LISP collection
  • ISO 3098B font

Reference charts

  • AWS weld symbols chart
  • Steel detailing chart
  • Hole & slot sizes
  • Bolt edge distance
  • ANSI & ARCH paper sizes
  • How to fold an A1 drawing

Useful links

  • CAD blocks (DWG)
  • Revit families
  • structuraldrafter.com
  • cad-corner.com
  • About
  • Privacy policy

Provided for free with no warranty · Log in