From 078f916446778562978876c9e90f168ed5e3483d Mon Sep 17 00:00:00 2001 From: dpasukhi Date: Tue, 14 Apr 2020 11:51:56 +0300 Subject: [PATCH] 0028345: Data Exchange - Reading STEP model using STEPCAF crashes # Add test to verify import * Note: Each layer contains a valid name, but only one contains a link to the shape, so .step file contains only one valid Layer. --- tests/bugs/step/bug28345 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tests/bugs/step/bug28345 diff --git a/tests/bugs/step/bug28345 b/tests/bugs/step/bug28345 new file mode 100644 index 0000000000..ff9be0c343 --- /dev/null +++ b/tests/bugs/step/bug28345 @@ -0,0 +1,15 @@ +puts "# =====================================================================" +puts "# 0028345: Data Exchange - Reading STEP model using STEPCAF crashes" +puts "# =====================================================================" +puts "" + +pload DCAF +ReadStep D_1 [locate_data_file bug28345_30338.stp] + +# Check imported names +set info [XGetAllLayers D_1] +if { [regexp "COMPONENTS" $info] != 1 } { + puts "Error : wrong layer name" +} + +Close D_1