From 72e6020d50e6d78474fbd4dfb420db28ff92caa0 Mon Sep 17 00:00:00 2001 From: dpasukhi Date: Tue, 12 May 2020 19:51:12 +0300 Subject: [PATCH] 0026925: Data Exchange - Exception can be raised if assembly is empty - Issue is done in previous version OCCT - Add test to verify the creating of the label structure using plain OCAF/XDE API - Situation when the assembly label has no shape attached is correct --- tests/bugs/step/bug26925 | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 tests/bugs/step/bug26925 diff --git a/tests/bugs/step/bug26925 b/tests/bugs/step/bug26925 new file mode 100644 index 0000000000..692cb27a31 --- /dev/null +++ b/tests/bugs/step/bug26925 @@ -0,0 +1,21 @@ +puts "# =====================================================================" +puts "# 0026925: Data Exchange - Execeptions can be raised if assembly is empty" +puts "# =====================================================================" +puts "" + +pload DCAF +XNewDoc D +XNewShape D +box a 0 0 0 10 10 10 +XAddShape D a 0 +ttranslate a 10 0 0 +XAddComponent D 0:1:1:1 a +XGetShape s0 D 0:1:1:1 +checkshape s0 l +XUpdateAssemblies D +XGetShape s1 D 0:1:1:1 + +checkshape s1 r +checknbshapes s1 -vertex 8 -edge 12 -shape 35 -face 6 -solid 1 -shell 1 + +Close D \ No newline at end of file