1from salome.shaper import model
2
3model.begin()
4partSet = model.moduleDocument()
5Part_1 = model.addPart(partSet)
6Part_1_doc = Part_1.document()
7
8Point_2 = model.addPoint(Part_1_doc, 10, 10, -10)
9Point_3 = model.addPoint(Part_1_doc, 70, 70, 50)
10Polyline_1 = model.addPolyline3D(Part_1_doc, [model.selection("VERTEX", "Point_1"), model.selection("VERTEX", "Point_2")], False)
11
12Sketch_1 = model.addSketch(Part_1_doc, model.defaultPlane("XOY"))
13SketchIntersectionPoint_1 = Sketch_1.addIntersectionPoint(model.selection("EDGE", "Polyline_1_1/Edge_1"), True)
14
15model.do()
16model.end()