The 2D Sketcher allows you to draw 2D shapes on a working plane. You can create sketches of two types:
Profile made of connected curves of 2 types: line segments and arcs.
or
The Result is a Wire
Example:
To create a 2D Sketch:
In the main menu select New Entity -> Basic -> 2D Sketch or click on
Choose a segment or an arc element to start a profile or choose rectangle to draw a rectangle.
If you draw a profile:
Select a start point. By default the start point of the curve is located at the point of origin of the reference coordinate system.
Create curve portions and click on Apply after each step.
To create a Segment:
In the Element Type part of the dialog box select:
You can define the segment by either its end point or direction and length. The direction is defined relatively to the tangent at the last point of the sketch. It can be:
To create an Arc:
In the Element Type part of the dialog box select
You can define the segment by either its end point or direction radius and angle.
In case of an end point the arc can be built in three different ways:
The direction is defined relatively to the tangent at the last point of the sketch. It can be:
Dialog Box:
Arguments:
Buttons:
"Restore" button orientates the viewer correspondingly to the chosen working plane and fits the scene to show all its objects.
"Close" button applies the wire, only the red part will be built.
"Sketch Closure" will close the Sketch by a straight line from the last red part and apply it.
To draw a rectangle:
In the Element Type part of the dialog box select
Dialog Box:
Arguments:
TUI Command: geompy.MakeSketcherOnPlane(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 current LCS.
WorkingPlane can be a Local CS, a plane, or a planar face.
Our TUI Scripts provide you with useful examples of the use of Sketcher.