GeoTools e-Newsletter # 330:

  
 


August 27, 2012
Bangalore, India

*** GeoTools/CADPower V 13.06 update:

** New command added: GT_XD2OD (GeoTools -> AutoCAD Map Tools -> Convert Xdata to Object Data [generic tool]): The GT_XD2OD command is yet another generic data conversion tool. Using this, you can convert extended entity data to AutoCAD Map object data.

Here is an example of XDATA record structure comprising of 33 records from a GPS data logging device.

(-3 ("GPS_BLOCK"
(1000 . "Tunis to Tarheel")
(1000 . "11/13/01")
(1000 . "03:42:46pm")
(1040 . 48.0)
(1070 . 0)
(1000 . "bxr101")
(1040 . 12.0)
(1000 . "Synergy")
(1040 . 0.312)
(1000 . "X42")
(1000 . "Steel")
(1000 . "")
(1040 . 2.9)
(1000 . "Differential")
(1000 . "Pro XR")
(1000 . "11/13/01")
(1000 . "04:42:46pm")
(1000 . "New")
(1000 . "Weld")
(1000 . "R1112SE1.cor")
(1000 . "7")
(1000 . "7")
(1000 . "ENCNG Transmission")
(1070 . 1140)
(1040 . 247379.0)
(1000 . " ")
(1040 . 0.0)
(1040 . 0.452)
(1040 . 9.1e-005)
(1040 . 955479.0)
(1040 . 2.60323e+006)
(1070 . 74)
)
)

Notice that all XDATA is stored in codes. Some of the common codes used like 1000 & 1001 are string codes, 1040 is a floating point value and 1070 is an integer.

We need to transfer this info into object data. So, we create a object table to hold this information and its structure looks like this (see below).

