Is it possible to export all block names from .cad file to txt file. The CAD is empty(!) therefore there are no features, but block definitions are preserved for every block and I'd like to extract them.
Thanks.
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.
Do you have the template file that was used to create the empty CAD file?
If so, you can read that template file (using the DWG reader) and extract the block names (have to use the setting not to explode blocks and expose the autocad_block_name format attribute).
Do you have the template file that was used to create the empty CAD file?
If so, you can read that template file (using the DWG reader) and extract the block names (have to use the setting not to explode blocks and expose the autocad_block_name format attribute).
I dont think its possible as long as there are no features, so a solution can be to create all the blocks into a new dwg with features and read the new dwg...
I dont think its possible as long as there are no features, so a solution can be to create all the blocks into a new dwg with features and read the new dwg...
Hey @itay
Thanks for your reply.
Do you mean manually? If so, that could be a lengthy problem for 150+ blocks we currently have.
I dont think its possible as long as there are no features, so a solution can be to create all the blocks into a new dwg with features and read the new dwg...
Brilliant,
though, could you be more specific of what transformers should I use?
though, could you be more specific of what transformers should I use?
To create the point features? Just use a creator! Set the geometry object to 'point' and choose the number of points. The example below will create 150 points on the same location. Then use each point as the insertion point for each block you have.
To create the point features? Just use a creator! Set the geometry object to 'point' and choose the number of points. The example below will create 150 points on the same location. Then use each point as the insertion point for each block you have.
Hey @jneujens,
and how to add them their own autocad_block_name parameter. Should I use loop or something
and how to add them their own autocad_block_name parameter. Should I use loop or something
That's the labour intensive part, you could create a csv with the block name and ID 1 till 150 and use a joiner to add the block name to the points (use the creator att Creation Instance Attribute as id) after that is a matter of using the dwgstyler to create the new DWG
and how to add them their own autocad_block_name parameter. Should I use loop or something
@itay, that just doesn't make sense. If I manualy create a csv file of block names than the goal would be fulfilled (It's the main task of this question). Then I won't be needing FME.