Draft Array/it: Difference between revisions
(Updating to match new version of source page) |
Renatorivo (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
{{GuiCommand/it|Name=Draft_Array|Name/it=Matrice|Workbenches=[[Draft Module/it|Draft]], [[Arch Module/it|Architettura]]|MenuLocation=Draft → Matrice|SeeAlso=[[Draft PathArray/it|PathArray]]}} |
{{GuiCommand/it|Name=Draft_Array|Name/it=Matrice|Workbenches=[[Draft Module/it|Draft]], [[Arch Module/it|Architettura]]|MenuLocation=Draft → Matrice|SeeAlso=[[Draft PathArray/it|PathArray]]}} |
||
==Descrizione== |
|||
Lo strumento Matrice crea una schiera (array) ortogonale (3 assi) o polare utilizzando gli oggetti selezionati. Se non è selezionato nessun oggetto, lo strumento chiede di selezionarne uno. |
Lo strumento Matrice crea una schiera (array) ortogonale (3 assi) o polare utilizzando gli oggetti selezionati. Se non è selezionato nessun oggetto, lo strumento chiede di selezionarne uno. |
||
[[Image:Draft_Array_example.jpg|400px]] |
[[Image:Draft_Array_example.jpg|400px]] |
||
== |
==How to use== |
||
# Select an object you wish to make an array with |
|||
⚫ | |||
# Selezionare gli oggetti con si desidera creare una schiera, che si desidera duplicare secondo un certo ordine |
|||
⚫ | |||
⚫ | |||
# For orthogonal arrays: |
|||
## {{PropertyData|Interval X}}: The interval between each copy on the first axis |
|||
## {{PropertyData|Interval Y}}: The interval between each copy on the second axis |
|||
## {{PropertyData|Interval Z}}: The interval between each copy on the third axis |
|||
## {{PropertyData|Number X}}: The number of copies on the first axis |
|||
## {{PropertyData|Number Y}}: The number of copies on the second axis |
|||
## {{PropertyData|Number Z}}: The number of copies on the third axis |
|||
# For polar arrays: |
|||
## {{PropertyData|Axis}}: The normal direction of the array circle |
|||
## {{PropertyData|Center}}: The center point of the array |
|||
## {{PropertyData|Angle}}: The angle to cover with copies |
|||
⚫ | |||
==Scripting== |
==Scripting== |
||
The Array tool can by used in [[macros]] and from the python console by using one of the following functions, depending if you wish to obtain simple, standalone copies of your base object, or a parametric array object, that stays linked to the original object. |
The Array tool can by used in [[macros]] and from the python console by using one of the following functions, depending if you wish to obtain simple, standalone copies of your base object, or a parametric array object, that stays linked to the original object. |
||
=== |
=== Simple array === |
||
For rectangular array: |
|||
* La matrice ha come impostazione iniziale predefinita quella ortogonale, è possibile modificare questa modalità nelle sue proprietà. |
|||
{{Code|code= |
{{Code|code= |
||
array (objectslist,xvector,yvector,xnum,ynum,[zvector,znum]) |
array (objectslist,xvector,yvector,xnum,ynum,[zvector,znum]) |
||
}} |
}} |
||
For polar array: |
|||
=== Proprietà === |
|||
⚫ | |||
{{Code|code= |
{{Code|code= |
||
array (objectslist,center,totalangle,totalnum) |
array (objectslist,center,totalangle,totalnum) |
||
Line 28: | Line 38: | ||
* This function produces standalone copies of the base object(s) |
* This function produces standalone copies of the base object(s) |
||
=== Parametric array === |
|||
Per matrici polari: |
|||
* {{ProprietaDati|Axis}}: La direzione normale al cerchio della matrice |
|||
* {{ProprietaDati|Center}}: Il punto centro della matrice |
|||
* {{ProprietaDati|Angle}}: L'angolo da coprire con le copie |
|||
⚫ | |||
- per le matrici rettangolari |
- per le matrici rettangolari |
||
Line 46: | Line 51: | ||
* The result of this function is a parametric Draft Array object. |
* The result of this function is a parametric Draft Array object. |
||
Example: |
|||
- per le matrici polari |
|||
{{Code|code= |
{{Code|code= |
||
import FreeCAD,Draft |
import FreeCAD,Draft |
Revision as of 16:54, 2 February 2017
Matrice |
Posizione nel menu |
---|
Draft → Matrice |
Ambiente |
Draft, Architettura |
Avvio veloce |
Nessuno |
Introdotto nella versione |
- |
Vedere anche |
PathArray |
Descrizione
Lo strumento Matrice crea una schiera (array) ortogonale (3 assi) o polare utilizzando gli oggetti selezionati. Se non è selezionato nessun oggetto, lo strumento chiede di selezionarne uno.
How to use
- Select an object you wish to make an array with
- Press the Draft Array button
- Select DatiArray Type: Specifies the type of the array, ortho or polar
- For orthogonal arrays:
- DatiInterval X: The interval between each copy on the first axis
- DatiInterval Y: The interval between each copy on the second axis
- DatiInterval Z: The interval between each copy on the third axis
- DatiNumber X: The number of copies on the first axis
- DatiNumber Y: The number of copies on the second axis
- DatiNumber Z: The number of copies on the third axis
- For polar arrays:
- DatiAxis: The normal direction of the array circle
- DatiCenter: The center point of the array
- DatiAngle: The angle to cover with copies
- DatiNumber Polar: The number of copies
Scripting
The Array tool can by used in macros and from the python console by using one of the following functions, depending if you wish to obtain simple, standalone copies of your base object, or a parametric array object, that stays linked to the original object.
Simple array
For rectangular array:
array (objectslist,xvector,yvector,xnum,ynum,[zvector,znum])
For polar array:
array (objectslist,center,totalangle,totalnum)
- Creates an array of the objects contained in list (that can be an object or a list of objects) with, in case of rectangular array, xnum of iterations in the x direction at xvector distance between iterations, and same for y direction with yvector and ynum. In case of polar array, center is a vector, totalangle is the angle to cover (in degrees) and totalnum is the number of objects, including the original.
- This function produces standalone copies of the base object(s)
Parametric array
- per le matrici rettangolari
makeArray (object,xvector,yvector,xnum,ynum)
For polar array:
makeArray (object,center,totalangle,totalnum)
- Creates an array of the given object with, in case of rectangular array, xnum of iterations in the x direction at xvector distance between iterations, and same for y direction with yvector and ynum. In case of polar array, center is a vector, totalangle is the angle to cover (in degrees) and totalnum is the number of objects, including the original.
- The result of this function is a parametric Draft Array object.
Example:
import FreeCAD,Draft
Draft.array(FreeCAD.ActiveDocument.ActiveObject,FreeCAD.Vector(2,0,0),FreeCAD.Vector(0,2,0),2,2)