0027531: Modeling Algorithms - Make the algorithm Approx_SameParameter more clear...
[occt.git] / tests / bugs / xde / bug29599
CommitLineData
bc728d26 1puts "=========="
2puts "OCC29599"
3puts "=========="
4puts ""
5##########################################
6# Incorrect expand compound method in XDE
7##########################################
8pload ALL
9
10XOpen [locate_data_file bug29599.xbf] D
11XExpand D 0:1:1:1
12
13# check location of subshape
14XGetShape sh D 0:1:1:10
15XGetShape subsh D 0:1:1:10:1
16set check_sub [issubshape subsh sh]
17set check_sub [lindex $check_sub 5]
18
19if {$check_sub != "Index"} {
20 puts "Error: Wrong subshape location"
21}
22
23# check sharing of new part
24set ref1 [XGetReferredShape D 0:1:1:1:5]
25set ref2 [XGetReferredShape D 0:1:1:1:8]
26if {$ref1 != $ref2} {
27 puts "Error: Wrong sharing"
28}
29
30# check name
31set name [GetName D 0:1:1:1:5]
32if {$name != "l-bracket-assembly_1"} {
33 puts "Error: Wrong name of component"
34}
35
36Close D