Draft: Made get_type aware of IFC objects
This commit is contained in:
committed by
Yorik van Havre
parent
1b762f5063
commit
aa47a7fe6b
@@ -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'):
|
||||
|
||||
Reference in New Issue
Block a user