Salome HOME
e54a6d4c5ee9fc8446d368783db5403fdb90093f
[modules/shaper.git] / src / SketchPlugin / doc / examples / vertical.py
1 # -*- coding: utf-8 -*-
2
3 from salome.shaper import model
4
5 model.begin()
6 partSet = model.moduleDocument()
7 Part_1 = model.addPart(partSet)
8 Part_1_doc = Part_1.document()
9 Sketch_1 = model.addSketch(Part_1_doc, model.defaultPlane("XOY"))
10 SketchLine_1 = Sketch_1.addLine(15.5, 14.5, 71.0, 62.8)
11 SketchConstraintVertical_1 = Sketch_1.setVertical(SketchLine_1.result())
12 model.do()
13 model.end()