PDA

View Full Version : Stantoo


Stantoo
11-02-2007, 07:03 AM
I'm new at Autodesk & GIS. I have downloaded the manuals for both Arcv2Cad and Cad2Shape trying to learn more. I want to change several Polylines to XYZ format. In Autodesk I was able to do this by putting each polyline on a seperate layer to control where one line ended and the next started. Is there a setting to control this without having a seperate layer for each polyline in CAD2Shape? I'm attaching a short attachment for anyone to view. I think using the command line is a bit over my head at this point in time if it's too complicated. I thank anyone who can give me some suggestions.

Stan

GuthCAD Software Support
11-02-2007, 03:40 PM
Stan,

An XYZ file is just a listing of points, i.e. a listing of their X,Y,Z coordinate values. E.g.

5111.447,1144.662,8.5
5110.505,1140.727,8.5
5109.347,1136.844,8.5
5107.537,1132.456,8.5
5107.537,1132.456,8.5
5048.702,1447.082,12.0
5041.615,1454.582,12.0
5037.275,1458.124,12.0
5032.825,1461.029,12.0In its raw format there is nothing to say that the points are meant to be vertices of one or more polylines.

CAD2Shape allows the export of an 'ID' value along with the exported points (check the 'ID' field in the CAD2Shape 'Attributes' dialog). A unique ID value is output for each originating entity in the drawing. The resultant output will have the 'ID' value appended to each coordinate. E.g.
5111.447,1144.662,8.5,1
5110.505,1140.727,8.5,1
5109.347,1136.844,8.5,1
5107.537,1132.456,8.5,1
5107.537,1132.456,8.5,1
5048.702,1447.082,12.0,2
5041.615,1454.582,12.0,2
5037.275,1458.124,12.0,2
5032.825,1461.029,12.0,2The data now contains the information to say that the first 5 coordinates (ID=1) originated from a single entity, e.g. polyline 1, and that the next 4 coordinates originated from another entity, e.g. polyline 2.
In the CAD2Shape 'XYZ Settings' dialog check the option 'First line has field names' to provide a header line with the field names. This will usually make it easier for an application to interpret the data. E.g:
_X,_Y,_Z,ID
5111.447,1144.662,8.5,1
5110.505,1140.727,8.5,1
5109.347,1136.844,8.5,1
5107.537,1132.456,8.5,1
5107.537,1132.456,8.5,1
5048.702,1447.082,12.0,2
5041.615,1454.582,12.0,2
5037.275,1458.124,12.0,2
5032.825,1461.029,12.0,2

I hope that it helps.

best regards,
software support