Homeโ€บ Blogโ€บ PXYZ LISP: Export Point Data to CSV Free Download
๐Ÿ“ LISP

PXYZ LISP: Export Point Data to CSV Free Download

๐Ÿงฎ 1  |  ๐ŸŸข 1
24 May 2026 Trishunya Team
PXYZ LISP: Export Point Data to CSV Free Download
๐Ÿ“ LISP · CAD UTILITIES

PXYZ LISP: Export Point Data to CSV (Free AutoLISP Download)

๐Ÿ“… 24 May 2026 ๐Ÿท๏ธ CAD BGBgol Global
PXYZ AutoLISP routine, Export Point Data to CSV, shown inside a CAD window

PXYZ extracts point coordinate data (X/Easting, Y/Northing, Z/Elevation) plus each point's text caption from selected TEXT entities and writes it out as rows in a Comma Separated Values (CSV) file, the reverse direction of a typical Total Station import, useful for reporting, further processing, or reimport into other software.

PTXPORT-bgol (Export Point Data to CSV)

CATEGORY
Text Lisps
COMMAND NAME
PXYZ
LISP FILE
PTXPORT-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 point-data CSV export utilities used in survey/CAD 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

PXYZ extracts point coordinate data (X/Easting, Y/Northing, Z/Elevation) plus each point's text caption from selected TEXT entities and writes it out as rows in a Comma Separated Values (CSV) file, the reverse direction of a typical Total Station import, useful for reporting, further processing, or reimport into other software.

How to Use

  1. Load PTXPORT-bgol.lsp into your CAD session (drag-and-drop the file onto the drawing window, or use the APPLOAD command).
  2. Type PXYZ at the command line and press Enter.
  3. Select the TEXT entities representing point data, then press Enter to confirm.
  4. Choose a destination .csv file in the save dialog that appears.
  5. Each selected text's X, Y, Z insertion-point coordinates and its caption are written as one CSV row (Easting,Northing,Elevation, Value). A small marker point is placed at each exported text's location on layer BGOL-PXYZ (colour blue) so the exported set can be reviewed visually in the drawing.

Why Use It

  • Bridges CAD and Spreadsheet Workflows, converts drawing-embedded coordinate data into a portable, spreadsheet-ready CSV format.
  • Preserves Full Point Data, captures X, Y, Z, and the associated text caption together in one export.
  • Time Savings, automates what would otherwise require manually reading each text's Properties panel position and typing it into a spreadsheet.

Where to Use It

  • Extracting point coordinate data from a CAD drawing back into a CSV/Excel format for reporting, further analysis, or import into other survey or GIS software.
  • Any workflow needing a structured coordinate list (Easting, Northing, Elevation, and label) derived from text-based point markers already present in a drawing.
  • Cross-checking or archiving point data that originated from Total Station imports.

Notes

  • Coordinates are written with 4 decimal places using rtos mode 2 (decimal).
  • If the destination file cannot be opened for writing (e.g. permissions, invalid path), the command reports the failure and no data is lost from the drawing.
  • 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 PXYZ work on?

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

Coordinates are written with 4 decimal places using rtos mode 2 (decimal).

What is the main benefit of using PXYZ?

Bridges CAD and Spreadsheet Workflows, converts drawing-embedded coordinate data into a portable, spreadsheet-ready CSV format.

Is PXYZ free to use for commercial projects?

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

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