Hey guys,
Fiddling around. currently I check if an (the first it encounters) instance is mirrored. Check.
However I want to get some control which instance it uses.
In my case I want to check for a certain instance (which fam. name contains a keyword).
Currently:
def groupelements(group):
memberlist = []
try:
for member in group.GetMemberIds():
memberlist.append(group.Document.GetElement(member).ToDSType(True))
except:
pass
return memberlist
def getfirstfamilyinstanceorientation(groupelements):
try:
return UnwrapElement([i for i in groupelements if isinstance(i,Revit.Elements.FamilyInstance)][0]).Mirrored
except:
return False
But it should be like:
def getfirstfamilyinstanceorientation(groupelements):
try:
if i in groupelements familyName has "keyword"
return UnwrapElement([i for i in groupelements if isinstance(i,Revit.Elements.FamilyInstance)][0]).Mirrored
except:
return False
So if a certain familyname isn’t present in group: exit.
if it is: get that familyinstance mirror status.
Makes sense? if so: how to?