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).
Description: Creates curves (line segment and arc).
Result: GEOM_Object.
TUI Command: geompy.MakeSketcher(Command, LWP), where Command is a string containing the coordinates of points in the local working plane, LWP is 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 VX, DY.
5. Parameters of an element (for segment : length or target X or Y coordinate value, for arc : radius and angle).
Dialog Box:
Example: