mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
black .
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user