Is there a way to identify mirrored or Rotated Revit family in a Project? The Clockwork nodes are not working as I expected them to.
@Sujan ,
you can check if there is any rotation value that differs from default
thats a possible way:
# functions
def tolist(x):
if hasattr(x,'__iter__'): return x
else: return [x]
# 1️⃣ get elements and properties
elements = UnwrapElement(tolist(IN[0]))
rotations = [i.Location.Rotation for i in elements]
# 2️⃣ has rotation
isRotated = []
for i in rotations:
if i != 0:
isRotated.append(True)
else:
isRotated.append(False)
OUT = zip(rotations, isRotated)
Thanks let me give it a try.
Doesn’t seem to work
i see i got not rotated it got switched
The API has the following properties for FamilyInstances
:
FacingFlipped
HandFlipped
Mirrored
4 Likes