I don't have any DWGs handy to test with. but have a look at using the FeatureReader instead of the reader. You can set it up to read all Feature Types - make sure you then set it to Single Output Port. All features will then come out the generic port. There will be no exposed attributes, so you'll need to manual set those
Thank you for the help. I tried it but appeared not to work with me.
I’ve attached two dwg sample files with different layers
Thank you for the help. I tried it but appeared not to work with me.
I’ve attached two dwg sample files with different layers
I've attached a workbench, seems to be working fine.
Note that this is starting to encroach on dynamic workflow principals, which are a more advanced way of working with attributes and schemas in fme
https://community.safe.com/s/article/dynamic-workflow-tutorial-introduction
Q2 reads in 1181 features across 75 feature types, R2 reads in 64 features across 4 feature types
Thank you for the prompt help. I got two issues:
- I couldn’t figure out how to choose another dwg file. The “run entire workspace” just runs the model without giving first the chance to choose the dwg file
- How to add attributes to the output?
Thank you for the prompt help. I got two issues:
- I couldn’t figure out how to choose another dwg file. The “run entire workspace” just runs the model without giving first the chance to choose the dwg file
- How to add attributes to the output?
You'll need to set the feature reader to use a Public Parameter to store the DWG, then each time you run it, it will prompt you.
All the attributes are being read in, however they're not exposed. You'll need to expose the ones you want to deal with
I got two dwg files (attached), the first one is D1 that has three layers (0, P1, P2), the second one is D2 which has 4 layers (0, M1, M2, M3).
In the screenshots below, as the second dwg file is selected, the layers are not selected automatically
Which settings are needed in order to get the layers selected automatically as new dwg file is chosen?