Hi everyone,
I have created a script for placing builders work families where a duct in the host project clashes with a floor from a linked Revit file.
The problem I am having is putting something into the script that can check/match the orientation of the builders work family to the orientation of the duct.
In the image above you can see that all the families along the horizontal section are placed correctly, ie there is a 150mm gap around all sides for this example. If you look at the vertical section, you can see that the builders work family needs to be rotated 90 degrees. I need to build this check into the script because users could draw ducts from different elevations/sections.
Can any one help me with how to identify the orientation of each duct and make sure that the family instance that gets placed matches the duct it is attached to? In this example I also have each of these ducts passing through 3 different floors.
Any help will be really appreciated.
Thanks!