Sketcher ConstrainPointOnObject/es: Difference between revisions

From FreeCAD Documentation
m (template fr)
(Updating to match new version of source page)
 
(34 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<languages/>
{{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]]}}


{{Docnav
|[[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|1.0}}: This tool is replaced by the [[Sketcher_ConstrainCoincidentUnified|Sketcher ConstrainCoincidentUnified]] tool if the '''Unify Coincident and PointOnObject''' option is selected in the [[Sketcher_Preferences#General|preferences]].

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

See also: [[Sketcher_Workbench#Drawing_aids|Drawing aids]].

===[[Sketcher_Workbench#Continue_modes|Continue mode]]===

# Make sure there is no selection.
# There are several ways to invoke the tool:
#* Press the {{Button|[[Image:Sketcher_ConstrainPointOnObject.svg|16px]] [[Sketcher_ConstrainPointOnObject|Constrain point on object]]}} button.
#* Select the {{MenuCommand|Sketch → Sketcher constraints → [[Image:Sketcher_ConstrainPointOnObject.svg|16px]] Constrain point on object}} option from the menu.
#* Use the keyboard shortcut: {{KEY|O}}.
# The cursor changes to a cross with the tool icon.
# Select a single point and a single edge (in any order).
# A constraint is added.
# Optionally keep creating constraints.
# To finish, right-click or press {{KEY|Esc}}, or start another geometry or constraint creation tool.

===Run-once mode===

# 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).
# Invoke the tool as explained above.
# Depending on the selection one or more constraints are added.

==Scripting==

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}} is a sketch object.
* {{incode|LineMoving}} is the number that designates the line, which contains the point that has to be moved on 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 on the {{incode|LineFixed}}.
* {{incode|LinedFixed}} is the number of the line to be affixed on the point {{incode|PointOfLineMoving}}.

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




{{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:}}}}
{{languages/es | {{en|Constraint_PointOnObject}} {{fr|Constraint_PointOnObject/fr}} {{it|Constraint_PointOnObject/it}} }}
{{Userdocnavi{{#translation:}}}}

Latest revision as of 14:51, 23 April 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 1.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

  1. Make sure there is no selection.
  2. There are several ways to invoke the tool:
    • Press the Constrain point on object button.
    • Select the Sketch → Sketcher constraints → Constrain point on object option from the menu.
    • Use the keyboard shortcut: O.
  3. The cursor changes to a cross with the tool icon.
  4. Select a single point and a single edge (in any order).
  5. A constraint is added.
  6. Optionally keep creating constraints.
  7. To finish, right-click or press Esc, or start another geometry or constraint creation tool.

Run-once mode

  1. 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. Invoke the tool as explained above.
  3. Depending on the selection one or more constraints are added.

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 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.