05-29-2017 07:03 PM
I am using the Export to AutoCad in GeoMedia. The attribute export mode is exporting them as extended data. I just wonder how I can check the result?
Appreciate all suggestions,
Solved! Go to Solution.
05-29-2017 03:20 AM
maybe just create a new GWS and try to read the exported data back into GeoMedia? You may need to create the csd file.
05-29-2017 02:47 PM
Thank for looking into this issue. I am pretty new to this, so would you mind explaining a little bit more details, please?
05-30-2017 11:41 AM
The AutoCAD scanner for the CAD data server in GeoMedia does not support serving 'extended data' attributes, so it is not possible to review the attributes by connecting to the exported data from within a GeoWorkspace.
However within the AutoCAD application itself you should be able to read 'Extended Data' attributes exported from the 'Export to AutoCAD' command using the following command line AutoLISP routine:
(entget (car (entsel)) '("GEOMEDIA"))
When this line is submitted from the ‘Command’ prompt in AutoCAD you will be prompted to ‘Select object’. After selecting the desired element in the AutoCAD map view the attributes will be listed within the information returned for the selected entity. An example is shown below for a Rivers feature that was exported with Extended Attributes from USSampleData.mdb to an AutoCAD .dwg. As you can see the RIVER_NAME and RIVER_TYPE attribute names and associated values are included in the returned information.
((-1 . <Entity name: 7ee54108>) (0 . "INSERT") (330 . <Entity
name: 7ee52cf8>) (5 . "99") (100 . "AcDbEntity") (67 . 0) (410 . "Model") (8 .
"Rivers") (100 . "AcDbBlockReference") (2 . "0") (10 0.0 0.0 0.0) (41 . 1.0)
(42 . 1.0) (43 . 1.0) (50 . 0.0) (70 . 0) (71 . 0) (44 . 0.0) (45 . 0.0) (210
0.0 0.0 1.0) (-3 ("GEOMEDIA" (1005 . "6F") (1000 . "RIVER_NAME=Mississippi")
(1000 . "RIVER_TYPE=Perennial - Double Line") (1000 . "ID=37") (1000 . ""))))
Since this is AutoCAD functionality you may wish to refer to AutoDesk resources for additional information. Here is the link to the AutoDesk Knowledge Base…https://knowledge.autodesk.com/
06-08-2017 09:55 PM
I am not sure it really works, I am using Visual Lisp Editor in AutoCad and I still can't find the extended data (Name and ID)
I include the files here. Hopefully, you could have a look at them.
06-08-2017 09:44 AM
The command line should be submitted from the command prompt within the AutoCAD application after opening the DWG file containing the extended attribute (e.g. 'SETTLEMENT_ExtendData.dwg').
I'm not familiar with the Visual Lisp Editor, so I'm not sure what the result would be if using that functionality.
However the screenshot below shows the result when the command line is submitted from the command prompt within the AutoCAD application while the 'SETTLEMENT_ExtendData.dwg' is open. The display of the extended attributes occurs after the feature is selected from the AutoCAD map view at the 'Select object:' prompt.
So the workflow is as follows:
Hope this helps.