5 ############################################################
6 # Open/save NamedShape changes order of shapes
7 ############################################################
10 set aTestFileBin $imagedir/${casename}.cbf
11 set aTestFileXml $imagedir/${casename}.xml
17 NewDocument D1 BinOcaf
18 BuildNamedShape D1 0:1 PRIMITIVE v b
21 if { [regexp "SOLID" $info] != 1 } {
22 puts "Error: first shape should be solid"
24 puts "OK: order of shapes is correct"
26 SaveAs D1 ${aTestFileBin}
28 Open ${aTestFileBin} D2
31 if { [regexp "SOLID" $info] != 1 } {
32 puts "Error: first shape should be solid"
34 puts "OK: order of shapes is correct"
39 NewDocument D1 XmlOcaf
40 BuildNamedShape D1 0:1 PRIMITIVE v b
43 if { [regexp "SOLID" $info] != 1 } {
44 puts "Error: first shape should be solid"
46 puts "OK: order of shapes is correct"
48 SaveAs D1 ${aTestFileXml}
50 Open ${aTestFileXml} D2
53 if { [regexp "SOLID" $info] != 1 } {
54 puts "Error: first shape should be solid"
56 puts "OK: order of shapes is correct"