mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-17 14:02:27 +00:00
Update schema.py
This commit is contained in:
@@ -28,8 +28,8 @@ cwd = os.path.dirname(os.path.realpath(__file__))
|
|||||||
|
|
||||||
|
|
||||||
def is_a(entity, ifc_class):
|
def is_a(entity, ifc_class):
|
||||||
ifc_class = ifc_class.lower()
|
ifc_class = ifc_class.upper()
|
||||||
if entity.name_lc() == ifc_class:
|
if entity.name_uc() == ifc_class:
|
||||||
return True
|
return True
|
||||||
if entity.supertype():
|
if entity.supertype():
|
||||||
return is_a(entity.supertype(), ifc_class)
|
return is_a(entity.supertype(), ifc_class)
|
||||||
|
|||||||
Reference in New Issue
Block a user