This commit is contained in:
Andrej730
2024-11-15 18:20:50 +05:00
parent fd9485e7ea
commit 7f40491e41
2 changed files with 4 additions and 3 deletions
@@ -82,7 +82,7 @@ class RemovePsetTemplate(bpy.types.Operator, tool.PsetTemplate.PsetTemplateOpera
ifcopenshell.api.run(
"pset_template.remove_pset_template",
self.template_file,
**{"pset_template": self.template_file.by_id(current_pset_template_id)}
**{"pset_template": self.template_file.by_id(current_pset_template_id)},
)
self.template_file.write(IfcStore.pset_template_path)
bonsai.bim.handler.refresh_ui_data()
@@ -196,7 +196,7 @@ class EditPsetTemplate(bpy.types.Operator, tool.PsetTemplate.PsetTemplateOperato
"TemplateType": props.active_pset_template.template_type,
"ApplicableEntity": props.active_pset_template.applicable_entity,
},
}
},
)
bpy.ops.bim.disable_editing_pset_template()
IfcStore.pset_template_file.write(IfcStore.pset_template_path)
@@ -269,7 +269,7 @@ class RemovePropTemplate(bpy.types.Operator, tool.PsetTemplate.PsetTemplateOpera
ifcopenshell.api.run(
"pset_template.remove_prop_template",
IfcStore.pset_template_file,
**{"prop_template": IfcStore.pset_template_file.by_id(self.prop_template)}
**{"prop_template": IfcStore.pset_template_file.by_id(self.prop_template)},
)
IfcStore.pset_template_file.write(IfcStore.pset_template_path)
bonsai.bim.handler.refresh_ui_data()
@@ -199,6 +199,7 @@ NO_HEADER = ifcopenshell_wrapper.file_open_status.NO_HEADER
UNSUPPORTED_SCHEMA = ifcopenshell_wrapper.file_open_status.UNSUPPORTED_SCHEMA
INVALID_SYNTAX = ifcopenshell_wrapper.file_open_status.INVALID_SYNTAX
class file:
"""Base class for containing IFC files.