View Full Version : Conversion XRecord
Erik Kraan
17-02-2006, 12:08 AM
It is possible to convert XData to shapefiles, but can we also get XRecord data from Autocad 2006 to shape?
GuthCAD Software Support
17-02-2006, 10:28 AM
Hello Erik,
The current CAD2Shape does not have any Xrecord support.
We may have a go at it in a future version. The main difficulty with Xrecord (and Xdata for that matter) is that the data is application defined, and so without knowing the format of the data in advance it can be hard to know what to do with it.
But certainly if you have a requirement (which you obviously do) we would prepared to look into it a bit further. If possible send sample file(s), and any details about the format if known.
best regards,
Paul Guthrie
Erik Kraan
22-02-2006, 06:55 PM
It seems as CAD2SHP only gets the first column of the Xdata (type 2, Autocad2006) below.
It will probably have the wrong definition but we cannot figure out what it is. The following data is added, in which User is fieldname, rvn is value, Drawing is fieldname, Drawing1.dwg is value, etc.:
* Registered Application Name: Add_CADGIS
* Code 1002, Starting or ending brace: {
* Code 1000, ASCII string: User
* Code 1000, ASCII string: rvn
* Code 1000, ASCII string: Drawing
* Code 1000, ASCII string: Drawing1.dwg
* Code 1000, ASCII string: Date
* Code 1000, ASCII string: 20-2-2006
* Code 1000, ASCII string: Level
* Code 1000, ASCII string: -1
* Code 1002, Starting or ending brace: }
Type 1-format works fine, but alle the data is converted to string fields -that is why we looking at type 2. Any ideas?
GuthCAD Software Support
23-02-2006, 06:58 PM
Hello Erik,
We will publish a CAD2Shape update hopefully at the start of next week, that will expand the Xdata type 2 format to recognise real numbers and integer codes. I.e. in conformance with the Xdata specification, code 1040 is a real number and code 1071 is an integer, and so if CAD2Shape encounters these codes if will treat them as such.
From looking at your sample data, probably the only field that should not be a string is the 'Level' data. In order for updated CAD2shape to treat the Level field as an integer your Xdata would need to be in the format:
* Registered Application Name: Add_CADGIS
* Code 1002, Starting or ending brace: {
* Code 1000, ASCII string: User
* Code 1000, ASCII string: rvn
* Code 1000, ASCII string: Drawing
* Code 1000, ASCII string: Drawing1.dwg
* Code 1000, ASCII string: Date
* Code 1000, ASCII string: 20-2-2006
* Code 1000, ASCII string: Level
* Code 1071, Integer: -1
* Code 1002, Starting or ending brace: }
I will post a message here when the update is ready.
thanks,
Paul G.
GuthCAD Software Support
27-02-2006, 05:31 PM
Hi Erik,
The software has now been updated to support translation of Xdata fields to integer and real number fields.
The updated software is CAD2Shape 2.0 A.50, here.
http://www.guthcad.com/download_cad2shape.htm
For XDATA_TYPE1, CAD2Shape will test to see if the data conforms to integer or real number, and if so output the data accordingly.
For XDATA_TYPE2, the field types can be specified explicitly using the appropriate Xdata DXF code. Recommended is:
1000 = string
1040 = real number
1071 = integer
However all codes in the ranges below are recognised:
AutoCAD Group Code data types:
1000 - 1009 String
1010 - 1059 Double-precision floating-point value
1060 - 1070 16-bit integer value
1071 32-bit integer value
For more detailed XData information consult the user manual topic:
Conversion Settings
- Points
- Attributes
best regards,
Software Support
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.