Skip to main content
Solved

Want to extract geometry and attributes from AutoCAD blocks

  • October 10, 2017
  • 6 replies
  • 378 views

Forum|alt.badge.img

I want to extract the geometry and attributes from AutoCAD blocks in a .DWG file. This seems to be problematic as the information extracted by the Reader doesn't appear the information in the block.

So, how can I get this information?

Best answer by jneujens

Without exploding the blocks, use an attributeexposer to expose your attributes (like 'DECK', 'FIRE_ZONE', etc.). If that does not work, something else is going wrong and we can have a look at your data?

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

6 replies

stalknecht
Contributor
Forum|alt.badge.img+21
  • Contributor
  • 305 replies
  • October 10, 2017

Forum|alt.badge.img
  • Author
  • 14 replies
  • October 10, 2017
Thank you.

 

I read the docs, tried a number of things, thought I had it but the results are generally empty.

 

 

The empty fields are all the "fme_attrib_info..." fields.

 

 

Here are some of the empty fields I'm trying to export:

 

fme_attrib_info_0_.style

 

fme_attrib_info_0_.field_value

 

fme_attrib_info_1_.field_value

 

fme_attrib_info_2_.field_value

 

 

The fields that *aren't* "fme_attrib..." are appearing.

 

 


stalknecht
Contributor
Forum|alt.badge.img+21
  • Contributor
  • 305 replies
  • October 11, 2017
Thank you.

 

I read the docs, tried a number of things, thought I had it but the results are generally empty.

 

 

The empty fields are all the "fme_attrib_info..." fields.

 

 

Here are some of the empty fields I'm trying to export:

 

fme_attrib_info_0_.style

 

fme_attrib_info_0_.field_value

 

fme_attrib_info_1_.field_value

 

fme_attrib_info_2_.field_value

 

 

The fields that *aren't* "fme_attrib..." are appearing.

 

 

Please share your workspace and some test data.

 

 


jneujens
Forum|alt.badge.img
  • 189 replies
  • Best Answer
  • October 11, 2017

Without exploding the blocks, use an attributeexposer to expose your attributes (like 'DECK', 'FIRE_ZONE', etc.). If that does not work, something else is going wrong and we can have a look at your data?


Forum|alt.badge.img
  • Author
  • 14 replies
  • October 11, 2017

Without exploding the blocks, use an attributeexposer to expose your attributes (like 'DECK', 'FIRE_ZONE', etc.). If that does not work, something else is going wrong and we can have a look at your data?

Thank you! Your suggestion plus some help from Safe Software support got me to where I needed to go.

 

 

Here is what the support team said:

 

You can expose the block attributes when you add the AutoCAD reader by clicking the Parameters button for the reader, and selecting 'Attribute Schema' for the Group Entities setting. This will cause FME to scan the DWG file for all the block attributes, and make then available in Workbench.

 

 

By default, FME will explode the blocks into their source components. This will create multiple copies of some blocks, so I recommend disabling this in the Reader Parameters, by unchecking the Explode Blocks into Entities box. With this disabled, a single point will be read for each block, with the block attributes attached.

 

 


jneujens
Forum|alt.badge.img
  • 189 replies
  • October 13, 2017
Thank you! Your suggestion plus some help from Safe Software support got me to where I needed to go.

 

 

Here is what the support team said:

 

You can expose the block attributes when you add the AutoCAD reader by clicking the Parameters button for the reader, and selecting 'Attribute Schema' for the Group Entities setting. This will cause FME to scan the DWG file for all the block attributes, and make then available in Workbench.

 

 

By default, FME will explode the blocks into their source components. This will create multiple copies of some blocks, so I recommend disabling this in the Reader Parameters, by unchecking the Explode Blocks into Entities box. With this disabled, a single point will be read for each block, with the block attributes attached.

 

 

Indeed! Glad you resolved your issues!