Skip to main content
Solved

batch processing multiple dwg-files with differing layernames

  • September 11, 2020
  • 2 replies
  • 49 views

morja
Contributor
  • Contributor

Dear community,

I am running a conversion from dwg to ifc. the necessary information is placed on a layer which is named differently in each file. I can't find a way to process this automatically, since everytime the workspace-runner brings in a new dwg-file, the attributes are stored on a differenty named layer. Is there a possibilty to read in dwg-files with a filter looking for specification within a layername?

Thanks a lot for any hint on this matter.

Best answer by david_r

You can use a dynamic reader, it will read all the contents of all the input files regardless of the layer name or contents. To do this, make sure to select "Single merged feature type" in the first dialog when creating the reader.

You can then e.g. use a Tester on the format attributes autocad_layer and autocad_layer_desc (you'll have to manually expose them in the input feature type first).

View original
Did this help you find an answer to your question?

2 replies

david_r
Celebrity
  • Best Answer
  • September 11, 2020

You can use a dynamic reader, it will read all the contents of all the input files regardless of the layer name or contents. To do this, make sure to select "Single merged feature type" in the first dialog when creating the reader.

You can then e.g. use a Tester on the format attributes autocad_layer and autocad_layer_desc (you'll have to manually expose them in the input feature type first).


morja
Contributor
  • Author
  • Contributor
  • September 13, 2020

Thanks David for the superfast reply!

I have modified the workbench and it seems to work fine. I still have issues with the workspace runner, but not yet sure, what it is about. that would be topic for another question anyway...


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