# Sketcher

Sketcher allows to create curves of 2 types: line segment and arc. The curve is created from the current point (center of coordinates when the sketcher is started). The end of the curve is defined by means of "destination", which can be a destination point (for segment only) or destination direction coupled with length of a segment or angle and radius of an arc.

Sketcher is able to create planar curves only. Therefore, it is necessary to select a working plane before starting a sketch (by default, XOY plane is used). Sketcher creates curves lying in the current working plane (New Entity -> Basic -> Working Plane).

This functionality is available from the main menu via New Entity / Sketch.

The Result of the operation will be a GEOM_Object.

TUI Command: geompy.MakeSketcher(Command, WorkingPlane)

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.

Command is a string, defining the sketcher by the coordinates of points in the local working plane.

WorkingPlane is a planar face of the working plane (a list of 9 doubles which are coordinates of OZ and OX of the local working plane).

Arguments:

1. Element type (segment or arc).

2. Destination type (point or direction).

3. Destination point by means of:

- absolute coordinates X,Y;

- relative coordinates DX, DY (with respect to the current point);

- selection of an existing point.

4. Destination direction by means of:

- angle between the new segment and the previous one;

- perpendicular to the previous segment (same as previous, but angle is predefined and is equal to 90 degrees);

- tangent to the previous segment;

- vector components DX, DY.

5. Parameters of an element (for segment : length or target X or Y coordinate value, for arc : radius and angle).

Dialog Box:

Example:

Our TUI Scripts provide you with useful examples of the use of Sketcher.