]> SALOME platform Git repositories - modules/shaper.git/blob - src/SketchPlugin/doc/examples/horizontal.py
Salome HOME
Merge branch HELP_DOCUMENTATION_EDITING into master.
[modules/shaper.git] / src / SketchPlugin / doc / examples / horizontal.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(14.5, 16.0, 71.0, 62.0)
11 SketchConstraintHorizontal_1 = Sketch_1.setHorizontal(SketchLine_1.result())
12 model.do()
13 model.end()