mywidth = mybase.setLength( l1.result(), 50 )
mylength = mybase.setDistance( l1.startPointData(), l3.result(), 50 )
-
# Creating the extrusion
mybox = model.addExtrusion( mypart, mybase.selectFace(), 50 )
-
# Creating a cylinder on a face of the box
-thisface = "Extrusion_1/LateralFace_2"
-thisxmin = "Extrusion_1/LateralFace_3|Extrusion_1/LateralFace_2"
-thisxmax = "Extrusion_1/LateralFace_2|Extrusion_1/LateralFace_1"
+thisface = "Extrusion_1_1/LateralFace_2"
+thisxmin = "Extrusion_1_1/LateralFace_3|Extrusion_1_1/LateralFace_2"
+thisxmax = "Extrusion_1_1/LateralFace_2|Extrusion_1_1/LateralFace_1"
thiszmin = "Sketch_1/Edge5_1"
-thiszmax = "Extrusion_1/LateralFace_2|Extrusion_1/TopFace_1"
+thiszmax = "Extrusion_1_1/LateralFace_2|Extrusion_1_1/ToFace_1"
mystand = model.addSketch( mypart, thisface )
+
c1 = mystand.addCircle( 0, 25, 5)
mystand.setDistance( c1.centerData(), thisxmin, 10 )
mystand.setDistance( c1.centerData(), thiszmax, 10 )
myboss = model.addExtrusion( mypart, mystand.selectFace(c1.result()), -5 )
-
# Subtracting the cylinder to the box
model.addSubtraction( mypart, mybox.result(), myboss.result() )