Skip to main content
Solved

batch processing multiple dwg-files with differing layernames

  • September 11, 2020
  • 2 replies
  • 78 views

morja
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).

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.

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