I’m facing a problem I can’t understand and solve…
I’m trying to get the openings of my Revit Model and to sort them following wich wall they are intersecting. I built a Dynamo program to try to check if a window is intersecting a wall and it perfectly works (see image below).
But I want to make it in a Python script so I can make the check for a list of walls and a list of openings. I wrote the code below, using the same functions as in the Dynamo program :
I think you should first try to unwrap the elements that are Revit elements, for example: the windows should be loaded into the script list this:
windows = UnwrapElement(IN[1])
Sorry, it’s not my field of expertise but I think you’re mistaking the Revit API with the Dynamo API.
First of to get the boundingbox of an element with the Revit API you need query it by using it as property, so in this case you would need: