mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-24 15:07:38 +00:00
fixed error when creating new walltype in IFC2x3
This commit is contained in:
@@ -80,9 +80,13 @@ class AddDefaultType(bpy.types.Operator, tool.Ifc.Operator):
|
|||||||
|
|
||||||
def _execute(self, context):
|
def _execute(self, context):
|
||||||
props = context.scene.BIMModelProperties
|
props = context.scene.BIMModelProperties
|
||||||
|
ifc_file = tool.Ifc.get()
|
||||||
props.type_class = self.ifc_element_type
|
props.type_class = self.ifc_element_type
|
||||||
if self.ifc_element_type == "IfcWallType":
|
if self.ifc_element_type == "IfcWallType":
|
||||||
props.type_predefined_type = "SOLIDWALL"
|
if ifc_file.schema == "IFC2X3":
|
||||||
|
props.type_predefined_type = "STANDARD"
|
||||||
|
else:
|
||||||
|
props.type_predefined_type = "SOLIDWALL"
|
||||||
props.type_template = "LAYERSET_AXIS2"
|
props.type_template = "LAYERSET_AXIS2"
|
||||||
elif self.ifc_element_type == "IfcSlabType":
|
elif self.ifc_element_type == "IfcSlabType":
|
||||||
props.type_predefined_type = "FLOOR"
|
props.type_predefined_type = "FLOOR"
|
||||||
|
|||||||
Reference in New Issue
Block a user