(
("SUB_PROJECT_NUMBER" "SUB_PROJECT_NUMBER" "Character" "")
("DATE_INSTALLED" "DATE_INSTALLED" "Character" "")
("TIME_COLLECTED" "TIME_COLLECTED" "Character" "")
("DEPTH" "DEPTH" "Real" 0.0)
("WELD_NUMBER" "WELD_NUMBER" "Integer" 0)
("X-RAY_REFERENCE_NUMB" "X-RAY_REFERENCE_NUMB" "Character" "")
("NOMINAL_DIAMETER" "NOMINAL_DIAMETER" "Real" 0.0)
("COATING" "COATING" "Character" "")
("WALL_THICKNESS" "WALL_THICKNESS" "Real" 0.0)
("GRADE" "GRADE" "Character" "")
("MATERIAL" "MATERIAL" "Character" "")
("COMMENTS" "COMMENTS" "Character" "")
("MAX_PDOP" "MAX_PDOP" "Real" 0.0)
("CORR_TYPE" "CORR_TYPE" "Character" "")
("RCVR_TYPE" "RCVR_TYPE" "Character" "")
("GPS_DATE" "GPS_DATE" "Character" "")
("GPS_TIME" "GPS_TIME" "Character" "")
("UPDATE_STATUS" "UPDATE_STATUS" "Character" "")
("FEAT_NAME" "FEAT_NAME" "Character" "")
("DATAFILE" "DATAFILE" "Character" "")
("UNFILT_POS" "UNFILT_POS" "Character" "")
("FILT_POS" "FILT_POS" "Character" "")
("DATA_DICTIONARY_NAME" "DATA_DICTIONARY_NAME" "Character" "")
("GPS_WEEK" "GPS_WEEK" " "Integer" 0)
("GPS_SECOND" "GPS_SECOND" "Real" 0.0)
("GPS_HEIGHT" "GPS_HEIGHT" "Character" "")
("VERT_PREC" "VERT_PREC" "Real" 0.0)
("HORZ_PREC" "HORZ_PREC" "Real" 0.0)
("STD_DEV" "STD_DEV" "Character" "")
("NORTHING" "NORTHING" "Real" 0.0)
("EASTING" "EASTING" "Real" 0.0)
("POINT_ID" "POINT_ID" "Integer" 0)
)

Since XDATA is not stored as a table with a field structure, it is necessary to specify the xdata in terms of the xdata codes (100,1040 etc) and the position (occurence) of the code from the start of the XRECORD.

If you want to transfer the XDATA item "Time Collected" to object data, it must be specified as the 3rd occurence of the 1000 field.

In other words, you choose the XDATA code as 1000 and the occurence as 3. Then, you specify the object table and the field to which this must be mapped.

Once you have setup all such mapping between the xdata records and the object data, the program will transfer the xdata to object data accordingly from all selected objects as long as the correct expected structure is mainatained in all the objects.

Please be aware that the type of the XDATA field must match the type of the object data field for the transfer map to be valid and successful. For example, string XDATA codes 1000 and 1001 can be linked to string object fields only, 1040 can link to floating point field only and 1070 can link to integer data field only.

** Installation improvements while using GeoTools and CADPower together on one computer.

From V 13.06 onwards, you no longer have to fiddle around with the acad.lsp (for AutoCAD) or the 'on_doc_start.lsp' (for Bricscad) to ensure that both GeoTools and CADPower run together successfully on the same computer.

In one of my earlier post, I showed you a bit of fiddling around that was necessary to ensure that both these software ran together without problems. This is now handled by the program internally and automatically.

So, you **DONT'T** need to do any more all that these posts tell you to:

http://rakeshrao.typepad.com/work_smarter_geotools/2012/02/how-to-use-geotools-and-cadpower-on-the-same-computer-for-autocad.html

http://rakeshrao.typepad.com/work_smarter_geotools/2012/02/how-to-use-geotools-and-cadpower-together-on-the-same-computer.html

** Enhanced command: GT_3DOFFSET (GeoTools -> Build -> Offset 3d polylines): & CP_3DOFFSET (CADPower -> Build -> Offset -> Offset 3d polylines): A new option has been added to this command called "BOX". This allows you to offset a 3d polyline on both sises and also join the ends together to fox a box (closed joined polyline).

** Enhanced command: GT_XD_SEARCH (GeoTools -> Extended Entity Data -> Search and replace extended entity data) & CP_XD_SEARCH ( CADPower -> Extended Entity Data -> Search and replace extended entity data ): This command now has an option to filter the list of xdata applications that are displayed. You can choose from 'All' or 'User-defined' and accordingly, you will see a list of xdata applications that include all system defined xdata apps or only the user-created ones.

Please be aware that it is not advisbale to change xdata from system-defined applications because AutoCAD and many add-ons rely on them. Please be absolutely sure of your intentions if you are changing xdata.

*** More info:

Blog: http://rakeshrao.typepad.com

*** Direct download URLs:

GeoTools for AutoCAD:

** English: http://www.4d-technologies.com/geotools/download/geotools_en.exe
** German: http://www.4d-technologies.com/de/geotools/download/geotools_de.exe
** Spanish: http://www.4d-technologies.com/es/geotools/download/geotools_es.exe

CADPower for AutoCAD:

** English: http://www.4d-technologies.com/cadpower/download/cadpower_en.exe
** German: http://www.4d-technologies.com/de/cadpower/download/cadpower_de.exe
** Spanish: http://www.4d-technologies.com/es/cadpower/download/cadpower_es.exe

GeoTools for Bricscad:

** English: http://www.coordsys.com/geotools/download/geotools_bricscad_en.exe
** German: http://www.coordsys.com/geotools/download/geotools_bricscad_de.exe
** Spanish: http://www.coordsys.com/geotools/download/geotools_bricscad_es.exe

CADPower for Bricscad:

** English: http://www.coordsys.com/cadpower/download/cadpower_bricscad_en.exe
** German: http://www.coordsys.com/cadpower/download/cadpower_bricscad_de.exe
** Spanish: http://www.coordsys.com/cadpower/download/cadpower_bricscad_es.exe

-----------------------------------------------------------------
Thank you for your continued support. As always, we welcome feedback at all times.
--------------------------------------------------------------

The URL for the GeoTools @ GoogleGroup is:

http://groups.google.com/group/geotools

**** Four Dimension Technologies ****

India Office:
-------------
C-616, Natasha Golf View
[Off Old Airport Road]
No. 2, New Ring Road
Domlur Layout
Bangalore - 560 071
India
Phone: +91-80-41625057

e-mail: rakesh.rao@4d-technologies.com
Web: http://www.4d-technologies.com

We are on Facebook now:

GeoTools: http://www.facebook.com/home.php#!/pages/GeoTools/173674136023072
--------------------------------------------------------------