8 Sketch plug-in includes features for creation of 2D shapes.
10 The sketch creation takes the following steps:
12 - definition of sketch plane;
13 - creation of sketch objects from scratch;
14 - generation of sketch objects via operations on the existing operations;
15 - definition of constraints.
17 Sketch can be created in the active part or in a partset (if there is no active part).
21 #. select in the Main Menu *Sketch - > Sketch* item or
22 #. click **Sketch** button in Sketch toolbar:
24 .. image:: images/SketchButton.png
30 First define a plane for the sketch:
32 .. image:: images/PlaneDefinition.png
35 - specify plane size (equal to 25 in the example above);
36 - select the appropriate plane in the viewer.
38 Note that coordinate planes will be suggested for selection if no convenient objects for plane selection are displayed in the viewer:
40 .. image:: images/CoordinatePlanes.png
43 After the plane for sketch is selected, the following property panel will be opened:
45 .. image:: images/SketchPanel.png
51 - **Reversed** check box - allows reversing the sketch plane normal;
52 - **Set plane view** button - switches the viewer to the top view for the sketch plane;
53 - **Show geometrical constraints** check box - displays/hides geometrical constraints:
54 - **Show dimensional constraints** check box - displays/hides dimensional constraints;
55 - **Show existing expressions** check box - displays/hides expressions.
57 Now it is possible to:
59 - create :ref:`sketch objects <sketch_objects>`
60 - create :ref:`constraints <sketch_constraints>`
61 - perform :ref:`sketch operations <sketch_operations>`
63 To apply or cancel sketch creation use Apply and Cancel buttons from the
64 Sketch panel as well as equivalent buttons from Sketch toolbar.
66 The Result of operation will be a COMPOUND. In the object tree, Result node is located in
67 **Constructions** folder.
69 The Name is assigned automatically: **Sketch_1**, **Sketch_2**, ... both for Feature and Result.
71 **TUI Command**: *Sketch_1 = model.addSketch(PartOrPartSet, plane)*
73 **Arguments**: Part or PartSet + plane.
80 The plug-in includes the following features for creation of 2D objects:
91 .. _sketch_constraints:
96 Constraints are available and viewable during sketch creation or editing.
98 The goal of constraints creation is to fix sketch geometry, i.e. set degrees of freedom to zero.
100 If all degrees of freedom are eliminated, the sketch is fixed and displayed with green color.
102 .. image:: images/Sketch_fixed.png
108 If any degrees of freedom remain unsolved, the sketch is under-constrained and displayed with red color.
110 .. image:: images/Sketch_underconstrained.png
114 Underconstrained Sketch
116 The plug-in includes the following constraints:
122 horizontalDistFeature.rst
123 verticalDistFeature.rst
127 horizontalFeature.rst
131 perpendicularFeature.rst
133 coincedentFeature.rst
138 .. _sketch_operations:
142 Operations modify existing features of the sketch or create new ones by copying them.
144 The plug-in includes the following operations:
152 projectionFeature.rst
153 intersectionFeature.rst
155 translationFeature.rst