/*! \page create_sketcher_page 2D Sketcher The 2D Sketcher allows you to draw 2D shapes on a working plane. You can create sketches of two types: The \b Result is a \b Wire \n Example: \image html sketch_example.png To create a 2D Sketch:
  1. In the main menu select New Entity -> Basic -> 2D Sketch or click on \image html sketch.png
  2. Select the \b plane or the planar face on which to create the sketch. \note By default the sketch is created on the XOY plane of the global coordinate system. If Local Coordinate Systems have been created in the study they appear in the combo-box and can be selected as a reference coordinate system.
  3. Choose a \b segment or an \b arc element to start a \b profile or choose \b rectangle to draw a rectangle. \n If you draw a \b profile:
  4. Select a start point. By default the start point of the curve is located at the point of origin of the reference coordinate system.
  5. Create curve portions and click on \b Apply after each step.
  6. Select either \b Close or Sketch Closure if you want to close the profile before closing the window.
\n To create a \b Segment:
  1. In the Element Type part of the dialog box select: \image html line_icon.png
  2. You can define the segment by either its end point or \b direction and \b length. The direction is defined relatively to the tangent at the last point of the sketch. It can be:
\n To create an \b Arc:
  1. In the Element Type part of the dialog box select \image html arc_icon.png
  2. You can define the segment by either its end point or \b direction \b radius and \b angle.
\note For the first segment or arc of the sketch the reference direction is the X direction of the reference coordinate system. \n Dialog Box: \image html sketcher_dlg.png \n Arguments:
  1. Coordinate system (Existing Local CS or Global CS can be selected)
  2. A plane or a planar face to define a new Local Coordinate System
  3. Element type (segment, arc or rectangle).
  4. Destination type (point or direction).
  5. Destination point by means of:
  6. Destination direction by means of:
  7. Parameters of an element (for segment : length or target X or Y coordinate value, for arc : radius, angle or center coordinates).
\b Buttons: "Restore" button orientates the viewer correspondingly to the chosen working plane and fits the scene to show all its objects. \n "Close" button applies the wire, only the red part will be built. \n "Sketch Closure" will close the Sketch by a straight line from the last red part and apply it. \n To draw a \b rectangle:
  1. In the Element Type part of the dialog box select \image html rectangle_icon.png
  2. Draw a rectangle with the mouse directly in the view or fill in the coordinates of two opposite vertices of the rectangle.
  3. Apply and Close
\n Dialog Box: \image html sketcher_dlg2.png \n Arguments:
  1. Coordinate system (Existing Local CS or Global CS can be selected)
  2. A plane or a planar face to define a new Local Coordinate System
  3. Element type (segment, arc or rectangle).
  4. The X,Y coordinates of two opposite vertices of the rectangle
\n TUI Command: geompy.MakeSketcherOnPlane(Command, WorkingPlane) \n This algorithm creates a sketcher (wire or face), following the textual description, passed through the Command argument. The edges of the resulting wire or face will be arcs of circles and/or linear segments. \n \em Command is a string, defining the sketcher by the coordinates of points in the current LCS. \n WorkingPlane can be a Local CS, a plane, or a planar face. \n Another way to create the 2D Sketcher in TUI is using Sketcher2D interface. TUI Command: sk = geompy.Sketcher2D() Returns an instance of Sketcher2D interface sk. Use the below examples and see the \ref gsketcher.Sketcher2D "Sketcher2D" interface documentation for more information. Our TUI Scripts provide you with useful examples of the use of \ref tui_sketcher_page "2D Sketcher". */