Hey everyone, I need some help. I have been trying to find a way to change a family type based on a parameter value and I am having trouble. In this script, I find the “specified supply airflow” and then divide it among all diffusers in a space. I’d like to give cfm ranges and automatically have the family change to the correct type based on what range it falls in. I was thinking the “if” node, but can’t seem to get it to function how I’d like. Any help is appreciated. I’ve attached the dynamo file and a screenshot.
That’s what I tried. That’s the end goal is to select actual families based on parameter values that are pulled from the revit file.
The entire script reads “specified supply airflow” of a space and divides that among all the diffusers it finds within a space. I would like to take the divided values and auto pick a family based on a given cfm range (i.e. select Family 1 if cfm is between 0-120 cfm, etc.)
Also, could you elaborate a little on what exactly that code block is doing? I get the general idea, but I’m a little inexperienced with code blocks.