Skip to main content
Question

Block List from DWG Template


deanhowell
Influencer
Forum|alt.badge.img+24

Is there a way to get a list of the blocks contained in an AutoCAD DWG Template?

I can see in the DWGStyler that FME is able to read the list of blocks from the template, so was wanting to see if that same list can be extracted in other ways?

 

 

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.

3 replies

erik_jan
Contributor
Forum|alt.badge.img+23
  • Contributor
  • June 18, 2020

Read the DWG file (do not explode blocks) and use the GeometryFilter to filter only points.

Then a Tester to find autocad_block_name has a value.

And DuplicateFilter to get a list of unique block names.

Hope this helps.


deanhowell
Influencer
Forum|alt.badge.img+24
  • Author
  • Influencer
  • June 18, 2020
erik_jan wrote:

Read the DWG file (do not explode blocks) and use the GeometryFilter to filter only points.

Then a Tester to find autocad_block_name has a value.

And DuplicateFilter to get a list of unique block names.

Hope this helps.

Thanks @erik_jan, it sort of helps but I need to get the list from the DWG Template, so it doesn't actually have any points. I was hoping to be able to get the list, create points and then assign the block name attribute based on the elements of the list.


erik_jan
Contributor
Forum|alt.badge.img+23
  • Contributor
  • June 18, 2020
deanhowell wrote:

Thanks @erik_jan, it sort of helps but I need to get the list from the DWG Template, so it doesn't actually have any points. I was hoping to be able to get the list, create points and then assign the block name attribute based on the elements of the list.

If you rename the template from DWT (I assume) to DWG, you can read it as a DWG file.

Then this should work too.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings