#2224 Expose unload project in UI to aid in unlinking IFCs for coordination only

This commit is contained in:
Dion Moult
2022-06-08 19:09:55 +10:00
parent cdabc507e1
commit 3507920c09
2 changed files with 2 additions and 2 deletions
@@ -165,6 +165,7 @@ class BIM_PT_project(Panel):
op.should_save_as = False
op = row.operator("export_ifc.bim", icon="FILE_TICK", text="Save As")
op.should_save_as = True
row.operator("bim.unload_project", text="", icon="X")
def draw_create_project_ui(self, context):
props = context.scene.BIMProperties
+1 -2
View File
@@ -48,8 +48,7 @@ props.element_limit = 30000
bpy.ops.bim.load_project(filepath="/path/to/your/model/input.ifc")
# In coordination mode, it is unnecessary to maintain a link to the IFC
bpy.context.scene.BIMProperties.ifc_file = ""
IfcStore.file = None
bpy.ops.bim.unload_project()
# Save the processed file here
bpy.ops.wm.save_mainfile(filepath="/path/to/your/model/output.blend")