mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 18:16:40 +00:00
#2224 Expose unload project in UI to aid in unlinking IFCs for coordination only
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user