Arch: Renamed Role property to IfcRole

This commit is contained in:
Yorik van Havre
2018-05-11 12:01:55 -03:00
parent 03908877fc
commit 63794fcefd
15 changed files with 112 additions and 49 deletions

View File

@@ -156,13 +156,19 @@ class _ArchSchedule:
if Draft.getType(o).upper() == args[1].upper():
ok = False
elif args[0].upper() == "ROLE":
if hasattr(o,"Role"):
if hasattr(o,"IfcRole"):
if o.IfcRole.upper() != args[1].upper():
ok = False
elif hasattr(o,"Role"):
if o.Role.upper() != args[1].upper():
ok = False
else:
ok = False
elif args[0].upper() == "!ROLE":
if hasattr(o,"Role"):
if o.IfcRole.upper() == args[1].upper():
ok = False
elif hasattr(o,"Role"):
if o.Role.upper() == args[1].upper():
ok = False
if ok: