Difference between revisions of "Sketcher ConstrainBlock"

From FreeCAD Documentation
Jump to navigation Jump to search
(Added scripting section)
m (typo)
Line 43: Line 43:
 
<translate>
 
<translate>
  
The [[Scritping Sketcher constraints in Python]] page explains the values which can be used for {{incode|Edge}} and contains further examples on how to create constraints from Python scripts.
+
The [[Scripting Sketcher constraints in Python]] page explains the values which can be used for {{incode|Edge}} and contains further examples on how to create constraints from Python scripts.
  
 
<!--T:9-->
 
<!--T:9-->

Revision as of 17:49, 19 January 2021

Other languages:
Deutsch • ‎English • ‎español • ‎français • ‎italiano • ‎română • ‎русский
Arrow-left.svg Previous: Constraint Symmetric.svg Symmetric
Next: Lock Sketcher ConstrainLock.svg Arrow-right.svg

Sketcher ConstrainBlock.svg Sketcher ConstrainBlock

Menu location
Sketch → Sketcher constraints → Constrain Block
Workbenches
Sketcher
Default shortcut
None
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 Sketcher CreateBSpline.svg B-Splines, which can be difficult to fully constrain otherwise.

Usage

  1. Select an element to constrain.
  2. Press the Sketcher ConstrainBlock.svg Constrain Block button.

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

Scripting

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

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

Arrow-left.svg Previous: Constraint Symmetric.svg Symmetric
Next: Lock Sketcher ConstrainLock.svg Arrow-right.svg