SpaTools: Plot Points In Cad












Most of the total stations used in Surveying & Mapping industry, store the data in their native raw format. These raw format files may be binary or ASCII.
For example, Sokkia made total stations store the data in SDR33 file format natively.  SDR33 is an ASCII file having custom file headers and record types. Similarly, Leica total stations store the terrestrial observations in GSI file format as raw data. GSI is also a ASCII file format with custom record types and file headers. This will some other day’s story how the raw observations (Occupied Station, Back station, Bearings, Horizontal angles, vertical angles, slope distances, Height of Instrument, Target Height etc) are stored in such files.

Plot Points in CAD

Some well known raw observation file formats are listed below:

File Format
Made / Software
RW5
Carlson SurvCE
SDR
Sokkia
GSI
Leica
DN
Nikkon
DC
Trimble
txt
Topcon


All the raw observation files are processed and reduced to coordinates (Easting, Northing, Elevation) using proprietary software provided by Total Station manufacturer. 
TopconTool and TopconLink software are used to process the raw observation files produced by Topcon total stations. Leice Geomatic Office (LGO) processes the raw observation files collected by Leica made total stations.

All the proprietary software export reduced coordinate files into Comma delimited CSV files to further use in CAD and GIS software. The most common CSV file format contains five atomic units of the data in the following sequence:

Point Number, Easting, Northing, Elevation, Code
Point Number is a auto generated number starting from 1 with the increment of 1.
Easting, Northing and Elevation are the floating point numbers rounded off to 2 or 3 digits depending upon the export settings in total station or processing software.
Code is the alphanumeric code entered by the surveyor during observation.

A snapshot of a CSV file contents is shown below.




The CSV is plotted in the form of Points, Blocks or Circle objects in CAD using different software such as AutoCAD Civil 3D, Eagle Point, ArcGIS etc.  One of the style to plot points in  CAD is in the form of block with 3D point having three attributes(Point ID , Elevation and Code) as shown below:




In August 2016, I developed a cloud based online tool which plot the points in the form of point blocks with attributes.  In the continuation of SpaTools, I have developed a tool which plots a CSV file into AutoCAD in the form of the point blocks with Point ID, Elevation and Code attributes. The command can be executed by typing PPIC on command prompt as depicted below:


After loading CSV file, all the point records will be displayed on the dialogue box. If the CSV file has a first row as header, check the First Row is Header Of Columns checkbox. If the data rows are starting from the first row of file, then there is no need to check that checkbox. The list of the coordinates will display the column headers as Field1, Field2 and son on.



Select the column containing Easting or X from the list for X Field, Northing or Y for Y Field and Elevation or Z for Z Field.
If the points are desired to be plotted as Point objects (Not the Blocks with attributes) then keep uncheck the Plot Points as Blocks checkbox.

Click on OK button to get all points plotted in AutoCAD current drawing.

The updated SpaTools.DLL can be downloaded from the following link. 

Comments

  1. @⁨IMRAN ANEES⁩ Thanks so much for being resourceful. I have read articles on your blog way before now and I still read your articles as they are not just insightful but educative.
    The article "Are you a lecturer was one among others I truly appreciate.
    Thanks !!!
    Keep up the good work

    ReplyDelete

Post a Comment

Popular posts from this blog

SpaTools: Import Lidar Point Cloud (LAS/LAZ) files into AutoCAD

How to Clip objects in AutoCAD

Creating Contour Maps in ArcGIS and Conversion to AutoCAD drawing

SpaTools: Extract Topographic Profile From Contours In AutoCAD

Gunter Chain / Surveyor's Chain

SpaTools: Toolbar with all tools