Sketcher ConstrainPointOnObject/es: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
(Updating to match new version of source page)
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<languages/>
<languages/>

{{Docnav
{{Docnav
|[[Sketcher_ConstrainCoincident|Coincident]]
|[[Sketcher_ConstrainCoincident|Coincident]]
|[[Sketcher_ConstrainVertical|Vertical]]
|[[Sketcher_ConstrainHorVer|Horizontal/Vertical]]
|[[Sketcher_Workbench|Sketcher]]
|[[Sketcher_Workbench|Sketcher]]
|IconL=Sketcher_ConstrainCoincident.svg
|IconL=Sketcher_ConstrainCoincident.svg
|IconR=Sketcher_ConstrainVertical.svg
|IconR=Sketcher_ConstrainHorVer.svg
|IconC=Workbench_Sketcher.svg
|IconC=Workbench_Sketcher.svg
}}
}}


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
{{GuiCommand/es
{{GuiCommand/es|Name=Constraint PointOnObject|Workbenches=[[Sketcher Workbench/es|Croquizador]], [[PartDesign Workbench/es|Diseño de Piezas]]|MenuLocation=Croquizador → Restricciones del Croquizador → Punto en objeto|SeeAlso=[[Constraint PointOnPoint/es|Coincidente]]}}
|Name=Constraint PointOnObject
|Name/es=Constraint PointOnObject
|Workbenches=[[Sketcher Workbench/es|Croquizador]], [[PartDesign Workbench/es|Diseño de Piezas]]
|MenuLocation=Croquizador → Restricciones del Croquizador → Punto en objeto
|SeeAlso=[[Sketcher_ConstrainCoincident/es|Coincidente]]
}}
</div>
</div>


Line 19: Line 26:
</div>
</div>


{{Version|0.22}}: This command is replaced by the [[Sketcher_ConstrainCoincidentUnified|Sketcher ConstrainCoincidentUnified]] command if the {{MenuCommand|Unify Coincident and PointOnObject}} option is selected in the [[Sketcher_Preferences#General|Sketcher Preferences]].

<span id="Usage"></span>
<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
====Usage====
====Usage====
</div>
</div>


# Optionally do one of the following:
# Select the point you want to affix onto a line/arc/etc. ('''Result:''' Once selected the point will become green).
# Select the line you want affixed onto the point you have just selected ('''Result:''' Once selected the line becomes green).
#* Select a single point and a single edge (in any order).
#* Select several points and a single edge (idem).
# Invoke the '''Constrain point onto object''' tool using several methods:
#* Select a single point and several edges (idem).
#* Press the {{Button|[[File:Sketcher_ConstrainPointOnObject.svg|16px]] [[Sketcher_ConstrainPointOnObject|Point on object]]}} button in the toolbar.
# There are several ways to invoke the command:
#* Use the {{KEY|Shift}} + {{KEY|O}} keyboard shortcut.
#* Use the {{MenuCommand|Sketch → Sketcher constraints → Constrain point onto object}} entry in the top menu.
#* Press the {{Button|[[Image:Sketcher_ConstrainPointOnObject.svg|16px]] [[Sketcher_ConstrainPointOnObject|Constrain point onto object]]}} button.
#* Select the {{MenuCommand|Sketch → Sketcher constraints → [[Image:Sketcher_ConstrainPointOnObject.svg|16px]] Constrain point onto object}} option from the menu.

#* Use the keyboard shortcut: {{KEY|O}}.
'''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.
# To indicate that the command has been activated the cursor changes to a white cross with the command icon.
# Optionally keep selecting elements. You can only select two elements at a time now.
# To finish the command press {{KEY|Esc}} or the right mouse button, or start a another constraints or geometries command.


==Scripting==
==Scripting==


The constraint can be created from macros and from the python console by using the following command:
The constraint can be created from [[Macros|macros]] and from the [[Python|Python]] console by using the following command:


{{incode|Sketch.addConstraint(Sketcher.Constraint('PointOnObject',LineMoving,PointOfLineMoving,LineFixed))}}
{{incode|Sketch.addConstraint(Sketcher.Constraint('PointOnObject',LineMoving,PointOfLineMoving,LineFixed))}}
Line 48: Line 61:
{{Docnav
{{Docnav
|[[Sketcher_ConstrainCoincident|Coincident]]
|[[Sketcher_ConstrainCoincident|Coincident]]
|[[Sketcher_ConstrainVertical|Vertical]]
|[[Sketcher_ConstrainHorVer|Horizontal/Vertical]]
|[[Sketcher_Workbench|Sketcher]]
|[[Sketcher_Workbench|Sketcher]]
|IconL=Sketcher_ConstrainCoincident.svg
|IconL=Sketcher_ConstrainCoincident.svg
|IconR=Sketcher_ConstrainVertical.svg
|IconR=Sketcher_ConstrainHorVer.svg
|IconC=Workbench_Sketcher.svg
|IconC=Workbench_Sketcher.svg
}}
}}


{{Sketcher Tools navi{{#translation:}}}}
{{Sketcher_Tools_navi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{clear}}

Latest revision as of 13:59, 17 January 2024

Constraint PointOnObject

Ubicación en el Menú
Croquizador → Restricciones del Croquizador → Punto en objeto
Entornos de trabajo
Croquizador, Diseño de Piezas
Atajo de teclado por defecto
Ninguno
Introducido en versión
-
Ver también
Coincidente

Description

Descrición

introduced in version 0.22: This command is replaced by the Sketcher ConstrainCoincidentUnified command if the Unify Coincident and PointOnObject option is selected in the Sketcher Preferences.

Usage

  1. Optionally do one of the following:
    • Select a single point and a single edge (in any order).
    • Select several points and a single edge (idem).
    • Select a single point and several edges (idem).
  2. There are several ways to invoke the command:
    • Press the Constrain point onto object button.
    • Select the Sketch → Sketcher constraints → Constrain point onto object option from the menu.
    • Use the keyboard shortcut: O.
  3. To indicate that the command has been activated the cursor changes to a white cross with the command icon.
  4. Optionally keep selecting elements. You can only select two elements at a time now.
  5. To finish the command press Esc or the right mouse button, or start a another constraints or geometries command.

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.

The Sketcher scripting page explains how to identify the numbers that designate lines and points.