Your Cart

DWG to XYZ AutoLisp source

On Sale
$100.00
$100.00
Added to cart
It is an AutoLisp function to convert a DWG file to an XYZ file of points in AutoCAD or programs based on IntelliCAD, such as BricsCAD, ProgeCAD, ActCAD, ZWCAD, etc. The program is useful for surveyors to recover survey points from DWG files.

LINE, POLYLINE, POINT and BLOCK entities will be converted into an XYZ file of points with articles of the format
no. x y z code
A TXT extension file will be created with the folder and the name of the DWG.
POLYLINE will be automatically exploded into LINEs, and LINES will be joined according to their layer. A list "lc" with articles of the form below will be defined in advance
'("road_axis"   "AX")
The first field is a description, and the 2nd is the name of a layer. Only LINEs that have a layer from this list will be converted. The layer is used to define the code of points generated from POLYLINEs. The generated point code consists of the layer name and a number. The vertices of POLYLINEs are converted into points.
POINT entities in DWG will be converted to points with the "L" code.
The program removes identical points, for example those POINT entities from POLYLINE vertices.
BLOCKS inserted in DWG will be converted into points with the name of the BLOCK as code.

You are licensed to use this "DWG to XYZ AutoLisp source", for drawing or to include it in your programs that you sell.
You will get the following files:
  • PDF (210KB)
  • PDF (107KB)
  • DWG (96KB)
  • DWG (149KB)
  • LSP (10KB)