Skip to main content
Solved

GeometryPropertySetter - make it dynamic


sigtill
Supporter
Forum|alt.badge.img+24

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

sigtill wrote:

Or perhaps the TraitMerger. Will look into that.

TraitMerger worked like a charm!

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

3 replies

david_r
Celebrity
  • 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+24
  • Author
  • Supporter
  • April 13, 2021

Or perhaps the TraitMerger. Will look into that.


sigtill
Supporter
Forum|alt.badge.img+24
  • Author
  • Supporter
  • Best Answer
  • April 13, 2021
sigtill wrote:

Or perhaps the TraitMerger. Will look into that.

TraitMerger worked like a charm!


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