I have a door family with a nested family inside that indicates swing angle (45, 90, 180…). Each angle is a different family that is ties to a parameter called “Swing Angle” so they’re not strings values. Can someone point me in the direction to be able to change all nested families in a Revit project from say “90 Degrees” (actual nested family name) to “45 Degrees” for the swing angles. I’d like to avoid selecting each door.
BTW the Swing Angle parameter is an instance parameter.
If you want to get the values of parameters of nested families, let them be controlled by parameters of the parent family and read those out.
Revit doesn’t really work the other way around, and I’m not sure how you’d be supposed to get these with Dynamo either.
You’re cunnrently setting the value as a string, that barely ever works, it accepts the value 45 as degrees.
I vaguely got the idea that the different angles are different nested families, and the type is set through a parameter, if so, use the FamilyType.ByName node to get the family, the Element.SetParameterByName node accepts that as a value input.
That is getting the parameter value but as soon as I plug in the string value “45 Degrees” (which is probably the wrong thing to do) the Element.SetParameterBy Name blows up. Dereferencing a non-pointer error.