Object data to block attribute

Object data to block attribute

stefanveurink68AXD
Advocate Advocate
3,277 Views
4 Replies
Message 1 of 5

Object data to block attribute

stefanveurink68AXD
Advocate
Advocate

I'm not into Civil, first time this year i used it. Problem is: I got a whole lot of .shp-files. Imported them to Civil by 'Mapimport' as blocks. When i look at properties of the block i see the information from the .shp file in a box called 'OD: ...' what probably mean Object Data?

 

My Question: Is there an easy way to convert this object data to attributes of the block? 

 

And same question for other .shp files yet to import: here its not points but planes. Is there a way to convert the OD (guess thats what will be imported within the polygon/plane) to texts?

 

So I can actually see the information in my drawing when printed?

 

Thanks. 

0 Likes
Accepted solutions (1)
3,278 Views
4 Replies
Replies (4)
Message 2 of 5

Joe-Bouza
Mentor
Mentor
Accepted solution

I would explore the FDO map explorer built into civil3d   : MAPWSPACE

 

 

or look into Map3d annotation tools

https://knowledge.autodesk.com/support/autocad-map-3d/troubleshooting/caas/sfdcarticles/sfdcarticles...

Joe Bouza
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

0 Likes
Message 3 of 5

ChicagoLooper
Mentor
Mentor

Object data is the 'attribute data' taken from the shapefile's database file or dbf. The shapefile's geometric entities have attribute data and the MAPIMPORT procedure, when performed on a shapefile, is capable of harvesting the dbf and converting that data into AutoCAD 'Object Data.' You may consider AutoCAD entities with OD to be smart objects because they hold data (dbf) while plain vanilla entities to be dumb because they don't.

 

It is possible to convert to blocks, it might be easy, it might not be easy, it depends on the following:

  1. What kind of geometric entities are contained in the shapefile? Points, lines or polygons?
  2. When you say 'convert this object data to attributes of the block' do you mean an existing block that's already in your drawing or you have on file? Or a brand new block?
  3. Do you really need the block and its attributes? Or do you just need the object data to create labels in your drawing?
  4. Block creation may, or may not be, the most effective operation to satisfy your needs. There may be other procedures more suitable to achieve your goal. Are you willing to abandon the Mapimport porocedure in favor of something more efficient? Describe in detail, the desired end result you wish to accomplish so an evaluation can be made to determine whether Mapimport is appropriate.
  5. Are you willing to use a Data Connection to add the shapefile to your drawing? A Data Connection has more versatility than a block.

Chicagolooper

EESignature

Message 4 of 5

stefanveurink68AXD
Advocate
Advocate

I've done it indeed by MapImport & Map 3D Annotation tools, by following this video: 

https://www.youtube.com/watch?v=9UrjmG65ocA

 

However, I was wondering, Now I have to add every Objectfield manually as an mapantext. Is there a way to automatically do this, or in other words, do them all at once. Can find any information on how to work with this objectdata in VBA or C#.Net?

0 Likes
Message 5 of 5

Anonymous
Not applicable

You may have already found it but look into creating an annotation template - which is a block that extracts object data and labels the drawing. there are tools for this in the Planning & Analysis workspace, annotation tab (I think).

 

Or, if you have a data connection to access the data that you otherwise get by importing shape files you can edit the data layer's style on the Display manager tab of the Map Workspace dialog to add annotation to how the data is represented in the drawing. You can extract that annotation to mtext, i think, if desired.

 

@ChicagoLooperknows more about this than I ever will, they may have something different or better to offer.