1 Shaper textual interface documentation
2 ======================================
4 Shaper provides two different textual interfaces that allows you to create
5 models through python scripts:
7 * a "direct" API, which allows you to create geometrical objects
8 without any parametric considerations
10 * a "parametric" API, which is very close to what is done
11 in the graphical interface and allows you to recalculate a model
12 when a parameter is changed
17 This API is implemented in the model Python package. A script written
18 with the parametric API will typically begin with a code like below:
24 >>> partset = model.moduleDocument()
25 >>> part = model.addPart(partset).document()
26 >>> plane = model.defaultPlane("XOY")
27 >>> sketch = model.addSketch(part, plane)
28 >>> line = sketch.addLine(0, 0, 0, 1)