Draft Array/ro: Difference between revisions
(Created page with "== Descriere == Instrumentul Array creează o matrice ortogonală (3-axe) sau polară dintr-un obiect selectat. Dacă nu este selectat niciun obiect, veți fi invitat să sele...") |
(Created page with "== Cum se utilizează == # Selectați un obiect cu care doriți să faceți o matrice # Apăsați tasta {{KEY | 16px Array de Proiect}} #...") |
||
Line 7: | Line 7: | ||
[[Image:Draft_Array_example.jpg|400px]] |
[[Image:Draft_Array_example.jpg|400px]] |
||
== Cum se utilizează == |
|||
==How to use== |
|||
# Selectați un obiect cu care doriți să faceți o matrice |
|||
# Select an object you wish to make an array with |
|||
# |
# Apăsați tasta {{KEY | [[Imagine: Schiță Array.png | 16px]] [[Array de Proiect]]}} |
||
# |
# Selectați {{PropertyData | Array Type}}: Specifică tipul matricei, orto sau polar |
||
# Pentru matrice ortogonale: |
|||
# For orthogonal arrays: |
|||
## {{PropertyData|Interval X}}: |
## {{PropertyData | Interval X}}: Intervalul dintre fiecare copie pe prima axă |
||
## {{PropertyData|Interval Y}}: |
## {{PropertyData | Interval Y}}: Intervalul dintre fiecare copie pe a doua axă |
||
## {{PropertyData|Interval Z}}: |
## {{PropertyData | Interval Z}}: Intervalul dintre fiecare copie pe a treia axă |
||
## {{PropertyData| |
## {{PropertyData | Număr X}}: Numărul de copii pe prima axă |
||
## {{PropertyData| |
## {{PropertyData | Număr Y}}: numărul de copii pe a doua axă |
||
## {{PropertyData| |
## {{PropertyData | Număr Z}}: Numărul de copii pe a treia axă |
||
# Pentru tablouri polare: |
|||
# For polar arrays: |
|||
## |
## {{PropertyData | Axis}}: Direcția normală a cercului matricei |
||
# {{PropertyData | Center}}: Punctul central al matricei |
|||
# {{PropertyData | Angle}}: Unghiul de acoperire cu copii |
|||
# {{PropertyData | Număr Polar}}: Numărul de copii |
|||
==Scripting== |
==Scripting== |
Revision as of 09:31, 16 November 2018
Draft Array |
Menu location |
---|
Draft → Array |
Workbenches |
Draft, Arch |
Default shortcut |
None |
Introduced in version |
- |
See also |
PathArray |
Descriere
Instrumentul Array creează o matrice ortogonală (3-axe) sau polară dintr-un obiect selectat. Dacă nu este selectat niciun obiect, veți fi invitat să selectați unul.
Cum se utilizează
- Selectați un obiect cu care doriți să faceți o matrice
- Apăsați tasta 16px Array de Proiect
- Selectați Date Array Type: Specifică tipul matricei, orto sau polar
- Pentru matrice ortogonale:
- Date Interval X: Intervalul dintre fiecare copie pe prima axă
- Date Interval Y: Intervalul dintre fiecare copie pe a doua axă
- Date Interval Z: Intervalul dintre fiecare copie pe a treia axă
- Date Număr X: Numărul de copii pe prima axă
- Date Număr Y: numărul de copii pe a doua axă
- Date Număr Z: Numărul de copii pe a treia axă
- Pentru tablouri polare:
- Date Axis: Direcția normală a cercului matricei
- Date Center: Punctul central al matricei
- Date Angle: Unghiul de acoperire cu copii
- Date Număr Polar: Numărul de copii
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)
array (objectslist,xvector,yvector,zvector,xnum,ynum,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, and same for z direction with zvector and znum if that version is used. 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
For rectangular array:
makeArray (object,xvector,yvector,xnum,ynum,[name])
makeArray (object,xvector,yvector,zvector,xnum,ynum,znum,[name])
For polar array:
makeArray (object,center,totalangle,totalnum,[name])
- 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, and for zvector and znum if that version is used. 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)