1 #1 - create box using more flexible set of commands
3 set B2 [AddObject D]; ## add object
4 set F2 [AddFunction D $B2 Box]; ## add function
5 BoxDX D $B2 190; ## set argumets of this function
8 InitLogBook D; ## initialize (clean) internal maps of labels
9 AddDriver D Box Attach Cyl
10 ComputeFun D $F2; ## compute the function
11 GetShape D $F2:2 Box2; ## check result
13 GetReference D $B2; ## referes to result NS
19 set Sel1 [AttachShape D Box2_1_1 ${B2} ${B2} 1]; ## set attachment
20 AddDriver D Attach Cyl
21 set Cyl [AddCyl D 30 315 ${Sel1}]
27 set CS [AddCut D $B2 $Cyl]
35 set Sel2 [AttachShape D S_1_1 ${B2} ${B2} 1]; ## set attachment for using in Fillet
37 set Fill [AddFillet D $B2 25 $Sel2 0]
44 set SL [TestSingleSelection D $B2 0]
45 set SL2 [TestMultipleSelection D $B2 0]
53 InitLogBook D; ## to be initialized before any recomputation of impacted functions set (if attachments are presented)