Label Z values in AutoCAD


Nearly all data providers included in Spatial Manager™ for AutoCAD feature a large number of resources to optimize the import processes from the different data sources supported by the application

Along this blog post we will discuss some chances to “play” with certain parameters to get different outcomes in the imported objects using the XYZ ASCII provider

XYZ files

The XYZ files are one of the most common types of files to store points coordinates. They are plain-text ASCII files, without binary numbers or any other data type that has to be interpreted, can be easily read or written by any application and a user can look at their content using common utilities, such as Window Notepad

Every line in the file corresponds to a point data and every number between two delimiter characters in a line corresponds to a coordinate (X, Y or Z) of a point feature. There are various characters that may be used as the delimiter character. The most common used delimiter characters are the comma, the tab, the space character or the semicolon

AutoCAD XYZ file - Open XYZ file in Notepad

XYZ to CAD

CAD applications users often need to import these kind of point data files into their drawings, and the content of the files is usually very diverse: GPS generic data, surveying data, hydrants, signals, address points, etc.

AutoCAD, being one of the popular applications in the CAD market, cannot directly translate the contents of XYZ files to AutoCAD, not even as Point type objects. To perform a task such as Import XYZ files to AutoCAD, you will need an additional AutoCAD utility or plug-in

Import XYZ files and label Z values in AutoCAD

Spatial Manager™ for AutoCAD includes, in addition to many other access tools, a powerful “AutoCAD XYZ” data provider to import XYZ files into AutoCAD

As when importing point type features using any other data provider included in the application, you can choose between Point objects or Block references and many other interesting drawing options through the import process

You can also perform a coordinate transformation “on the fly” when importing. The coordinate transformation is an important issue to consider in Spatial Manager™ for AutoCAD when importing from XYZ files because a lot of coordinate data comes from GPS devices or similar. Thus the coordinate data is formatted using Latitude and Longitude values and the users usually need to import the data to projected coordinates into the DWG drawing

This example shows how to Import a XYZ file into AutoCAD. We will import a set of surveying points into an AutoCAD drawing

First, we will choose AutoCAD Block references to import the Points as 3D objects by selecting a “XYZ” file format

Next, we will apply a nice trick by adding an Attribute to the Block definition and by catching the Z coordinate inside the Attribute to get 2D Points with the Z coordinate labeled right next to the point, when selecting “XY Description” as the file format

Please, watch the video:

 

Download

 

Summary
Review Date
Reviewed Item
Post
Author Rating
51star1star1star1star1star