New dumb column tool. Creates a parametric solid column from profile sets.

This commit is contained in:
Dion Moult
2021-06-07 19:43:02 +10:00
parent ca0dac1353
commit 7d841c3f27
8 changed files with 188 additions and 7 deletions
@@ -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: