mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
New dumb column tool. Creates a parametric solid column from profile sets.
This commit is contained in:
@@ -52,7 +52,9 @@ def get_properties(properties):
|
||||
|
||||
|
||||
def get_type(element):
|
||||
if hasattr(element, "IsTypedBy") and element.IsTypedBy:
|
||||
if element.is_a("IfcTypeObject"):
|
||||
return element
|
||||
elif hasattr(element, "IsTypedBy") and element.IsTypedBy:
|
||||
return element.IsTypedBy[0].RelatingType
|
||||
elif hasattr(element, "IsDefinedBy") and element.IsDefinedBy: # IFC2X3
|
||||
for relationship in element.IsDefinedBy:
|
||||
|
||||
Reference in New Issue
Block a user