Box_15 = model.addBox(Part_1_doc, 10, 10, 10)
Box_16 = model.addBox(Part_1_doc, 10, 10, 10)
Box_17 = model.addBox(Part_1_doc, 10, 10, 10)
+Box_18 = model.addBox(Part_1_doc, 10, 10, 10)
+Box_19 = model.addBox(Part_1_doc, 10, 10, 10)
+Box_20 = model.addBox(Part_1_doc, 10, 10, 10)
# Points
Point_1 = model.addPoint(Part_1_doc, -10, -10, -10)
# Symmetries
-Symmetry_1 = model.addMirror(Part_1_doc, [model.selection("SOLID", "Box_1_1")], model.selection("VERTEX", "PartSet/Origin"))
-Symmetry_2 = model.addMirror(Part_1_doc, [model.selection("SOLID", "Box_2_1")], model.selection("VERTEX", "Point_1"))
-Symmetry_3 = model.addMirror(Part_1_doc, [model.selection("SOLID", "Box_3_1")], model.selection("VERTEX", "Box_3_1/Front&Box_3_1/Right&Box_3_1/Top"))
-Symmetry_4 = model.addMirror(Part_1_doc, [model.selection("SOLID", "Box_4_1")], model.selection("VERTEX", "Sketch_1/Vertex-SketchLine_1e"))
-Symmetry_5 = model.addMirror(Part_1_doc, [model.selection("SOLID", "Box_5_1")], model.selection("VERTEX", "Vertex_1_1"))
-Symmetry_6 = model.addMirror(Part_1_doc, [model.selection("SOLID", "Box_6_1")], model.selection("VERTEX", "InvalidName"))
-
-Symmetry_7 = model.addMirror(Part_1_doc, [model.selection("SOLID", "Box_7_1")], model.selection("EDGE", "PartSet/OZ"))
-Symmetry_8 = model.addMirror(Part_1_doc, [model.selection("SOLID", "Box_8_1")], model.selection("EDGE", "Axis_1"))
-Symmetry_9 = model.addMirror(Part_1_doc, [model.selection("SOLID", "Box_9_1")], model.selection("EDGE", "Box_9_1/Front&Box_9_1/Top"))
-Symmetry_10 = model.addMirror(Part_1_doc, [model.selection("SOLID", "Box_10_1")], model.selection("EDGE", "Sketch_1/Edge-SketchLine_1"))
-Symmetry_11 = model.addMirror(Part_1_doc, [model.selection("SOLID", "Box_11_1")], model.selection("EDGE", "Edge_1_1"))
-Symmetry_12 = model.addMirror(Part_1_doc, [model.selection("SOLID", "Box_12_1")], model.selection("EDGE", "InvalidName"))
-
-Symmetry_13 = model.addMirror(Part_1_doc, [model.selection("SOLID", "Box_13_1")], model.selection("FACE", "PartSet/XOY"))
-Symmetry_14 = model.addMirror(Part_1_doc, [model.selection("SOLID", "Box_14_1")], model.selection("FACE", "Plane_1"))
-Symmetry_15 = model.addMirror(Part_1_doc, [model.selection("SOLID", "Box_15_1")], model.selection("FACE", "Box_15_1/Front"))
-Symmetry_16 = model.addMirror(Part_1_doc, [model.selection("SOLID", "Box_16_1")], model.selection("FACE", "Face_1_1"))
-Symmetry_17 = model.addMirror(Part_1_doc, [model.selection("SOLID", "Box_17_1")], model.selection("FACE", "InvalidName"))
-Symmetry_18 = model.addMirror(Part_1_doc, [model.selection("SHELL", "Extrusion_1_1")], model.selection("FACE", "Plane_2"))
+Symmetry_1 = model.addSymmetry(Part_1_doc, [model.selection("SOLID", "Box_1_1")], model.selection("VERTEX", "PartSet/Origin"))
+Symmetry_2 = model.addSymmetry(Part_1_doc, [model.selection("SOLID", "Box_2_1")], model.selection("VERTEX", "Point_1"))
+Symmetry_3 = model.addSymmetry(Part_1_doc, [model.selection("SOLID", "Box_3_1")], model.selection("VERTEX", "Box_3_1/Front&Box_3_1/Right&Box_3_1/Top"))
+Symmetry_4 = model.addSymmetry(Part_1_doc, [model.selection("SOLID", "Box_4_1")], model.selection("VERTEX", "Sketch_1/Vertex-SketchLine_1e"))
+Symmetry_5 = model.addSymmetry(Part_1_doc, [model.selection("SOLID", "Box_5_1")], model.selection("VERTEX", "Vertex_1_1"))
+Symmetry_6 = model.addSymmetry(Part_1_doc, [model.selection("SOLID", "Box_6_1")], model.selection("VERTEX", "InvalidName"))
+Symmetry_7 = model.addSymmetry(Part_1_doc, [model.selection("SOLID", "Box_7_1")], model.selection("VERTEX", "PartSet/Origin"), False)
+
+Symmetry_8 = model.addSymmetry(Part_1_doc, [model.selection("SOLID", "Box_8_1")], model.selection("EDGE", "PartSet/OZ"))
+Symmetry_9 = model.addSymmetry(Part_1_doc, [model.selection("SOLID", "Box_9_1")], model.selection("EDGE", "Axis_1"))
+Symmetry_10 = model.addSymmetry(Part_1_doc, [model.selection("SOLID", "Box_10_1")], model.selection("EDGE", "Box_9_1/Front&Box_9_1/Top"))
+Symmetry_11 = model.addSymmetry(Part_1_doc, [model.selection("SOLID", "Box_11_1")], model.selection("EDGE", "Sketch_1/Edge-SketchLine_1"))
+Symmetry_12 = model.addSymmetry(Part_1_doc, [model.selection("SOLID", "Box_12_1")], model.selection("EDGE", "Edge_1_1"))
+Symmetry_13 = model.addSymmetry(Part_1_doc, [model.selection("SOLID", "Box_13_1")], model.selection("EDGE", "InvalidName"))
+Symmetry_14 = model.addSymmetry(Part_1_doc, [model.selection("SOLID", "Box_14_1")], model.selection("EDGE", "PartSet/OZ"), False)
+
+Symmetry_15 = model.addSymmetry(Part_1_doc, [model.selection("SOLID", "Box_15_1")], model.selection("FACE", "PartSet/XOY"))
+Symmetry_16 = model.addSymmetry(Part_1_doc, [model.selection("SOLID", "Box_16_1")], model.selection("FACE", "Plane_1"))
+Symmetry_17 = model.addSymmetry(Part_1_doc, [model.selection("SOLID", "Box_17_1")], model.selection("FACE", "Box_15_1/Front"))
+Symmetry_18 = model.addSymmetry(Part_1_doc, [model.selection("SOLID", "Box_18_1")], model.selection("FACE", "Face_1_1"))
+Symmetry_19 = model.addSymmetry(Part_1_doc, [model.selection("SOLID", "Box_19_1")], model.selection("FACE", "InvalidName"))
+Symmetry_20 = model.addSymmetry(Part_1_doc, [model.selection("SOLID", "Box_20_1")], model.selection("FACE", "PartSet/XOY"), False)
+Symmetry_21 = model.addSymmetry(Part_1_doc, [model.selection("SHELL", "Extrusion_1_1")], model.selection("FACE", "Plane_2"))
model.do()
model.end()
model.testHaveNamingFaces(Symmetry_5, model, Part_1_doc)
model.testNbResults(Symmetry_7, 1)
-model.testNbSubResults(Symmetry_7, [2])
-model.testNbSubShapes(Symmetry_7, GeomAPI_Shape.SOLID, [2])
-model.testNbSubShapes(Symmetry_7, GeomAPI_Shape.FACE, [12])
+model.testNbSubResults(Symmetry_7, [0])
+model.testNbSubShapes(Symmetry_7, GeomAPI_Shape.SOLID, [1])
+model.testNbSubShapes(Symmetry_7, GeomAPI_Shape.FACE, [6])
model.testHaveNamingFaces(Symmetry_7, model, Part_1_doc)
model.testNbResults(Symmetry_8, 1)
model.testNbSubShapes(Symmetry_11, GeomAPI_Shape.FACE, [12])
model.testHaveNamingFaces(Symmetry_11, model, Part_1_doc)
-model.testNbResults(Symmetry_13, 1)
-model.testNbSubResults(Symmetry_13, [2])
-model.testNbSubShapes(Symmetry_13, GeomAPI_Shape.SOLID, [2])
-model.testNbSubShapes(Symmetry_13, GeomAPI_Shape.FACE, [12])
-model.testHaveNamingFaces(Symmetry_13, model, Part_1_doc)
+model.testNbResults(Symmetry_12, 1)
+model.testNbSubResults(Symmetry_12, [2])
+model.testNbSubShapes(Symmetry_12, GeomAPI_Shape.SOLID, [2])
+model.testNbSubShapes(Symmetry_12, GeomAPI_Shape.FACE, [12])
+model.testHaveNamingFaces(Symmetry_12, model, Part_1_doc)
model.testNbResults(Symmetry_14, 1)
-model.testNbSubResults(Symmetry_14, [2])
-model.testNbSubShapes(Symmetry_14, GeomAPI_Shape.SOLID, [2])
-model.testNbSubShapes(Symmetry_14, GeomAPI_Shape.FACE, [12])
+model.testNbSubResults(Symmetry_14, [0])
+model.testNbSubShapes(Symmetry_14, GeomAPI_Shape.SOLID, [1])
+model.testNbSubShapes(Symmetry_14, GeomAPI_Shape.FACE, [6])
model.testHaveNamingFaces(Symmetry_14, model, Part_1_doc)
model.testNbResults(Symmetry_15, 1)
model.testNbSubShapes(Symmetry_16, GeomAPI_Shape.FACE, [12])
model.testHaveNamingFaces(Symmetry_16, model, Part_1_doc)
+model.testNbResults(Symmetry_17, 1)
+model.testNbSubResults(Symmetry_17, [2])
+model.testNbSubShapes(Symmetry_17, GeomAPI_Shape.SOLID, [2])
+model.testNbSubShapes(Symmetry_17, GeomAPI_Shape.FACE, [12])
+model.testHaveNamingFaces(Symmetry_17, model, Part_1_doc)
+
+model.testNbResults(Symmetry_18, 1)
+model.testNbSubResults(Symmetry_18, [2])
+model.testNbSubShapes(Symmetry_18, GeomAPI_Shape.SOLID, [2])
+model.testNbSubShapes(Symmetry_18, GeomAPI_Shape.FACE, [12])
+model.testHaveNamingFaces(Symmetry_18, model, Part_1_doc)
+
+model.testNbResults(Symmetry_20, 1)
+model.testNbSubResults(Symmetry_20, [0])
+model.testNbSubShapes(Symmetry_20, GeomAPI_Shape.SOLID, [1])
+model.testNbSubShapes(Symmetry_20, GeomAPI_Shape.FACE, [6])
+model.testHaveNamingFaces(Symmetry_20, model, Part_1_doc)
+
model.testNbResults(Symmetry_6, 0)
assert(Symmetry_6.feature().error() == 'Attribute "point_object" is not initialized.')
-model.testNbResults(Symmetry_12, 0)
-assert(Symmetry_12.feature().error() == 'Attribute "axis_object" is not initialized.')
+model.testNbResults(Symmetry_13, 0)
+assert(Symmetry_13.feature().error() == 'Attribute "axis_object" is not initialized.')
-model.testNbResults(Symmetry_17, 0)
-assert(Symmetry_17.feature().error() == 'Attribute "plane_object" is not initialized.')
+model.testNbResults(Symmetry_19, 0)
+assert(Symmetry_19.feature().error() == 'Attribute "plane_object" is not initialized.')
-model.testNbResults(Symmetry_18, 1)
-model.testNbSubResults(Symmetry_18, [2])
-model.testNbSubShapes(Symmetry_18, GeomAPI_Shape.SOLID, [0])
-model.testNbSubShapes(Symmetry_18, GeomAPI_Shape.SHELL, [2])
-model.testNbSubShapes(Symmetry_18, GeomAPI_Shape.FACE, [10])
-model.testHaveNamingFaces(Symmetry_18, model, Part_1_doc)
+model.testNbResults(Symmetry_21, 1)
+model.testNbSubResults(Symmetry_21, [2])
+model.testNbSubShapes(Symmetry_21, GeomAPI_Shape.SOLID, [0])
+model.testNbSubShapes(Symmetry_21, GeomAPI_Shape.SHELL, [2])
+model.testNbSubShapes(Symmetry_21, GeomAPI_Shape.FACE, [10])
+model.testHaveNamingFaces(Symmetry_21, model, Part_1_doc)