|
Menu location |
---|
Sketch → Constraints → Point-On-Object Constraint |
Workbenches |
Sketcher |
Default shortcut |
O |
Introduced in version |
- |
See also |
Sketcher ConstrainCoincidentUnified, Sketcher ConstrainCoincident |
The Sketcher ConstrainPointOnObject tool fixes points on edges or axes. Lines are treated as infinite, and open curves are virtually extended as well.
introduced in 1.0: This tool is replaced by the Sketcher ConstrainCoincidentUnified tool if the Unify coincident and point-on-object constraints option is selected in the preferences.
See also: Drawing aids.
The constraint can be created from macros and from the Python console by using the following command:
Sketch.addConstraint(Sketcher.Constraint('PointOnObject',LineMoving,PointOfLineMoving,LineFixed))
Sketch
is a sketch object.LineMoving
is the number that designates the line, which contains the point that has to be moved on the LineFixed
(the line which is fixed).PointOfLineMoving
is the number of the vertex of line LineMoving
, that has to be moved on the LineFixed
.LinedFixed
is the number of the line to be affixed on the point PointOfLineMoving
.The Sketcher scripting page explains how to identify the numbers that designate lines and points.