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)
 
(21 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<languages/>
<languages/>
<br />


{{Docnav
{{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]]}}
|[[Sketcher_ConstrainCoincident|Coincident]]
|[[Sketcher_ConstrainHorVer|Horizontal/Vertical]]
|[[Sketcher_Workbench|Sketcher]]
|IconL=Sketcher_ConstrainCoincident.svg
|IconR=Sketcher_ConstrainHorVer.svg
|IconC=Workbench_Sketcher.svg
}}


<div class="mw-translate-fuzzy">
{{GuiCommand/es
|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>

==Description==

<div class="mw-translate-fuzzy">
====Descrición====
====Descrición====
</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">
====Usage====
====Usage====
</div>

# 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).
# There are several ways to invoke the command:
#* 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}}.
# 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==


The constraint can be created from [[Macros|macros]] and from the [[Python|Python]] console by using the following command:
Note : The order you select the line and point does not matter. The point will always move to line. The line remains fixed.


{{incode|Sketch.addConstraint(Sketcher.Constraint('PointOnObject',LineMoving,PointOfLineMoving,LineFixed))}}
== Scripting ==
The constraint can be created from macros and from the python console by using the following command:
{{Code|code= Sketch.addConstraint(Sketcher.Constraint('PointOnObject',LineMoving,PointOfLineMoving,LineFixed))}}


* {{incode|Sketch}} is a sketch object.
where :
* {{incode|LineMoving}} is the number that designates the line, which contains the point that has to be moved onto the {{incode|LineFixed}} (the line which is fixed).
* {{incode|PointOfLineMoving}} is the number of the vertex of line {{incode|LineMoving}}, that has to be moved onto the {{incode|LineFixed}}.
* {{incode|LinedFixed}} is the number of the line to be affixed onto the point {{incode|PointOfLineMoving}}.


The [[Sketcher_scripting|Sketcher scripting]] page explains how to identify the numbers that designate lines and points.
* 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 indentify the number that designates lines and points ? Please refer to the scripting part of [[Constraint_PointOnPoint|this wiki page]].


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


{{Sketcher_Tools_navi{{#translation:}}}}
{{clear}}
{{Userdocnavi{{#translation:}}}}

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.