From 894a688bd88372b047ac5f03fac532792a512106 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Thu, 18 May 2023 18:34:50 +0500 Subject: [PATCH] Added test scenario to reproduce #3169 Can be easily called with `pytest .\test\bim\test_feature.py -k "issue"` Commented some lines out to make sure it doesn't interrupt someone's test process. Need to uncomment `When I press "bim.create_drawing"` if you want to see if it freezes for you. You can also uncomment `And I save sample test files and open in blender` to see the freeze manually in Blender client. --- src/blenderbim/test/bim/feature/drawing.feature | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/blenderbim/test/bim/feature/drawing.feature b/src/blenderbim/test/bim/feature/drawing.feature index 2adfac3d39..012aafdc80 100644 --- a/src/blenderbim/test/bim/feature/drawing.feature +++ b/src/blenderbim/test/bim/feature/drawing.feature @@ -73,3 +73,19 @@ Scenario: Remove drawing - via object deletion And the object "IfcAnnotation/PLAN_VIEW" is selected When I press "bim.override_object_delete" Then the collection "IfcGroup/PLAN_VIEW" does not exist + +Scenario: Reproducing freeze on generating drawing - Issue 3169 + Given an empty IFC project + And I add a cube + And the object "Cube" is selected + And I set "scene.BIMRootProperties.ifc_class" to "IfcWall" + And I press "bim.assign_class" + And I set "object.BIMObjectMaterialProperties.material_type" to "IfcMaterialLayerSetUsage" + And I press "bim.assign_material" + And I press "bim.load_drawings" + And I press "bim.add_drawing" + And the variable "drawing" is "IfcStore.get_file().by_type('IfcAnnotation')[0].id()" + And I press "bim.activate_drawing(drawing={drawing})" + # And I save sample test files and open in blender + # When I press "bim.create_drawing" + Then nothing happens