Draft Array/cs: Difference between revisions
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
Line 1: | Line 1: | ||
{{GuiCommand |
{{GuiCommand|Name=Draft Array|Workbenches=[[Draft Module|Draft]], [[Arch Module|Arch]]|MenuLocation=Draft → Array|SeeAlso=[[Draft PathArray|PathArray]]}} |
||
==Popis== |
==Popis== |
||
Line 10: | Line 10: | ||
# Stiskněte tlačítko {{KEY|[[Image:Draft Array.png|16px]] [[Draft Array/cs|Pole]]}}. |
# Stiskněte tlačítko {{KEY|[[Image:Draft Array.png|16px]] [[Draft Array/cs|Pole]]}}. |
||
(pozn.překl.: Pro začátečníky jako jsem já - defaultně jsou intervaly X,Y a Z nastaveny na 1. Když pracujete v mm, tak to vypadá jakoby se pole nevytvořilo, protože se elementy překrývají. Je potřeba alespoň jeden index zvýšit minimálně na rozměr základního prvku.) |
(pozn.překl.: Pro začátečníky jako jsem já - defaultně jsou intervaly X,Y a Z nastaveny na 1. Když pracujete v mm, tak to vypadá jakoby se pole nevytvořilo, protože se elementy překrývají. Je potřeba alespoň jeden index zvýšit minimálně na rozměr základního prvku.) |
||
==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. |
|||
==Volby== |
==Volby== |
||
* Pole začíná defaultně jako ortogonální, ve vlastnostech můžete změnit mód na polární. |
* Pole začíná defaultně jako ortogonální, ve vlastnostech můžete změnit mód na polární. |
||
==Vlastnosti== |
|||
* {{PropertyData|Typ pole}}: Specifikuje typ pole ortogonální nebo polární |
|||
⚫ | |||
* {{PropertyData|Interval X}}: Interval mezi kopiemi na první ose |
|||
* {{PropertyData|Interval Y}}: Interval mezi kopiemi na druhé ose |
|||
* {{PropertyData|Interval Z}}: Interval mezi kopiemi na třetí ose |
|||
⚫ | |||
⚫ | |||
* {{PropertyData|Number Z}}: Počet kopií na třetí ose |
|||
Pro polární pole: |
|||
⚫ | |||
* {{PropertyData|Střed}}: Středový bod pole |
|||
⚫ | |||
* {{PropertyData|Počet kopií}}: Počet kopií |
|||
==Skriptování== |
|||
Nástroj Pole může být využit v [[macros/cs|makrech]] a z konzoly Pythonu použitím následujících funkcí, v závislosti na tom jestli chcete získat jednoduché, samostatné kopie základního objektu nebo parametrický objekt pole, který zůstává napojen na původní objekt. |
|||
=== Jednoduché pole === |
|||
Pro obdélníkové pole: |
|||
{{Code|code= |
{{Code|code= |
||
array (objectslist,xvector,yvector,xnum,ynum,[zvector,znum]) |
array (objectslist,xvector,yvector,xnum,ynum,[zvector,znum]) |
||
}} |
}} |
||
For polar array: |
|||
Pro kruhové pole: |
|||
{{Code|code= |
{{Code|code= |
||
array (objectslist,center,totalangle,totalnum) |
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) |
|||
* Tato funkce produkuje samostatné kopie základního objektu(ů) |
|||
Pro polární pole: |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
Pro obdélníkové pole: |
Pro obdélníkové pole: |
||
Line 52: | Line 36: | ||
makeArray (object,xvector,yvector,xnum,ynum) |
makeArray (object,xvector,yvector,xnum,ynum) |
||
}} |
}} |
||
For polar array: |
|||
Pro kruhové pole: |
|||
{{Code|code= |
{{Code|code= |
||
makeArray (object,center,totalangle,totalnum) |
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. |
|||
* Výsledkem této funkce je parametrický objekt pole. |
|||
⚫ | |||
Příklad: |
|||
{{Code|code= |
{{Code|code= |
||
import FreeCAD,Draft |
import FreeCAD,Draft |
Revision as of 16:52, 2 February 2017
Draft Array |
Menu location |
---|
Draft → Array |
Workbenches |
Draft, Arch |
Default shortcut |
None |
Introduced in version |
- |
See also |
PathArray |
Popis
Nástroj Pole vytváří ortogonální (3-osy) nebo polární pole z vybraných objektů. Není-li vybrán žádný objekt, budete vyzváni k jeho výběru.
Použití
- Vyberte objekt, ze kterého chcete udělat pole
- Stiskněte tlačítko Pole.
(pozn.překl.: Pro začátečníky jako jsem já - defaultně jsou intervaly X,Y a Z nastaveny na 1. Když pracujete v mm, tak to vypadá jakoby se pole nevytvořilo, protože se elementy překrývají. Je potřeba alespoň jeden index zvýšit minimálně na rozměr základního prvku.)
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.
Volby
- Pole začíná defaultně jako ortogonální, ve vlastnostech můžete změnit mód na polární.
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)
Pro polární pole:
- ÚdajeOsy: Kolmý směr kruhového pole
- ÚdajeStřed: Středový bod pole
- ÚdajeÚhel: Úhel, který má být kopiemi pokryt
- ÚdajePočet kopií: Počet kopií
Pro obdélníkové pole:
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.
Pro kruhové pole:
import FreeCAD,Draft
Draft.array(FreeCAD.ActiveDocument.ActiveObject,FreeCAD.Vector(2,0,0),FreeCAD.Vector(0,2,0),2,2)