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