Difference between revisions of "Sketcher ConstrainPointOnObject"

From FreeCAD Documentation
Jump to navigation Jump to search
Line 7: Line 7:
 
|[[Sketcher_Workbench|Sketcher]]
 
|[[Sketcher_Workbench|Sketcher]]
 
|IconL=Constraint_PointOnPoint.svg
 
|IconL=Constraint_PointOnPoint.svg
 +
|IconR=Constraint_Vertical.svg
 
|IconC=Workbench_Sketcher.svg
 
|IconC=Workbench_Sketcher.svg
|IconR=Constraint_Vertical.svg
 
 
}}
 
}}
  
Line 14: Line 14:
 
{{GuiCommand
 
{{GuiCommand
 
|Name=Sketcher ConstrainPointOnObject
 
|Name=Sketcher ConstrainPointOnObject
 +
|MenuLocation=Sketch → Sketcher constraints → Constrain point onto object
 
|Workbenches=[[Sketcher_Workbench|Sketcher]]
 
|Workbenches=[[Sketcher_Workbench|Sketcher]]
|MenuLocation=Sketch → Sketcher constraints → Constrain point onto object
 
 
|Shortcut={{KEY|Shift}} + {{KEY|O}}
 
|Shortcut={{KEY|Shift}} + {{KEY|O}}
 
|SeeAlso=[[Sketcher_ConstrainCoincident|Sketcher Constrain Coincident]]
 
|SeeAlso=[[Sketcher_ConstrainCoincident|Sketcher Constrain Coincident]]
Line 49: Line 49:
  
 
<!--T:11-->
 
<!--T:11-->
How to identify the number that designates lines and points? Please refer to the scripting section of [[Sketcher ConstrainCoincident#Scripting|Sketcher ConstrainCoincident]].
+
How to identify the number that designates lines and points? Please refer to the scripting section of [[Sketcher_ConstrainCoincident#Scripting|Sketcher ConstrainCoincident]].
  
 
<!--T:12-->
 
<!--T:12-->
Line 57: Line 57:
 
|[[Sketcher_Workbench|Sketcher]]
 
|[[Sketcher_Workbench|Sketcher]]
 
|IconL=Constraint_PointOnPoint.svg
 
|IconL=Constraint_PointOnPoint.svg
 +
|IconR=Constraint_Vertical.svg
 
|IconC=Workbench_Sketcher.svg
 
|IconC=Workbench_Sketcher.svg
|IconR=Constraint_Vertical.svg
 
 
}}
 
}}
  

Revision as of 19:49, 2 December 2020

Other languages:
Deutsch • ‎English • ‎español • ‎français • ‎italiano • ‎polski • ‎português • ‎português do Brasil • ‎română • ‎svenska • ‎čeština • ‎русский
Arrow-left.svg Previous: Constraint PointOnPoint.svg Coincident
Next: Vertical Constraint Vertical.svg Arrow-right.svg

Sketcher ConstrainPointOnObject.svg Sketcher ConstrainPointOnObject

Menu location
Sketch → Sketcher constraints → Constrain point onto object
Workbenches
Sketcher
Default shortcut
Shift + O
Introduced in version
-
See also
Sketcher Constrain Coincident


Description

Affixes a point onto another object such as a line, arc, or sketch axis.

Usage

  1. Select the point you want to affix onto a line/arc/etc. (Result: Once selected the point will become green).
  2. Select the line you want affixed onto the point you have just selected (Result: Once selected the line becomes green).
  3. Invoke the Constrain point onto object tool using several methods:
    • Press the Sketcher ConstrainPointOnObject.svg Point on object button in the toolbar.
    • Use the Shift + O keyboard shortcut.
    • Use the Sketch → Sketcher constraints → Constrain point onto object entry in the top menu.

Note: The order you select the line and point does not matter. The point will always move to line. In other words, the line remains fixed.

Scripting

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 onto the LineFixed (the line which is fixed).
  • PointOfLineMoving is the number of the vertex of line LineMoving, that has to be moved onto the LineFixed.
  • LinedFixed is the number of the line to be affixed onto the point PointOfLineMoving.

How to identify the number that designates lines and points? Please refer to the scripting section of Sketcher ConstrainCoincident.

Arrow-left.svg Previous: Constraint PointOnPoint.svg Coincident
Next: Vertical Constraint Vertical.svg Arrow-right.svg