Set Parameter Value by System Type of the Elements

Hi All,

I like to change parameter value for multiple elements. I am able workout this by model category of the elements but i like to do the same thing by System Type is it possible in Dynamo? Please advice.

Thank You!
Nitesh Panchal

you can use GroupByKey and use the name of the System Type.

Hi Yoeri,

Thank you for help. This will help me with list of System Types but then how i can connect to node for changing parameter value?

Attached is what i have created till now.

you want to set one workset for all the items in list?

No, it will be different Worksets for different System Types.

i did the comments parameter but it should work the same with worksets.

replace System 1, 2, 3 by worksets :slight_smile: good luck

I think i didn’t explained correctly. See below what i am looking for.

  1. I like to find System Type for all different category i.e. Duct, Duct Accessories & Duct Fittings & Pipe, Pipe Accessories & Pipe Fittings.
  2. I like to change same parameter value for “Workset” for all Duct elements and then Pipe elements based on their System Type

@Nitesh_Panchal Then flatten the list of categories. it should work like this.

I dont have fittings, but i tested it with walls and windows and it works.

image

I am unable to enlarge image file. Could you send it again please.

I tried but not working. Attached the script for your review.Set Workset-1.dyn (19.8 KB)

I think it should work like this.

Look at the unique keys. i think they are always in the same order.
Set Workset-Per-System-Type.dyn (23.8 KB)

This is in case you have 3 system types.
If you dont always have 3 system types in your selection you need to add some filters to determine the amount of systems and which systems. and set worksets based on the selected systems.

Still not working :frowning:

Is it possible to set a workset by Element Set Parameter and a String?