Skip to main content
Solved

GeometryPropertySetter - make it dynamic

  • April 13, 2021
  • 3 replies
  • 32 views

sigtill
Supporter
Forum|alt.badge.img+25

Using the GeometryPropertySetter to set Traits to IFC files needs to use an AttributeExposer to be able to select the right attributes to put on the trait. This does not work well on Dynamic Workspaces with 20-100 attributes.

 

Is there a way to use the GeometryPropertySetter in a dynamic way? For instance submit a list of attribute names or some other "hack" to make this dynamic for "more IFC-files"?

Best answer by sigtill

Or perhaps the TraitMerger. Will look into that.

TraitMerger worked like a charm!

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.

3 replies

david_r
Celebrity
  • 8392 replies
  • April 13, 2021

The "obvious" solution is probably to use Python, where you can programatically access any attribute regardless of if it's been exposed or not?

https://docs.safe.com/fme/html/fmepython/api/fmeobjects/geometry/_surfaces/fmeobjects.FMEFace.setTrait.html#fmeobjects.FMEFace.setTrait


sigtill
Supporter
Forum|alt.badge.img+25
  • Author
  • Supporter
  • 956 replies
  • April 13, 2021

Or perhaps the TraitMerger. Will look into that.


sigtill
Supporter
Forum|alt.badge.img+25
  • Author
  • Supporter
  • 956 replies
  • Best Answer
  • April 13, 2021

Or perhaps the TraitMerger. Will look into that.

TraitMerger worked like a charm!