From ebfd071c3c951691c5b20481aca5a08839c06cb0 Mon Sep 17 00:00:00 2001 From: dpasukhi Date: Sun, 13 Sep 2020 13:05:04 +0300 Subject: [PATCH] 0031191: Data Exchange - STEP import returns empty shape for a file written by SolidWorks 2018 Add a test case to verify that the .STEP is read correctly --- tests/bugs/step/bug31191 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tests/bugs/step/bug31191 diff --git a/tests/bugs/step/bug31191 b/tests/bugs/step/bug31191 new file mode 100644 index 0000000000..fcb54584c5 --- /dev/null +++ b/tests/bugs/step/bug31191 @@ -0,0 +1,15 @@ +puts "========================" +puts "0031191: Data Exchange - STEP import returns empty shape for a file written by SolidWorks 2018" +puts "========================" + +# Read file +stepread [locate_data_file bug31191.stp] res * + +# Checking +set state [data c] +if { [regexp "309733 Entities, of which 9046 Root" $state] != 1 } { + puts "Error : wrong count of transferred roots" +} + +checknbshapes res_1 -face 4494 -shell 26 -solid 26 +checkshape res_1 f \ No newline at end of file