I’ve been trying to sort some family types from wall sweeps on a project, to set specific values for the same parameter, but I’m not getting there. This is my roadmap to create this script:
_1st: collect all Wall Sweep types in project;
_2nd: filtering the wall sweep types, based on its names;
_3rd: Sorting the collected wall sweeps by element type names;
_4th: setting the parameter value based on a list already sorted by element type name (in excel but in this sample I made it with a code block).
The struggle here, has being that I cannot get the elements already sorted by name.
The last node is expecting elements (not a string) but in the filter list, it is sorted by ID (not by name).
I’m sending the script sample as well as a RVT sample.
Does anyone know how can it be solved?
Thank you in advance!
Set parameter for System Familytype list.dyn (20.8 KB)
Project1.rvt (352 KB)