- GuiCommand: Name:Sketcher ConstrainBlock MenuLocation:Sketch → Sketcher constraints → Constrain Block Workbenches:Sketcher Version:0.17 SeeAlso:Sketcher Constrain Lock
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.
- Select an element to constrain.
- Press the [
Constrain Block button.
Or press the button first, and then select the elements.
pythonSketch.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.
{{Sketcher Tools navi
}}
documentation index > Sketcher > Sketcher ConstrainBlock/pt-br