I’m working with a family that have different cut lengths, and I’m trying to create a script that adds a “tag” name to another parameter based on the cut length values.
For example, I have 10 beams that are 100 cm long and 3 beams that are 200 cm long. My goal is to add the tag “FS1” to the 10 beams and “FS2” to the 3 beams.
However, I’ve hit a bit of a roadblock. Any help would be appreciated!
Evening @Mheftholm687CH ,
Not entirely sure what you are after but this may be of use.
In this case im just using a mark value to tag to write to combined parameters together.
Im gonna try to explain a little better.
lets say we got 10 of each of the A200mm. i want to add FS1 in the parameter “Mark” to the 6100mm FS2 to the 8100mm and FS3 on the 5000mm and so on.
Sounds like you just want GroupByKey. That will group your beams based on length. Then you just need to create a value for each group and assign it back to the elements.
You might try searching the forums for similar topics, as this is a fairly common workflow.