Sketcher ConstrainDiameter/es: Difference between revisions

From FreeCAD Documentation
(Created page with "{{Docnav/es |Radio de restricción |Ángulo de restricción |Croquizador |IconL=Constr...")
(Updating to match new version of source page)
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<languages/>
<languages/>


<div class="mw-translate-fuzzy">
{{Docnav/es
{{Docnav/es
|[[Sketcher_ConstrainRadius/es|Radio de restricción]]
|[[Sketcher_ConstrainRadius/es|Radio de restricción]]
Line 9: Line 10:
|IconR=Constraint_InternalAngle.png
|IconR=Constraint_InternalAngle.png
}}
}}
</div>


<div class="mw-translate-fuzzy">
{{GuiCommand
{{GuiCommand/es
|Name=Sketcher ConstrainDiameter
|Name=Sketcher ConstrainDiameter
|Name/es=Croquizador RestringirDiámetro
|Workbenches=[[Sketcher Workbench|Sketcher]]
|Workbenches=[[Sketcher Workbench/es|Sketcher]]
|MenuLocation=Sketch → Sketcher constraints → Constrain diameter
|MenuLocation=Boceto → Croquizador restricciónes → RestringirDiámetro
|SeeAlso=[[Sketcher ConstrainDistance|Constrain distance]], [[Sketcher ConstrainDistanceX|Constrain horizontal distance]], [[Sketcher ConstrainDistanceY|Constrain vertical distance]]
|SeeAlso=[[Sketcher ConstrainDistance/es|Restringir la distancia]], [[Sketcher ConstrainDistanceX/es|Restringir distancia horizontal]], [[Sketcher ConstrainDistanceY/es|Restringir distancia vertical]]
}}
}}
</div>


<span id="Description"></span>
==Descripción==
==Descripción==


