Draft Upgrade/it: Difference between revisions
Renatorivo (talk | contribs) |
(Updating to match new version of source page) |
||
Line 1: | Line 1: | ||
⚫ | |||
== Draft: Upgrade - Assembla == |
|||
==Description== |
|||
⚫ | |||
This tool upgrades selected objects in different ways. If no object is selected, you will be invited to select one. |
|||
Questo strumento assembla in diversi modi gli oggetti selezionati (converte più oggetti in un unico oggetto di livello superiore). Se nessun oggetto è selezionato, viene chiesto di selezionarne uno. |
|||
[[Image:Draft_Upgrade_example.jpg|400px]] |
[[Image:Draft_Upgrade_example.jpg|400px]] |
||
== |
==How to use== |
||
# Select one or more objects you wish to upgrade |
|||
# Selezionare uno o più oggetti che si desidera aggiornare |
|||
# |
# Press the {{KEY|[[Image:Draft Upgrade.png|16px]] [[Draft Upgrade]]}} button or press {{KEY|U}} then {{KEY|P}} keys |
||
== |
==Options== |
||
The selected objects are modified/upgraded according to the following conditions (in order): |
|||
Gli oggetti selezionati vengono modificati/assemblati seguendo l'ordine di questa lista: |
|||
* if there are more than one face in the selection, the faces are merged (union) |
|||
* se sono selezionate più facce, le facce vengono fuse (unione) |
|||
* if there is only one face in the selection, nothing is done |
|||
* se è selezionata solo una faccia, non viene eseguito nulla |
|||
* if there is only one open wire in the selection, it gets closed |
|||
* se è selezionato un solo contorno aperto, il contorno viene chiuso |
|||
* if there are only edges in the selection, all edges are joined into a wire (closed if possible) |
|||
* Se sono selezionati solo bordi, i bordi vengono uniti in un contorno (chiuso quando è possibile) |
|||
* if none of the above is possible, a compound object is created |
|||
* Se nessuna delle precedenti operazioni è possibile, viene creato un oggetto composito |
|||
== |
==Scripting== |
||
The upgrade tool can be used from python scripts and [[macros]] like this: |
|||
Non disponibile, ma si possono facilmente riprodurre le singole operazioni della lo strumento Assembla. Vedere le pagine [[Part Fuse/it|Fusione]] o [[Draft Wire/it|DWire]]. |
|||
<syntaxhighlight> |
|||
{{languages/it | {{en|Draft Upgrade}} {{es|Draft Upgrade/es}} {{fr|Draft Upgrade/fr}} {{se|Draft Upgrade/se}} }} |
|||
Draft.upgrade(objects, delete=False, force=None) |
|||
</syntaxhighlight> |
|||
* 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. |
|||
Example: |
|||
<syntaxhighlight> |
|||
import Draft |
|||
mycircle = Draft.makeCircle(2) |
|||
face1 = Draft.upgrade([mycircle],True) |
|||
</syntaxhighlight> |
|||
<languages/> |
Revision as of 16:20, 13 February 2014
Draft Upgrade |
Menu location |
---|
Draft -> Upgrade |
Workbenches |
Draft, Arch |
Default shortcut |
U P |
Introduced in version |
- |
See also |
Draft Downgrade |
Description
This tool upgrades selected objects in different ways. If no object is selected, you will be invited to select one.
How to use
- Select one or more objects you wish to upgrade
- Press the Draft Upgrade button or press U then P keys
Options
The selected objects are modified/upgraded according to the following conditions (in order):
- if there are more than one face in the selection, the faces are merged (union)
- if there is only one face in the selection, nothing is done
- if there is only one open wire in the selection, it gets closed
- if there are only edges in the selection, all edges are joined into a wire (closed if possible)
- if none of the above is possible, a compound object is created
Scripting
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.
Example:
import Draft
mycircle = Draft.makeCircle(2)
face1 = Draft.upgrade([mycircle],True)