I’m lost at sea and need little bit of help in the code of python. I would like to process a family that has a family parameter added called “flipped” which is a yes/no parameter. If the parameter is ticked ie Yes then the family is flipped. If it is No then the family stays as is.
I have been able to “manually” process a list of 3 families with the code in green.
But what I would like to do is to be able to process any number of families with a loop using python code (see code in pink) however I’ve got no idea of how to create a loop in python.
To active the code in pink it requires the nodes to be connected along the red dashed line. To deactivate the “manual” code the nodes between the red dashed lines need to be broken.
Flip_Test_05.dyn (32.7 KB)
The family in the Revit file contains a flip control which allows the family to be mirrored.