1 #1 - create Box using short-cut
3 AddDriver D Box; ## add box driver to driver table
4 set B1 [AddBox D 130 140 150]; ## add box
5 ComputeFun D $B1:1; ## compute box1 function
6 GetShape D $B1:1:2 Box1; ## check result
9 GetReference D $B1; ## check is reference set
11 #2 - create box using more flexible set of commands
13 set B2 [AddObject D]; ## add object
14 set F2 [AddFunction D $B2 Box]; ## add function
15 BoxDX D $B2 190; ## set argumets of this function
18 InitLogBook D; ## initialize (clean) internal maps of labels
19 AddDriver D Box Attach Cyl
20 ComputeFun D $F2; ## compute the function
21 GetShape D $F2:2 Box2; ## check result
23 GetReference D $B2; ## referes to result NS
27 AddDriver D PTxyz PTALine PRLine
28 set FTr1 [PTranslateDXYZ D $B1 110 130 270]
29 ComputeFun D $FTr1; ## translation function recomputation
30 GetShape D $FTr1:2 Box1; ## get modified result
34 set FS [AddFuse D $B2 $B1]
42 set Sel1 [AttachShape D Box2_1_1 ${B2} ${B2} 0]; ## set attachment
43 AddDriver D Attach Cyl
44 set Cyl [AddCyl D 30 315 ${Sel1}]
51 set CS [AddCut D $B2 $Cyl]
59 set Sel2 [AttachShape D S_3_6 ${B2} ${B2} 0]; ## set attachment for using in Fillet
61 set Fill [AddFillet D $B2 25 $Sel2 0]
68 set SL [TestSingleSelection D $B2 0]
69 set SL2 [TestMultipleSelection D $B2 0]
77 InitLogBook D; ## to be initialized before any recomputation of impacted functions set (if attachments are presented)
90 #recomputation of entities of the TestSelection commands