Draft Array/it: Difference between revisions
Renatorivo (talk | contribs) No edit summary |
Renatorivo (talk | contribs) No edit summary |
||
Line 6: | Line 6: | ||
[[Image:Draft_Array_example.jpg|400px]] |
[[Image:Draft_Array_example.jpg|400px]] |
||
== |
== Utilizzo == |
||
# Selezionare gli oggetti con si desidera creare una schiera, che si desidera duplicare secondo un certo ordine |
|||
# Select an object you wish to make an array with |
|||
# |
# Premere il pulsante {{KEY/it|[[Image:Draft Array.png|16px]] Matrice}} |
||
# |
# Selezionare {{PropertyData|Array Type}}: Specifica il tipo di matrice: ortogonale o polare |
||
# Per le matrici ortogonali: |
|||
# For orthogonal arrays: |
|||
## {{PropertyData|Interval X}}: |
## {{PropertyData|Interval X}}: L'intervallo tra ciascuna copia sul primo asse |
||
## {{PropertyData|Interval Y}}: |
## {{PropertyData|Interval Y}}: L'intervallo tra ciascuna copia sul secondo asse |
||
## {{PropertyData|Interval Z}}: |
## {{PropertyData|Interval Z}}: L'intervallo tra ciascuna copia sul terzo asse |
||
## {{PropertyData|Number X}}: |
## {{PropertyData|Number X}}: Il numero di copie sul primo asse |
||
## {{PropertyData|Number Y}}: |
## {{PropertyData|Number Y}}: Il numero di copie sul secondo asse |
||
## {{PropertyData|Number Z}}: |
## {{PropertyData|Number Z}}: Il numero di copie sul terzo asse |
||
# |
# 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 |
||
## {{ |
## {{ProprietaDati|Number Polar}}: Il numero di copie |
||
==Scripting== |
==Scripting== |
Revision as of 17:03, 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.
Utilizzo
- Selezionare gli oggetti con si desidera creare una schiera, che si desidera duplicare secondo un certo ordine
- Premere il pulsante Template:KEY/it
- Selezionare DatiArray Type: Specifica il tipo di matrice: ortogonale o polare
- Per le matrici ortogonali:
- DatiInterval X: L'intervallo tra ciascuna copia sul primo asse
- DatiInterval Y: L'intervallo tra ciascuna copia sul secondo asse
- DatiInterval Z: L'intervallo tra ciascuna copia sul terzo asse
- DatiNumber X: Il numero di copie sul primo asse
- DatiNumber Y: Il numero di copie sul secondo asse
- DatiNumber Z: Il numero di copie sul terzo asse
- Per matrici polari:
- DatiAxis: La direzione normale al cerchio della matrice
- DatiCenter: Il punto centro della matrice
- DatiAngle: L'angolo da coprire con le copie
- DatiNumber Polar: Il numero di copie
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)