Draft Array/ro: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
(Updating to match new version of source page)
 
(23 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<languages/>
<languages/>
{{docnav|[[Draft_Draft2Sketch|Draft to Sketch]]|[[Draft_PathArray|Path Array]]|[[Draft_Module|Draft]]|IconL=Draft_Draft2Sketch.svg|IconC=Workbench_Draft.svg|IconR=Draft_PathArray.svg}}


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
{{Docnav/ro
{{GuiCommand|Name=Draft Array|Workbenches=[[Draft Module|Draft]], [[Arch Module|Arch]]|MenuLocation=Draft → Array|SeeAlso=[[Draft PathArray|PathArray]]}}
|[[Draft_Draft2Sketch|Draft to Sketch]]
|[[Draft_LinkArray|Link Array]]
|[[Draft_Workbench|Draft]]
|IconL=Draft_Draft2Sketch.svg
|IconC=Workbench_Draft.svg
|IconR=Draft_LinkArray.svg
}}
</div>
</div>

{{VeryImportantMessage|THIS COMMAND IS OBSOLETE<br>
It is not be available in {{VersionPlus|0.21}}. Use [[Draft_OrthoArray|Draft OrthoArray]], [[Draft_PolarArray|Draft PolarArray]] or [[Draft_CircularArray|Draft CircularArray]] instead.}}


<div class="mw-translate-fuzzy">
{{GuiCommand/ro
|Name=Draft Array|Name/ro=Matrice repetabilitate
|MenuLocation=Draft → Array
|Workbenches=[[Draft_Workbench/ro|Draft]], [[Arch_Workbench/ro|Arch]]
|SeeAlso=[[Draft_PolarArray|PolarArray]], [[Draft_CircularArray|CircularArray]], [[Draft_PathArray|PathArray]], [[Draft_PointArray|PointArray]], [[Draft_Clone|Clone]]
}}
</div>

<span id="Description"></span>
<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
== Descriere ==
== Descriere ==
Line 11: Line 30:
</div>
</div>


The [[Image:Draft_Array.svg|24px]] '''Draft Array''' command creates an orthogonal (3-axes) array from a selected object. The created array can be turned into a [[Draft_PolarArray|polar array]] or a [[Draft_CircularArray|circular array]] by changing its {{PropertyData|Array Type}} property.
This tool can be used on 2D shapes created with the [[Draft Workbench]] but can also be used on many types of 3D objects such as those created with the [[Part Workbench]] or [[PartDesign Workbench]].


The command can be used on 2D objects created with the [[Draft_Workbench|Draft Workbench]] or [[Sketcher_Workbench|Sketcher Workbench]], but also on many 3D objects such as those created with the [[Part_Workbench|Part Workbench]], [[PartDesign_Workbench|PartDesign Workbench]] or [[Arch_Workbench|Arch Workbench]].
To position copies along a path use [[Draft PathArray]]; to position copies at specified points use [[Draft PointArray]]; to create copies or clones, and manually place them use [[Draft Move]], [[Draft Rotate]], and [[Draft Clone]].


This command is now obsolete. Use the [[Draft_OrthoArray|Draft OrthoArray]], [[Draft_PolarArray|Draft PolarArray]] or [[Draft_CircularArray|Draft CircularArray]] command instead.
[[Image:Draft_Array_example.jpg|400px]]

<div class="mw-translate-fuzzy">
==Usage==
[[Image:Draft_Array_example.jpg|400px]]
</div>


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
== Cum se utilizează ==
== Cum se utilizează ==
# Selectați un obiect cu care doriți să faceți o matrice
# Selectați un obiect cu care doriți să faceți o matrice
# Apăsați tasta {{KEY | [[Imagine: Schiță Array.png | 16px]] [[Array de Proiect]]}}
# Apăsați tasta {{KEY | [[Image:Draft_Array.svg|16px]] [[Draft_Array|Array de Proiect]]}}
# Selectați {{PropertyData | Array Type}}: Specifică tipul matricei, orto sau polar
# Selectați {{PropertyData | Array Type}}: Specifică tipul matricei, orto sau polar
# Pentru matrice ortogonale:
# Pentru matrice ortogonale:
Line 39: Line 57:
</div>
</div>


==Properties==
Each element in the array is an exact clone of the original object, but the entire array is considered a single unit in terms of properties and appearance.


See [[Draft_OrthoArray#Properties|Draft OrthoArray]].
== Options ==


==Scripting==
There are no options for this tool. Either it works with the selected object or not.

== Properties ==
* {{PropertyData|Base}}: specifies the object to duplicate in the array.
* {{PropertyData|Array Type}}: specifies the type of array to create, either "ortho" or "polar".
* {{PropertyData|Fuse}}: if it is {{TRUE}}, and the copies intersect with each other, they will be fused together into a single shape.

For orthogonal arrays:
* {{PropertyData|Interval X}}: specifies the interval between each copy on the X axis.
* {{PropertyData|Interval Y}}: specifies the interval between each copy on the Y axis.
* {{PropertyData|Interval Z}}: specifies the interval between each copy on the Z axis.
* {{PropertyData|Number X}}: specifies the number of copies on the X axis.
* {{PropertyData|Number Y}}: specifies the number of copies on the Y axis.
* {{PropertyData|Number Z}}: specifies the number of copies on the Z axis.

For polar arrays:
* {{PropertyData|Axis}}: specifies the normal direction of the array circle.
* {{PropertyData|Center}}: specifies the center point of the array circle.
* {{PropertyData|Angle}}: specifies the aperture of the circular arc to cover with copies; use 360 to cover an entire circle.
* {{PropertyData|Number Polar}}: specifies the number of copies to place in the circular arrangement.
* {{PropertyData|Interval Axis}}: specifies the interval between each copy on the {{PropertyData|Axis}} direction.

The number property, either X, Y, Z, or Polar, also includes the original object, so this number will be at least one.

An interval is not a simple distance, but a vector (x, y, z). If more than one value is non-zero, the copy will be created in the main direction, but will also be displaced in the other non-zero directions.

For example, if {{PropertyData|Interval X}} is (2 m, 1 m, 1 m), and {{PropertyData|Number X}} is 3, it will create 3 copies in the X direction; the first copy will be at the original position, the second will be displaced 2 m on X, 1 m on Y, and 1 m on Z; the third copy will be displaced 4 m on X, 2 m on Y, and 2 m on Z. Each array element will be moved slightly to one side (Y direction) and up (Z direction) beside the main X direction.

The {{PropertyData|Interval Axis}} property works in the same way. If the original shape lies on the XY plane, creating a polar array with {{PropertyData|Interval Axis}} (0, 0, z) allows you to make spiral arrangements.


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
Line 78: Line 68:
</div>
</div>


The Array tool can be used in [[macros]] and from the [[Python]] console by using two different functions, depending on if you wish to obtain standalone copies of your base object, or a parametric array object that stays linked to the original object.


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
{{Docnav/ro
=== Matrici Simple ===
|[[Draft_Draft2Sketch|Draft to Sketch]]
În coordonate ortogonale:
|[[Draft_LinkArray|Link Array]]
</div>
|[[Draft_Workbench|Draft]]
{{Code|code=
|IconL=Draft_Draft2Sketch.svg
array_list = array(objectslist, arg1, arg2, arg3, arg4=None, arg5=None, arg6=None)
|IconC=Workbench_Draft.svg
|IconR=Draft_LinkArray.svg
}}
}}

To create a rectangular array, use it like this:
{{Code|code=
array_list = array(objectslist, xvector, yvector, xnum, ynum)
array_list = array(objectslist, xvector, yvector, zvector, xnum, ynum, znum)
}}

<div class="mw-translate-fuzzy">
În cooordonate polare:
</div>
</div>
{{Code|code=
array_list = array(objectslist, center, totalangle, totalnum)
}}

<div class="mw-translate-fuzzy">
* Creează un șir de obiecte conținute în listă (care poate fi un obiect sau o listă de obiecte) cu, în cazul matricei dreptunghiulare, xnum de iterații în direcția x la distanța xvector între iterații și aceeași pentru direcția y cu yvector și ynum, și aceeași pentru direcția z cu zvector și znum dacă această versiune este utilizată. În cazul unei tablouri polare, centrul este un vector, totalangle este unghiul de acoperire (în grade) și totalnum este numărul de obiecte, inclusiv originalul.
* Această funcție produce copii autonome ale obiectelor de bază,
</div>

This function internally uses {{incode|Draft.move()}} and {{incode|Draft.rotate()}} with <code>copy=True</code>.

Example:
{{Code|code=
import FreeCAD, Draft

Rect = Draft.makeRectangle(1500, 500)

array_list = Draft.array(Rect, FreeCAD.Vector(1600, 0, 0), FreeCAD.Vector(0, 600, 0), 3, 4)
}}

=== Matrici Parametrice ===

The basic signature is as follows:
{{Code|code=
Array = makeArray(baseobject, arg1, arg2, arg3, arg4=None, arg5=None, arg6=None, name="Array")
}}

<div class="mw-translate-fuzzy">
Pentru matrici dreptunghiulare:
</div>
{{Code|code=
Array = makeArray(baseobject, xvector, yvector, xnum, ynum, name="Array")
Array = makeArray(baseobject, xvector, yvector, zvector, xnum, ynum, znum, name="Array")
}}

<div class="mw-translate-fuzzy">
Pentru matrici polare:
</div>
{{Code|code=
Array = makeArray(baseobject, center, totalangle, totalnum, name="Array")
}}

<div class="mw-translate-fuzzy">
* Creează o matrice a obiectului dat cu, în cazul matricei rectangulare, xnum de iterații în direcția x la distanța xvector între iterații și aceeași pentru direcția y cu yvector și ynum și pentru zvector și znum dacă se utilizează versiunea respectivă. În cazul unei tablouri polare, centrul este un vector, totalangle este unghiul de acoperire (în grade) și totalnum este numărul de obiecte, inclusiv originalul.
* Rezultatul acestei funcții este un obiect parametric Draft Array.
</div>

Exempluː
{{Code|code=
import FreeCAD, Draft

Rect = Draft.makeRectangle(1500, 500)
xvector = FreeCAD.Vector(1600, 0, 0)
yvector = FreeCAD.Vector(0, 600, 0)
Array = Draft.makeArray(Rect, xvector, yvector, 3, 4)

Tri = Draft.makePolygon(3, 600)
center = FreeCAD.Vector(-1600, 0, 0)
Array2 = Draft.makeArray(Tri, center, 360, 6)
}}

{{docnav|[[Draft_Draft2Sketch|Draft to Sketch]]|[[Draft_PathArray|Path Array]]|[[Draft_Module|Draft]]|IconL=Draft_Draft2Sketch.svg|IconC=Workbench_Draft.svg|IconR=Draft_PathArray.svg}}

{{Draft Tools navi}}


{{Draft Tools navi{{#translation:}}}}
{{Userdocnavi}}
{{Userdocnavi{{#translation:}}}}
{{clear}}

Latest revision as of 08:25, 20 May 2023

THIS COMMAND IS OBSOLETE
It is not be available in version 0.21 and above. Use Draft OrthoArray, Draft PolarArray or Draft CircularArray instead.

Matrice repetabilitate

poziția meniului
Draft → Array
Ateliere
Draft, Arch
scurtătură
nici unul
Prezentat în versiune
-
A se vedea, de asemenea,
PolarArray, CircularArray, PathArray, PointArray, Clone

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.

The Draft Array command creates an orthogonal (3-axes) array from a selected object. The created array can be turned into a polar array or a circular array by changing its DateArray Type property.

The command can be used on 2D objects created with the Draft Workbench or Sketcher Workbench, but also on many 3D objects such as those created with the Part Workbench, PartDesign Workbench or Arch Workbench.

This command is now obsolete. Use the Draft OrthoArray, Draft PolarArray or Draft CircularArray command instead.

Usage

Cum se utilizează

  1. Selectați un obiect cu care doriți să faceți o matrice
  2. Apăsați tasta Array de Proiect
  3. Selectați Date Array Type: Specifică tipul matricei, orto sau polar
  4. Pentru matrice ortogonale:
    1. Date Interval X: Intervalul dintre fiecare copie pe prima axă
    2. Date Interval Y: Intervalul dintre fiecare copie pe a doua axă
    3. Date Interval Z: Intervalul dintre fiecare copie pe a treia axă
    4. Date Număr X: Numărul de copii pe prima axă
    5. Date Număr Y: numărul de copii pe a doua axă
    6. Date Număr Z: Numărul de copii pe a treia axă
  5. Pentru tablouri polare:
    1. Date Axis: Direcția normală a cercului matricei
  6. Date Center: Punctul central al matricei
  7. Date Angle: Unghiul de acoperire cu copii
  8. Date Număr Polar: Numărul de copii

Properties

See Draft OrthoArray.

Scripting

Script-Programre

Instrumentul Array poate fi utilizat în macros și din consola Python utilizând una dintre următoarele funcții, în funcție de situația în care doriți să obțineți copii simple, independente ale obiectului de bază sau un obiect parametric, care rămâne legat de obiectul original.