Hey everybody,
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.
Hey everybody,
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.
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).
We're aware of that, and usually we do have it and use method that you described. But for this, we have nothing...
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...
Thanks for your reply.
Do you mean manually? If so, that could be a lengthy problem for 150+ blocks we currently have.
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...
though, could you be more specific of what transformers should I use?
though, could you be more specific of what transformers should I use?
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
I won't pretend being an expert at AutoCAD, but would something like this using the AutoCad core console work for you?
http://stackoverflow.com/a/31936912
It's not based on FME, however.
I won't pretend being an expert at AutoCAD, but would something like this using the AutoCad core console work for you?
http://stackoverflow.com/a/31936912
It's not based on FME, however.
yes it would, but we don't have AutoCAD...
and how to add them their own autocad_block_name parameter. Should I use loop or something
Please, prove me wrong.
and how to add them their own autocad_block_name parameter. Should I use loop or something
You can also download a trial of AutoCAD and try some commands there for exporting the names.
@zzupljanin
I tried it out, I removed all objects from a template dwg file wich contains block definitions.
You can use a schema reader and u get as many features as there are blocks.
It reads all the names into "fme_feature_type_name" even though there are no objects in the dwg.
(creating points or other objects is not useful as you would need to know the block names to merge them)
Though wouldn't it give you name of layers (not the block name). At least that's what I get.
I'm missing something here.
Yes, you are right.
My template had indeed layers where the object resided and then name is same as blockname....
So no solution..srry..:(
All other solutions require AutoCAD I'm afraid.
I found no way to find block information from unused blocks using fme.
Maybe a trial version and give the blocks an object?