LOOKING FOR OBJECT DATA AND PROPERTIES EXPORT & IMPORT TO AND FROM CSV (ALL IN ONE)

LOOKING FOR OBJECT DATA AND PROPERTIES EXPORT & IMPORT TO AND FROM CSV (ALL IN ONE)

infoNV9S2
Explorer Explorer
1,031 Views
8 Replies
Message 1 of 9

LOOKING FOR OBJECT DATA AND PROPERTIES EXPORT & IMPORT TO AND FROM CSV (ALL IN ONE)

infoNV9S2
Explorer
Explorer

Can anyone suggest, how to Export Object Data Table and Properties (for example - length, X, Y coordinates) together into a csv file and importing back into the drawing again.

 

@braudpat 

@O_Eckmann 

0 Likes
1,032 Views
8 Replies
Replies (8)
Message 2 of 9

braudpat
Mentor
Mentor

Hello

 

Please look at messages #4 & #8 of this Topic :

https://forums.autodesk.com/t5/autocad-map-3d-forum/convert-database-data-back-into-object-data-afte...

 

It could help you !?

 

Bye, Patrice (The Old French EE Froggy)

 

Patrice ( Supporting Troops ) - Autodesk Expert Elite
If you are happy with my answer please mark "Accept as Solution" and if very happy please give me a Kudos (Felicitations) - Thanks

Patrice BRAUD

EESignature


0 Likes
Message 3 of 9

ChicagoLooper
Mentor
Mentor

Hi @infoNV9S2 

The tried and true way to export Object Data (OD) is to use MAPEXPORT to shapefile.......then to import data use MAPIMPORT to import the shapefile.

 

MAPEXPORT command:

This will allow youto export AutoCAD objects to shapefile format. During the export procedure, the command will allow you create the OD. For example, you can create OD from the entity's Properties (same as the Properties shown in the Properties Palette) or from the attributes of an attributed block. You can select which data you want or don't want included in the OD that you create--you're in control.

 

Shapefile format is versatile. You may use shapefiles in ESRI GIS programs and AutoCAD. You may even use them in non-GIS programs such as Google Earth Pro.

 

MAPIMPORT command:

This command will you to add geometry to your drawing, and at the same time, convert FROM shapefile format TO AutoCAD format with the  results ending up as plain vanilla AutoCAD entities. You may, or may not, choose to keep the DATA in the shapefile's database file (dbf). Keeping the database is how you create (or re-create) Object Data. You can choose which data to keep, i.e. all the data, only some of the data, or none of the data--you're in control. 

 

You don't need special programs or lisps to perform MapExport and MapImport. The commands are already included in the MAP3D toolset.

 

You don't need a CSV file to perform MapExport and MapImport. However, if you do need a CSV file then you can easily get one by opening the Table View of the shapefile. Once it's open, you can copy ALL the rows and columns to clipboard then paste it to a spreadsheet. You can save your spreadsheet to .xlsx or .csv format--you're in control.

 

As an alternative to using shapefile, you may also export/import using the AutoCAD format known as SDF (Spatial Data Format).

 

Chicagolooper

EESignature

0 Likes
Message 4 of 9

O_Eckmann
Mentor
Mentor

Hi @infoNV9S2 ,

 

Once OD and CAD properties are exported into CSV, do you modify these data, and then import back and update objet?

For example, do you want to export X,Y of block to CSV, modifiy these value in CSV and import back to move block to new position?

If you don't modify values in CSV, what is the goal of export/import?

 

Olivier

Olivier Eckmann

EESignature

Message 5 of 9

ChicagoLooper
Mentor
Mentor

To @O_Eckmann 

<<... what is the goal of export/import?>>

 

Yes, that's the million dollar question. Take the data OUT then put it right back IN.....why not keep the data where it is? Take out then put back in means there's no gain.

 

Is this like trying to go upstairs by stepping on the down escalator?  

Chicagolooper

EESignature

0 Likes
Message 6 of 9

infoNV9S2
Explorer
Explorer
Yes, we want to modify these data and re-import to our main drawing and update the object!

If you have any LISPs or any other method, it will be very helpful.
0 Likes
Message 7 of 9

parkr4st
Advisor
Advisor

Have been watching this.  

IMHO 

best route, post your data or an example thereof if is confidential

then we can give you the best route to your goal.

0 Likes
Message 8 of 9

ChicagoLooper
Mentor
Mentor

@infoNV9S2 wrote

<<...we want to modify these data and re-import to our main drawing and update the object...>>

 

Would it be possible to describe (detailed description) or provide a screenshot of what the data looks like? Is the data points? Or lines? Or polygons? A combination? The 'type' of objects the data is attached to makes a difference, a big difference.

 

Better yet, upload the actual data itself.

 

If they are points, it's easy. However, if lines or polygons, then it begins to get complicated.

 

Chicagolooper

EESignature

0 Likes
Message 9 of 9

O_Eckmann
Mentor
Mentor

Hi @infoNV9S2 ,

 

There are some manual operations but you could perhaps use a solution by creating OD Table to receive CAD properties, use my plug-in to copy CAD properties to OD, export OD to TXT, update TXT into Excel, import back OD form TXT, and copy back OD to CAD. Here is a video of process.

(view in My Videos)

 

Olivier

Olivier Eckmann

EESignature

0 Likes