Hi, this time i work with a large model of a curtain wall and some of my windows have a bad placement.
For file weight reason, i can’t put visibility for each placement i need (the red cross and the green V).
In my case i use the horizontale flip control but i have too many windows to do it manualy.
I have the ID of each element i need to flip but don’t know ho it work in Dynamo or if it’s possible.
Get the element’s location, and move it 1 unit along the facing orientation, and ask if the room at that point is null. If it’s outside the building it won’t have one and therefore your window ‘looks’ outside. If it’s inside the building it will have a room and needs to be flipped (at which point try above).
If I unterstand you correct you want to flip them to outside of building. That works with FlipFacingOrientation on Doors and Windows. But you said that you created your windows as curtain walls so you have to use “Wall Flip” Node from Clockwork. It should work.
#Copyrights by Deniz Maral
#www.linkedin.com/in/denizmaral/
import clr
clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import *
clr.AddReference("RevitServices")
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
def Rotate_element(item):
try:
item.rotate()
return True
except: return False
doc = DocumentManager.Instance.CurrentDBDocument
items = UnwrapElement(IN[0])
TransactionManager.Instance.EnsureInTransaction(doc)
if isinstance(IN[0], list): OUT = [Rotate_element(x) for x in items]
else: OUT = Rotate_element(items)
TransactionManager.Instance.TransactionTaskDone()
Hi, I have a similar problem. The FlipFacingOrientation node seems to be working only for elements with the Double Vertical flip control. Do you know any other way to flip facing oreintation of a window with Single Vertical flip control?