0031517: Data Exchange - wrong result of ShapeTool::UpdateAssemblies()
[occt.git] / tests / bugs / xde / bug28055_1
CommitLineData
acc909a8 1puts "============"
2puts "CR28055"
3puts "============"
4puts ""
5
6##########################################################################
7# Add UpdateAssemblies() method for top-down update of assembly compounds
8##########################################################################
9
10ReadStep d [locate_data_file trj3_as1-tc-214.stp]
11XShow d
12vfit
13vsetdispmode 1
14
15# First check verifies that originally there is 18 solid instances
16XGetOneShape model_before d
17checknbshapes model_before -solid 18 -t
18
19checkview -screenshot -3d -path ${imagedir}/${::casename}_1.png
20
21XRemoveComponent d 0:1:1:1:1
22XUpdateAssemblies d
23XShow d
24
25checkview -screenshot -3d -path ${imagedir}/${::casename}_2.png
26
27# Second check verifies that after component removal 7 instances go away
28XGetOneShape model_after d
29checknbshapes model_after -solid 11 -t