1 # ============= OCAF ============================
4 # Testing purpose: Naming selection mechanism
6 # Test case: E1 (ShapeOrientation is not used)
9 # 2. Create Cylinder Cyl
12 # 5. Make selection for all sub-shapes
14 # 7. Recompute modeling functions
15 # 8. Recompute selections
16 # ===============================================
23 #1 - create box using more flexible set of commands
25 set B2 [AddObject D]; ## add object
26 set F2 [AddFunction D $B2 Box]; ## add function
27 BoxDX D $B2 190; ## set argumets of this function
30 InitLogBook D; ## initialize (clean) internal maps of labels
31 AddDriver D Box Attach Cyl
32 ComputeFun D $F2; ## compute the function
33 GetShape D $F2:2 Box2; ## check result
35 GetReference D $B2; ## referes to result NS
41 set Sel1 [AttachShape D Box2_1_1 ${B2} ${B2} 1]; ## set attachment
42 AddDriver D Attach Cyl
43 set Cyl [AddCyl D 30 315 ${Sel1}]
49 set CS [AddCut D $B2 $Cyl]
57 set Sel2 [AttachShape D S_1_1 ${B2} ${B2} 1]; ## set attachment for using in Fillet
59 set Fill [AddFillet D $B2 25 $Sel2 0]
66 set SL [TestSingleSelection D $B2 0]
67 set SL2 [TestMultipleSelection D $B2 0]
73 #7 recomputation modeling functions
75 InitLogBook D; ## to be initialized before any recomputation of impacted functions set (if attachments are presented)
85 #8 Recompute selections