Sketcher ConstrainBlock/es: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
(Updating to match new version of source page)
Line 36: Line 36:


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

== Scripting ==

{{Code|code=Sketch.addConstraint(Sketcher.Constraint('Block', Edge))}}

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.



{{Docnav
{{Docnav

Revision as of 19:19, 23 January 2021

[[File:Sketcher_ConstrainLock.svg

‎|x16px|link=]] Bloqueo

Croquizador RestringirBloque

Ubicación en el Menú
Croquis → Restricciones de croquis → Restringir Bloque
Entornos de trabajo
Croquizador
Atajo de teclado por defecto
Ninguno
Introducido en versión
0.17
Ver también
Restringir Lock

Descripción

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.

Utilización

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