GuiCommand: Name: Sketcher ConstrainCoincident MenuLocation: Sketch , Sketcher constraints , Constrain coincident Workbenches: Sketcher_Workbench Shortcut: C SeeAlso: Sketcher_ConstrainCoincidentUnified, Sketcher_ConstrainPointOnObject
Sketcher ConstrainCoincident
Description
The Sketcher ConstrainCoincident tool creates a coincident constraint between points, or ((v0.21) ) a concentric constraint between circles, arcs and/or ellipses (by making their centers coincident).
(v1.0)
: This tool is replaced by the Sketcher ConstrainCoincidentUnified tool if the Unify Coincident and PointOnObject option is selected in the preferences.
Usage
See also: Drawing aids.
Continue mode
- Make sure there is no selection.
- There are several ways to invoke the tool:
- Press the
Constrain coincident button.
- Select the Sketch → Sketcher constraints →
Constrain coincident option from the menu.
- Use the keyboard shortcut: C.
- Press the
- The cursor changes to a cross with the tool icon.
- Do one of the following:
- Select two points.
- Select two edges of circles, arcs, ellipses or arcs of ellipses.
- A constraint is added.
- Optionally keep creating constraints.
- To finish, right-click or press Esc, or start another geometry or constraint creation tool.
Run-once mode
- Do one of the following:
- Select two or more points.
- Select two or more edges of circles, arcs, ellipses or arcs of ellipses.
- Invoke the tool as explained above.
- Depending on the selection one or more constraints are added.
Notes
- (v1.0) : Points with Coincident constraints are marked with the Constraint symbols color.
Scripting
The constraint can be created from macros and from the Python console by using the following command:
where :
-
Sketch
is a sketch object -
LineFixed
is the number of the line, that will not move by applying the constraint -
PointOfLineFixed
indicates which vertex ofLineFixed
has to fulfill the constraint -
LineMoving
is the number of the line, that will move by applying the constraint -
PointOfLineMoving
indicates which vertex ofLineMoving
has to fulfill the constraint
As the names LineFixed
and LineMoving
indicate, if both constrained vertices are free to move in any direction, the first one (first to be selected in the Gui) will remain fixed and the other one will move. In the presence of existing constraints, however, both edges may move.
The Sketcher scripting page explains the values which can be used for LineFixed
, PointOfLineFixed
, LineMoving
and PointOfLineMoving
, and contains further examples on how to create constraints from Python scripts.
⏵ documentation index > Sketcher > Sketcher ConstrainCoincident
This page is retrieved from https://github.com/FreeCAD/FreeCAD-documentation/blob/main/wiki/Sketcher_ConstrainCoincident.md