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?
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?
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.
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.
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.