Draft: Made get_type aware of IFC objects

This commit is contained in:
Yorik van Havre
2024-03-13 10:51:04 +01:00
committed by Yorik van Havre
parent 1b762f5063
commit aa47a7fe6b

View File

@@ -426,6 +426,8 @@ def get_type(obj):
return None
if isinstance(obj, Part.Shape):
return "Shape"
if hasattr(obj, "Class") and "Ifc" in str(obj.Class):
return obj.Class
if hasattr(obj, 'Proxy') and hasattr(obj.Proxy, "Type"):
return obj.Proxy.Type
if hasattr(obj, 'TypeId'):