SketchConstraintCoincidence_17 = Sketch_2.setCoincident(SketchArc_9.endPoint(), SketchLine_11.endPoint())
model.do()
Revolution_1 = model.addRevolution(Part_1_doc, [model.selection("FACE", "Sketch_2/Face-SketchArc_9_2f-SketchLine_11f")], model.selection("EDGE", "PartSet/OZ"), 360, 0)
-Boolean_1 = model.addCut(Part_1_doc, [model.selection("SOLID", "Extrusion_1_1")], [model.selection("SOLID", "Revolution_1_1")])
+Cut_1 = model.addCut(Part_1_doc, [model.selection("SOLID", "Extrusion_1_1")], [model.selection("SOLID", "Revolution_1_1")])
Sketch_3 = model.addSketch(Part_1_doc, model.selection("FACE", "PartSet/YOZ"))
SketchLine_12 = Sketch_3.addLine(0, 106, -4, 106)
SketchLine_13 = Sketch_3.addLine(-4, 106, -4, 67.34428877022477)
SketchConstraintCoincidence_22 = Sketch_3.setCoincident(SketchArc_10.endPoint(), SketchLine_16.result())
model.do()
Extrusion_2 = model.addExtrusion(Part_1_doc, [model.selection("WIRE", "Sketch_3/Wire-SketchLine_12f-SketchLine_13f-SketchLine_17r-SketchLine_18r-SketchArc_10_2f")], model.selection(), "172/2", "172/2")
-Boolean_2 = model.addCut(Part_1_doc, [model.selection("SOLID", "Boolean_1_1")], [model.selection("SOLID", "Extrusion_2_1")])
+Cut_2 = model.addCut(Part_1_doc, [model.selection("SOLID", "Cut_1_1")], [model.selection("SOLID", "Extrusion_2_1")])
Sketch_4 = model.addSketch(Part_1_doc, model.selection("FACE", "Extrusion_1_1/Generated_Face_10"))
SketchLine_18 = Sketch_4.addLine(-65, 16, -65, -16)
SketchLine_18.setName("SketchLine_19")
model.do()
Extrusion_3 = model.addExtrusion(Part_1_doc, [model.selection("WIRE", "Sketch_4/Wire-SketchArc_11_2f-SketchArc_12_2f-SketchLine_21f-SketchLine_22r")], model.selection(), model.selection(), 0, model.selection("FACE", "Extrusion_1_1/Generated_Face_12"), 0)
MultiTranslation_1 = model.addMultiTranslation(Part_1_doc, [model.selection("SOLID", "Extrusion_3_1")], model.selection("EDGE", "Extrusion_1_1/To_Face_1&Extrusion_1_1/Generated_Face_12"), -130, 2)
-Boolean_3 = model.addCut(Part_1_doc, [model.selection("SOLID", "Boolean_2_1")], [model.selection("COMPOUND", "LinearCopy_1_1")])
+Cut_3 = model.addCut(Part_1_doc, [model.selection("SOLID", "Cut_2_1")], [model.selection("COMPOUND", "LinearCopy_1_1")])
model.do()
# Test reexecution after parameter change
Parameter_thick.setValue(20)
Parameter_length.setValue(200)
model.do()
-model.testResultsVolumes(Boolean_3, [409550.515091864974237978458404541])
+model.testResultsVolumes(Cut_3, [409550.515091864974237978458404541])
Parameter_dint.setValue(58)
Parameter_thick.setValue(16)
Parameter_length.setValue(172)
from GeomAPI import GeomAPI_Shape
-model.testNbResults(Boolean_3, 1)
-model.testNbSubResults(Boolean_3, [0])
-model.testNbSubShapes(Boolean_3, GeomAPI_Shape.SOLID, [1])
-model.testNbSubShapes(Boolean_3, GeomAPI_Shape.FACE, [32])
-model.testNbSubShapes(Boolean_3, GeomAPI_Shape.EDGE, [192])
-model.testNbSubShapes(Boolean_3, GeomAPI_Shape.VERTEX, [384])
-model.testResultsVolumes(Boolean_3, [307084.534467286430299282073974609])
+model.testNbResults(Cut_3, 1)
+model.testNbSubResults(Cut_3, [0])
+model.testNbSubShapes(Cut_3, GeomAPI_Shape.SOLID, [1])
+model.testNbSubShapes(Cut_3, GeomAPI_Shape.FACE, [32])
+model.testNbSubShapes(Cut_3, GeomAPI_Shape.EDGE, [192])
+model.testNbSubShapes(Cut_3, GeomAPI_Shape.VERTEX, [384])
+model.testResultsVolumes(Cut_3, [307084.534467286430299282073974609])
assert(model.checkPythonDump())