Draft Upgrade/es: Difference between revisions
(Created page with "Ejemplo:") |
(Updating to match new version of source page) |
||
Line 1: | Line 1: | ||
{{GuiCommand |
{{GuiCommand|Name=Draft Upgrade|Workbenches=[[Draft Module|Draft]], [[Arch Module|Arch]]|MenuLocation=Draft -> Upgrade|Shortcut=U P|SeeAlso=[[Draft Downgrade|Draft Downgrade]]}} |
||
==Descripción== |
==Descripción== |
||
Line 25: | Line 25: | ||
The upgrade tool can be used from python scripts and [[macros]] like this: |
The upgrade tool can be used from python scripts and [[macros]] like this: |
||
{{Code|code= |
|||
<syntaxhighlight> |
|||
Draft.upgrade(objects, delete=False, force=None) |
|||
}} |
|||
</syntaxhighlight> |
|||
* Upgrades the given object(s) (can be an object or a list of objects). |
* Upgrades the given object(s) (can be an object or a list of objects). |
||
Line 38: | Line 38: | ||
Ejemplo: |
Ejemplo: |
||
{{Code|code= |
|||
<syntaxhighlight> |
|||
import Draft |
import Draft |
||
mycircle = Draft.makeCircle(2) |
mycircle = Draft.makeCircle(2) |
||
face1 = Draft.upgrade([mycircle],True) |
face1 = Draft.upgrade([mycircle],True) |
||
}} |
|||
</syntaxhighlight> |
|||
<languages/> |
<languages/> |
Revision as of 21:49, 1 January 2015
Draft Upgrade |
Menu location |
---|
Draft -> Upgrade |
Workbenches |
Draft, Arch |
Default shortcut |
U P |
Introduced in version |
- |
See also |
Draft Downgrade |
Descripción
Esta herramienta promociona (convertir en un tipo de objeto más complejo) los objetos seleccionados de diversas formas. Si no se ha seleccionado ningún objeto, te invitará a seleccionar uno.
Utilización
- Selecciona uno o más objetos que desees promocionar
- Presiona el botón Promocionar o presiona las teclas U y P
Opciones
Los objetos seleccionados son modificados/promocionados de acuerdo con las siguientes condiciones (en orden):
- Si hay más de una cara seleccionada, las caras se fusionan (unión)
- Si sólo hay una cara seleccionada, no hace nada
- Si sólo hay un contorno abierto seleccionado, lo cierra
- Si solo hay aristas seleccionadas, se juntan todas las aristas en un contorno o wire (cerrado si es posible)
- Si ninguna de las opciones anteriores es posible, crea un objeto compuesto
Programación
The upgrade tool can be used from python scripts and macros like this:
Draft.upgrade(objects, delete=False, force=None)
- Upgrades the given object(s) (can be an object or a list of objects).
- If delete is True, old objects are deleted.
- The force attribute can be used to force a certain way of upgrading. It can be: makeCompound, closeGroupWires, makeSolid, closeWire, turnToParts, makeFusion, makeShell, makeFaces, draftify, joinFaces, makeSketchFace, makeWires
- Returns a dictionnary containing two lists, a list of new objects and a list of objects to be deleted
Some of the operations of the Upgrade tool can also be made with the Part Fuse or Draft Wire tools.
Ejemplo:
import Draft
mycircle = Draft.makeCircle(2)
face1 = Draft.upgrade([mycircle],True)