Sketcher ConstrainBlock/pt-br: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
(Updating to match new version of source page)
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<languages/>
<languages/>

{{Docnav
{{Docnav
|[[Sketcher_ConstrainSymmetric|Symmetric]]
|[[Sketcher_ConstrainSymmetric|Symmetric]]
|[[Sketcher_Dimension|Dimension]]
|[[Sketcher_ConstrainLock|Lock]]
|[[Sketcher_Workbench|Sketcher]]
|[[Sketcher_Workbench|Sketcher]]
|IconL=Constraint_Symmetric.svg
|IconL=Constraint_Symmetric.svg
|IconR=Sketcher_ConstrainLock.svg‎
|IconR=Sketcher_Dimension.svg‎
|IconC=Workbench_Sketcher.svg
|IconC=Workbench_Sketcher.svg
}}
}}
Line 13: Line 14:
|MenuLocation=Sketch → Sketcher constraints → Constrain block
|MenuLocation=Sketch → Sketcher constraints → Constrain block
|Workbenches=[[Sketcher_Workbench|Sketcher]]
|Workbenches=[[Sketcher_Workbench|Sketcher]]
|Shortcut={{KEY|K}} {{KEY|B}}
|Version=0.17
|Version=0.17
|SeeAlso=[[Sketcher_ConstrainLock|Sketcher Constrain Lock]]
|SeeAlso=[[Sketcher_ConstrainLock|Sketcher Constrain Lock]]
Line 21: Line 23:
'''Constrain Block''' blocks a geometric element in place with a single constraint.
'''Constrain Block''' blocks a geometric element in place with a single constraint.


It is mainly intended to be used with {{Button|[[File:Sketcher_CreateBSpline.svg|16px]] [[Sketcher_CreateBSpline|B-Splines]]}}, which can be difficult to fully constrain otherwise.
It is mainly intended to be used with {{Button|[[File:Sketcher_CreateBSpline.svg|16px]] [[Sketcher_CreateBSpline|B-splines]]}}, which can be difficult to fully constrain otherwise.


==Usage==
==Usage==


# Select an element to constrain.
# Select an element to constrain.
# Press the {{Button|[[File:Sketcher_ConstrainBlock.svg|16px]] [[Sketcher_ConstrainBlock|Constrain Block]]}} button.
# Press the {{Button|[[File:Sketcher_ConstrainBlock.svg|16px]] [[Sketcher_ConstrainBlock|Constrain block]]}} button.


Or press the button first, and then select the elements.
Or press the button first, and then select the elements.
Line 39: Line 41:
{{Docnav
{{Docnav
|[[Sketcher_ConstrainSymmetric|Symmetric]]
|[[Sketcher_ConstrainSymmetric|Symmetric]]
|[[Sketcher_Dimension|Dimension]]
|[[Sketcher_ConstrainLock|Lock]]
|[[Sketcher_Workbench|Sketcher]]
|[[Sketcher_Workbench|Sketcher]]
|IconL=Constraint_Symmetric.svg
|IconL=Constraint_Symmetric.svg
|IconR=Sketcher_ConstrainLock.svg‎
|IconR=Sketcher_Dimension.svg‎
|IconC=Workbench_Sketcher.svg
|IconC=Workbench_Sketcher.svg
}}
}}

Revision as of 16:42, 2 January 2024

Sketcher ConstrainBlock

Menu location
Sketch → Sketcher constraints → Constrain block
Workbenches
Sketcher
Default shortcut
K B
Introduced in version
0.17
See also
Sketcher Constrain Lock

Description

Constrain Block blocks a geometric element in place with a single constraint.

It is mainly intended to be used with B-splines, which can be difficult to fully constrain otherwise.

Usage

  1. Select an element to constrain.
  2. Press the Constrain block button.

Or press the button first, and then select the elements.

Scripting

Sketch.addConstraint(Sketcher.Constraint('Block', Edge))

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