Setting values to a specific instance in Revit

Hello,


Can someone help me with it?

I want the code to do the following:

1.Chose a specified family.
2.Creates a list of a specific parameter from that family. (Example: list all ampacities of all the elements).
3. Using if statement creates a new list of values. (I am not sure if my list lost association with family).
4.Set the new value to a different specified instance parameter.

So, far, I am lost how to assign the numbers in my list to a specified parameter in Revit… Any ideas?

As long as the list levels are maintained, you should be able to deal with this via simple lacing.

Hi, what do you mean by simple lacing?

Figured out what was the problem. The code is correct. It is just I was trying to set integers equal to numbers… Revit didn’t like it.

1 Like