Sketcher ConstrainRadius/ru: Difference between revisions

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

<div class="mw-translate-fuzzy">
{{Docnav/ru
|[[Sketcher_ConstrainDistance/ru|Ограничить расстояние]]
|[[Sketcher_ConstrainDiameter/ru|Ограничить диаметр]]
|[[Sketcher_Workbench/ru|Верстак "Sketcher"]]
|IconL=Sketcher_ConstrainDistance.svg
|IconR=Sketcher_ConstrainDiameter.svg
|IconC=Workbench_Sketcher.svg
}}
</div>

<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
{{GuiCommand/ru
{{GuiCommand/ru
|Name=Constraint Radius
|Name=Sketcher ConstrainRadius
|Name/ru=Constraint Radius
|Name/ru=Sketcher ConstrainRadius
|Workbenches=[[Sketcher Workbench|Sketcher]], [[PartDesign Workbench|PartDesign]]
|MenuLocation=Sketch → Ограничения эскиза → Ограничения радиуса
|MenuLocation=Sketch → Ограничения эскиза → Ограничения радиуса
|Workbenches=[[Sketcher_Workbench|Sketcher]]
|SeeAlso=[[Constraint Length/ru|Constraint Distance]], [[Constraint Horizontal/ru|Constraint Horizontal]], [[Constraint Vertical/ru|Constraint Vertical]]
|SeeAlso=[[Sketcher_ConstrainDistance/ru|Sketcher Constrain distance]], [[Sketcher_ConstrainDistanceX/ru|Sketcher Constrain horizontal distance]], [[Sketcher_ConstrainDistanceY/ru|Sketcher Constrain vertical distance]]
}}
}}
</div>
</div>


==Description==
<span id="Description"></span>
==Описание==
This constraint constrains the value of the radius 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 radius. In the case of an affirmative response, one radius constraint will be added, and [[Sketcher ConstrainEqual|equal length]] constraints will be added to all elements. In the negative, separate radius constraints will be created for each circle/arc but with equal values to be edited separately after creation.


This constraint constrains the value of the radius of a circle or arc to have a specific value. If more than one circle or arc is selected before launching the command :
[[File:Sketcher ConstrainRadius example.png|none]]
* If the constrain is applied in 'Reference' mode, a new reference constrain is added to each object separately according above rules
* If the constrain is applied in 'Normal' (driving) mode, following rules are applied
** A reference constrain is applied separately on each object which is an external geometry
** {{Button|[[File:Sketcher_ConstrainEqual.svg|16px]] [[Sketcher_ConstrainEqual|Equal constrains]]}} are applied sequentially between all real/construction geometry objects and a dimensional constrain is applied to the first selected object according above rules
NB : B-spline poles can't be mixed with other object type in the selection


[[File:Sketcher ConstrainRadius example.png]]
==How to use==

<span id="Usage"></span>
==Применение==


# Pick one or more circles or arcs.
# Pick one or more circles or arcs.
# Press the {{KEY|[[File:Sketcher ConstrainRadius.png|24px]] '''Constrain radius'''}} button.
# Press the {{Button|[[File:Sketcher_ConstrainRadius.svg|16px]] [[Sketcher_ConstrainRadius|Constrain radius]]}} button.
# A pop up dialog opens to edit or confirm the value. Press {{KEY|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'''.
# 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.
# 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.


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

<span id="Scripting"></span>
== Программирование ==

{{Code|code=Sketch.addConstraint(Sketcher.Constraint('Radius', 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/ru
|[[Sketcher_ConstrainDistance/ru|Ограничить расстояние]]
|[[Sketcher_ConstrainDiameter/ru|Ограничить диаметр]]
|[[Sketcher_Workbench/ru|Верстак "Sketcher"]]
|IconL=Sketcher_ConstrainDistance.svg
|IconR=Sketcher_ConstrainDiameter.svg
|IconC=Workbench_Sketcher.svg
}}
</div>


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

Revision as of 10:24, 18 May 2023

Sketcher ConstrainRadius

Системное название
Sketcher ConstrainRadius
Расположение в меню
Sketch → Ограничения эскиза → Ограничения радиуса
Верстаки
Sketcher
Быстрые клавиши
Нет
Представлено в версии
-
См. также
Sketcher Constrain distance, Sketcher Constrain horizontal distance, Sketcher Constrain vertical distance

Описание

This constraint constrains the value of the radius of a circle or arc to have a specific value. If more than one circle or arc is selected before launching the command :

  • If the constrain is applied in 'Reference' mode, a new reference constrain is added to each object separately according above rules
  • If the constrain is applied in 'Normal' (driving) mode, following rules are applied
    • A reference constrain is applied separately on each object which is an external geometry
    • Equal constrains are applied sequentially between all real/construction geometry objects and a dimensional constrain is applied to the first selected object according above rules

NB : B-spline poles can't be mixed with other object type in the selection

Применение

  1. Pick one or more circles or arcs.
  2. Press the Constrain radius button.
  3. A pop up dialog opens to edit or confirm the value. Press 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.
  4. 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.

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 Esc once to quit the command.

Программирование

Sketch.addConstraint(Sketcher.Constraint('Radius', 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.