Resolve #1750. You can now save IFCs under a relative path to your Blend file.

This commit is contained in:
Dion Moult
2021-11-07 13:20:24 +11:00
parent e6e1978584
commit de561b78e0
4 changed files with 19 additions and 3 deletions
@@ -324,7 +324,7 @@ Scenario: Export IFC - with basic contents
Given an empty Blender session
And I press "bim.load_project(filepath='{cwd}/test/files/basic.ifc')"
When I press "export_ifc.bim(filepath='{cwd}/test/files/export.ifc')"
Then "scene.BIMProperties.ifc_file" is "{cwd}/test/files/basic.ifc"
Then "scene.BIMProperties.ifc_file" is "{cwd}/test/files/export.ifc"
Scenario: Export IFC - with basic contents and saving as another file
Given an empty Blender session
@@ -332,6 +332,13 @@ Scenario: Export IFC - with basic contents and saving as another file
When I press "export_ifc.bim(filepath='{cwd}/test/files/export.ifc', should_save_as=True)"
Then "scene.BIMProperties.ifc_file" is "{cwd}/test/files/export.ifc"
Scenario: Export IFC - with basic contents and saving as a relative path
Given an empty Blender session
And I press "bim.load_project(filepath='{cwd}/test/files/basic.ifc')"
When I press "wm.save_mainfile(filepath='{cwd}/test/files/export.blend')"
And I press "export_ifc.bim(filepath='{cwd}/test/files/export.ifc', use_relative_path=True)"
Then "scene.BIMProperties.ifc_file" is "export.ifc"
Scenario: Export IFC - with deleted objects synchronised
Given an empty IFC project
When the object "IfcBuildingStorey/My Storey" is selected