I’m working on a script to automate the process of moving model elements to the proper worksets. I’ve worked out how to do it where elements of a given category or type all go on the same workset (Plumbing Fixtures, Mechanical Equipment, etc.)
Here is a screenshot of the above process (This is very much the HULK SMASH! approach I’m sure)
Because of the way we split out our piping between plumbing and mechanical piping worksets, I’m needing to filter the pipes by their system type and I’m not entirely sure how exactly to do that. In my mind, this is the logic that I want to use.
Is there a node out there that anybody knows about that would do something like this? Is there another method? Any input and guidance is greatly appreciated!
Below I have a similar example for ducts. It should be pretty close to that of pipes. We basically group all of the elements by their respective system classification, then get each list as it’s own. From there you can assign worksets.
Just to give an update, I used John’s collector nodes to extract the pertinent pipe, system type, classification, etc. ID’s and then used his first method and carried it out to assign worksets to the items based on their systems types. See screenshot. Thanks again John for creating such useful nodes!