The [[Image:Sketcher_ConstrainDiameter.svg|24px]] [[Sketcher_ConstrainDiameter|Sketcher ConstrainDiameter]] tool fixes the diameter of circles and arcs. It cannot be used for [[Sketcher_CreateBSpline#Notes|B-spline weight circles]].
This constraint constrains the value of the diameter of a circle or arc to have a specific value. If more than one circle or arc is selected before launching the command, a prompt will ask if all selected elements should share the same diameter. In the case of an affirmative response, one diameter constraint will be added, and {{Button|[[File:Sketcher_ConstrainEqual.svg|16px]] [[Sketcher_ConstrainEqual|Constrain equal]]}} constraints will be added to all elements. In the negative, separate diameter constraints will be created for each circle/arc but with equal values to be edited separately after creation.


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


See also: [[Sketcher_Workbench#Drawing_aids|Drawing aids]].
# Pick one or more circles or arcs.
# Press the {{Button|[[File:Sketcher_ConstrainDiameter.svg|16px]] [[Sketcher_ConstrainDiameter|Constrain diameter]]}} button.
# A pop up dialog opens to edit or confirm the value. Press {{Button|OK}} to validate. In case multiple circles/arcs were selected, all constraints will adopt this value. Edit their separate values by double-clicking on the dimension label in the 3D view; or in the Constraints list, double-click on the constraint or right-click and select '''Change value'''.
# Optionally the dimension label and line can be moved and rotated in the 3D view by clicking on the value and dragging while keeping the left mouse button pressed.


===[[Sketcher_Workbench#Continue_modes|Continue mode]]===
'''Note:''' the constraint tool can also be started with no prior selection. By default the command will be in continue mode to create new constraints; press the right mouse button or {{KEY|Esc}} once to quit the command.


# Make sure there is no selection.
# There are several ways to invoke the tool:
#* {{Version|1.0}}: If the {{MenuCommand|Dimensioning constraints}} [[Sketcher_Preferences#General|preference]] is set to {{Value|Single tool}} (default): press the down arrow to the right of the {{Button|[[Image:Sketcher_Dimension.svg||x16px]][[Image:Toolbar_flyout_arrow.svg|x16px]]}} button and select the {{MenuCommand|[[Image:Sketcher_ConstrainDiameter.svg|16px]] Constrain diameter}} option from the dropdown.
#* If this preference has a different value (and in {{VersionMinus|0.21}}): press the {{Button|[[Image:Sketcher_ConstrainDiameter.svg|16px]] [[Sketcher_ConstrainDiameter|Constrain diameter]]}} button.
#* Select the {{MenuCommand|Sketch → Sketcher constraints → [[Image:Sketcher_ConstrainDiameter.svg|16px]] Constrain diameter}} option from the menu.
#* {{Version|1.0}}: Right-click in the [[3D_view|3D view]] and select the {{MenuCommand|Dimension → [[Image:Sketcher_ConstrainDiameter.svg|16px]] Constrain diameter}} option from the context menu.
#* Use the keyboard shortcut: {{KEY|K}} then {{KEY|O}}.
# The cursor changes to a cross with the tool icon.
# Select the edge of a circle or arc.
# If a [[Sketcher_ToggleDrivingConstraint|driving dimensional constraint]] is created, depending on the [[Sketcher_Preferences#Display|preferences]], a dialog opens to [[Sketcher_Workbench#Edit_constraints|edit its value]].
# 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===
{{Docnav

|[[Sketcher_ConstrainRadius|Constraint Radius]]
# Select the edge of one or more circles or arcs.
|[[Sketcher_ConstrainAngle|Constraint Angle]]
# Invoke the tool as explained above.
|[[Sketcher_Workbench|Sketcher]]
# Optionally [[Sketcher_Workbench#Edit_constraints|edit the constraint value]].
# Depending on the selection one or more constraints are added, see [[#Notes|Notes]].

==Notes==

* If [[Sketcher_ToggleDrivingConstraint|driving constraints]] are created and multiple elements that are not [[Sketcher_External|external geometry]] have been pre-selected, only the first of those receives a dimensional constraint, while between the first and the others [[Sketcher_ConstrainEqual|Equal constrains]] are applied.

== Scripting ==

{{Code|code=Sketch.addConstraint(Sketcher.Constraint('Diameter', ArcOrCircle, App.Units.Quantity('123.0 mm')))}}

The [[Sketcher_scripting|Sketcher scripting]] page explains the values which can be used for {{incode|ArcOrCircle}}, and contains further examples on how to create constraints from Python scripts.


<div class="mw-translate-fuzzy">
{{Docnav/es
|[[Sketcher_ConstrainRadius/es|Radio de restricción]]
|[[Sketcher_ConstrainAngle/es|Ángulo de restricción]]
|[[Sketcher_Workbench/es|Croquizador]]
|IconL=Constraint_Radius.svg
|IconL=Constraint_Radius.svg
|IconC=Workbench_Sketcher.svg
|IconC=Workbench_Sketcher.svg
|IconR=Constraint_InternalAngle.png
|IconR=Constraint_InternalAngle.png
}}
}}
</div>


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

Latest revision as of 15:18, 23 April 2024

Croquizador RestringirDiámetro

Ubicación en el Menú
Boceto → Croquizador restricciónes → RestringirDiámetro
Entornos de trabajo
Sketcher
Atajo de teclado por defecto
Ninguno
Introducido en versión
-
Ver también
Restringir la distancia, Restringir distancia horizontal, Restringir distancia vertical

Descripción

The Sketcher ConstrainDiameter tool fixes the diameter of circles and arcs. It cannot be used for B-spline weight circles.

Como utilizar

See also: Drawing aids.

Continue mode

  1. Make sure there is no selection.
  2. There are several ways to invoke the tool:
    • introduced in version 1.0: If the Dimensioning constraints preference is set to Single tool (default): press the down arrow to the right of the button and select the Constrain diameter option from the dropdown.
    • If this preference has a different value (and in version 0.21 and below): press the Constrain diameter button.
    • Select the Sketch → Sketcher constraints → Constrain diameter option from the menu.
    • introduced in version 1.0: Right-click in the 3D view and select the Dimension → Constrain diameter option from the context menu.
    • Use the keyboard shortcut: K then O.
  3. The cursor changes to a cross with the tool icon.
  4. Select the edge of a circle or arc.
  5. If a driving dimensional constraint is created, depending on the preferences, a dialog opens to edit its value.
  6. A constraint is added.
  7. Optionally keep creating constraints.
  8. To finish, right-click or press Esc, or start another geometry or constraint creation tool.

Run-once mode

  1. Select the edge of one or more circles or arcs.
  2. Invoke the tool as explained above.
  3. Optionally edit the constraint value.
  4. Depending on the selection one or more constraints are added, see Notes.

Notes

Scripting

Sketch.addConstraint(Sketcher.Constraint('Diameter', ArcOrCircle, App.Units.Quantity('123.0 mm')))

The Sketcher scripting page explains the values which can be used for ArcOrCircle, and contains further examples on how to create constraints from Python scripts.