Draft Ортогональный Массив
|
|
| Расположение в меню |
|---|
| Modification → Array tools → Array |
| Верстаки |
| Draft, Arch |
| Быстрые клавиши |
| Нет |
| Представлено в версии |
| 0.19 |
| См. также |
| Массив вращения, Круговой массив, Draft PathArray, Draft PathLinkArray, Draft PointArray, Draft PointLinkArray |
Описание
The Draft OrthoArray command creates an orthogonal (3-axes) array from a selected object. The command can optionally create a Link array, which is more efficient than a regular array.
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 BIM Workbench.
Draft OrthoArray
Применение
- Optionally select one object.
- There are several ways to invoke the command:
- The Orthogonal Array task panel opens. See Options for more information.
- If you have not yet selected an object: select one object.
- Enter the required parameters in the task panel.
- To finish the command do one of the following:
- Click in the 3D View.
- Press Enter.
- Press the OK button.
Options
- Optionally press the Switch to ... Mode button: introduced in 1.1
- Linear Mode: introduced in 1.1
- Select the X axis, Y axis or Z axis radio button to specify the direction of the array.
- Enter the Number of Elements.
- Enter the Interval.
- Ortho Mode:
- Enter the Number of Elements for the X, Y and Z directions. This number must be at least
1for every direction. - Enter the X Intervals to specify the displacement for the elements in the X direction. For a rectangular array the Y and Z values must be
0. - Enter the Y Intervals to specify the displacement for the elements in the Y direction. For a rectangular array the X and Z values must be
0. - Enter the Z Intervals to specify the displacement for the elements in the Z direction. For a rectangular array the X and Y values must be
0.
- Enter the Number of Elements for the X, Y and Z directions. This number must be at least
- Linear Mode: introduced in 1.1
- Press the Reset X, Reset Y or Reset Z button to reset the interval in the given direction to the default.
- If the Fuse checkbox is checked overlapping elements in the array are fused.
- If the Link array checkbox is checked a Link array instead of a regular array is created. A Link array is more efficient because its elements are App Link objects.
- Press Esc or the Cancel button to abort the command.
Примечания
- A Draft OrthoArray can be turned into a Draft PolarArray or a Draft CircularArray by changing its ДанныеArray Type property.
- A Link array cannot be turned into a regular array or vice versa. The type of array must be decided at creation time.
- Fused Link arrays are not displayed properly, in the 3D View their elements always appear unfused.
Свойства
Смотрите также: Редактор свойств.
The Draft OrthoArray command, the Draft PolarArray command and the Draft CircularArray command create the same object. This object is derived from a Part Feature object and inherits all its properties (with the exception of some View properties that are not inherited by Link arrays). The following properties are additional unless otherwise stated:
Данные
Link
The properties in this group are only available for Link arrays. See Std LinkMake for more information.
- ДанныеScale (
Float) - Данные (Hidden)Scale Vector (
Vector) - ДанныеScale List (
VectorList) - Данные (Hidden)Visibility List (
BoolList) - Данные (Hidden)Placement List (
PlacementList) - Данные (Hidden)Element List (
LinkList) - Данные (Hidden)_ Link Touched (
Bool) - Данные (Hidden)_ Child Cache (
LinkList) - Данные (Hidden)_ Link Owner (
Integer) - Данные (Hidden)Colored Elements (
LinkSubHidden) - ДанныеLink Copy On Change (
Enumeration) - ДанныеLink Transform (
Bool)
Circular array
The properties in this group are hidden for orthogonal arrays and polar arrays.
- ДанныеNumber Circles (
Integer): specifies the number of circular layers. Must be at least2. - ДанныеRadial Distance (
Distance): specifies the distance between circular layers. - ДанныеSymmetry (
Integer): specifies the number of symmetry lines. This number changes the distribution of the elements in the array. - ДанныеTangential Distance (
Distance): specifies the distance between elements in the same circular layer. Must be larger than zero.
Draft
- ДанныеAlways Sync Placement (
Bool)
Objects
- ДанныеArray Type (
Enumeration): specifies the type of array, which can beortho,polarorcircular. - ДанныеAxis Reference (
LinkGlobal): specifies the object and edge to be used instead of the ДанныеAxis and ДанныеCenter properties. Not used for orthogonal arrays. - ДанныеBase (
Link): specifies the object to duplicate in the array. - ДанныеCount (
Integer): (read-only) specifies the total number of elements in the array. - ДанныеExpand Array (
Bool): specifies whether to expand the array in the Tree View to enable the selection of its individual elements. Only available for Link arrays. - ДанныеFuse (
Bool): specifies if overlapping elements in the array are fused or not. - ДанныеPlacement List (
PlacementList): the placement for each element. Appears in the Link group for Link arrays. introduced in 1.1
Orthogonal array
The properties in this group are hidden for circular arrays and polar arrays.
- ДанныеInterval X (
VectorDistance): specifies the interval between elements in the X direction. - ДанныеInterval Y (
VectorDistance): specifies the interval between elements in the Y direction. - ДанныеInterval Z (
VectorDistance): specifies the interval between elements in the Z direction. - ДанныеNumber X (
Integer): specifies the number of elements in the X direction. Must be at least1. - ДанныеNumber Y (
Integer): specifies the number of elements in the Y direction. Must be at least1. - ДанныеNumber Z (
Integer): specifies the number of elements in the Z direction. Must be at least1.
Polar array
The properties in this group are hidden for circular arrays and orthogonal arrays.
- ДанныеAngle (
Angle): specifies the aperture of the circular arc. Use360°for a full circle. - ДанныеInterval Axis (
VectorDistance): specifies the interval between elements in the ДанныеAxis direction. - ДанныеNumber Polar (
Integer): specifies the number of elements in the polar direction.
Polar/circular array
The properties in this group are hidden for orthogonal arrays.
- ДанныеAxis (
Vector): specifies the direction of the axis of the array. - ДанныеCenter (
VectorDistance): specifies the center point of the array. The axis of the array passes through this point. For circular arrays it is an offset from the ДанныеPlacement of the ДанныеBase object.
Вид
Link
The properties in this group, with the exception of the inherited property, are only available for Link arrays. See Std LinkMake for more information.
- ВидDraw Style (
Enumeration) - ВидLine Width (
FloatConstraint) - ВидOverride Material (
Bool) - ВидPoint Size (
FloatConstraint) - ВидSelectable (
Bool): this is an inherited property that appears in the Selection group for other arrays - ВидShape Material (
Material)
Base
The properties in this group, with the exception of the inherited property, are only available for Link arrays. See Std LinkMake for more information.
- Вид (Hidden)Child View Provider (
PersistentObject) - Вид (Hidden)Material List (
MaterialList) - Вид (Hidden)Override Color List (
ColorList) - Вид (Hidden)Override Material List (
BoolList) - Вид (Hidden)Proxy (
PythonObject): this is an inherited property.
Display Options
The properties in this group are inherited properties. See Part Feature for more information.
- ВидBounding Box (
Bool): this property is not inherited by Link arrays. - ВидDisplay Mode (
Enumeration): for Link arrays it can beLinkorChildView. For other arrays it can be:Flat Lines,Shaded,WireframeorPoints - ВидShow In Tree (
Bool) - ВидVisibility (
Bool)
Draft
- ВидPattern (
Enumeration): not used. - ВидPattern Size (
Float): not used.
Object style
The properties in this group are not inherited by Link arrays.
Программирование
Смотри так же: Draft API и Основы написания скриптов FreeCAD.
Parametric array
To create a parametric orthogonal array use the make_array method (introduced in 0.19) of the Draft module. This method replaces the deprecated makeArray method. The make_array method can create Draft OrthoArrays, Draft PolarArrays and Draft CircularArrays. For each array type one or more wrappers are available.
The main method:
array = make_array(base_object, arg1, arg2, arg3, arg4=None, arg5=None, arg6=None, use_link=True)
The wrappers for orthogonal arrays are:
array = make_ortho_array(base_object,
v_x=App.Vector(10, 0, 0), v_y=App.Vector(0, 10, 0), v_z=App.Vector(0, 0, 10),
n_x=2, n_y=2, n_z=1,
use_link=True)
array = make_ortho_array2d(base_object,
v_x=App.Vector(10, 0, 0), v_y=App.Vector(0, 10, 0),
n_x=2, n_y=2,
use_link=True)
The wrappers for rectangular arrays are:
array = make_rect_array(base_object,
d_x=10, d_y=10, d_z=10,
n_x=2, n_y=2, n_z=1,
use_link=True)
array = make_rect_array2d(base_object,
d_x=10, d_y=10,
n_x=2, n_y=2,
use_link=True)
base_objectis the object to be arrayed. It can also be theLabel(string) of an object in the current document.v_x,v_y, andv_zare the vectors between the base points of the elements in the respective directions.d_x,d_y, andd_zare the distances between the base points of the elements in the respective directions.n_x,n_y, andn_zare the numbers of elements in the respective directions.- If
use_linkisTruethe created elements are App Links instead of regular copies. arrayis returned with the created array object.
Пример:
import FreeCAD as App
import Draft
doc = App.newDocument()
rect = Draft.make_rectangle(1500, 500)
v_x = App.Vector(1600, 0, 0)
v_y = App.Vector(0, 600, 0)
array = Draft.make_ortho_array2d(rect, v_x, v_y, 3, 4)
doc.recompute()
Non-parametric array
To create a non-parametric orthogonal array use the array method of the Draft module. This method returns None.
array(objectslist, xvector, yvector, xnum, ynum)
array(objectslist, xvector, yvector, zvector, xnum, ynum, znum)
Пример:
import FreeCAD as App
import Draft
doc = App.newDocument()
rect = Draft.make_rectangle(1500, 500)
v_x = App.Vector(1600, 0, 0)
v_y = App.Vector(0, 600, 0)
Draft.array(rect, v_x, v_y, 3, 4)
doc.recompute()
- Drafting: Line, Polyline, Fillet, Arc, Arc From 3 Points, Circle, Ellipse, Rectangle, Polygon, B-Spline, Cubic Bézier Curve, Bézier Curve, Point, Facebinder, ShapeString, Hatch
- Annotation: Text, Dimension, Label, Annotation Styles, Annotation Scale
- Modification: Move, Rotate, Scale, Mirror, Offset, Trimex, Stretch, Clone, Array, Polar Array, Circular Array, Path Array, Path Link Array, Point Array, Point Link Array, Edit, Highlight Subelements, Join, Split, Upgrade, Downgrade, Convert Wire/B-Spline, Draft to Sketch, Set Slope, Flip Dimension, Shape 2D View
- Draft Tray: Working Plane, Set Style, Toggle Construction Mode, AutoGroup
- Snapping: Snap Lock, Snap Endpoint, Snap Midpoint, Snap Center, Snap Angle, Snap Intersection, Snap Perpendicular, Snap Extension, Snap Parallel, Snap Special, Snap Near, Snap Ortho, Snap Grid, Snap Working Plane, Snap Dimensions, Toggle Grid
- Miscellaneous: Apply Current Style, New Layer, Manage Layers, New Named Group, SelectGroup, Add to Layer, Add to Group, Add to Construction Group, Toggle Wireframe, Working Plane Proxy, Heal, Show Snap Toolbar
- Additional: Constraining, Pattern, Preferences, Import Export Preferences, DXF/DWG, SVG, OCA, DAT
- Context menu:
- Most objects: Edit
- Layer container: Add New Layer, Reassign Properties of All Layers, Merge Layer Duplicates
- Layer: Activate Layer, Reassign Properties of Layer, Select Layer Contents
- Text and label: Open Links
- Wire: Flatten
- Working plane proxy: Save Camera Position, Save Visibility of Objects
- Начинающим
- Установка: Загрузка, Windows, Linux, Mac, Дополнительных компонентов, Docker, AppImage, Ubuntu Snap
- Базовая: О FreeCAD, Интерфейс, Навигация мыши, Методы выделения, Имя объекта, Настройки, Верстаки, Структура документа, Свойства, Помоги FreeCAD, Пожертвования
- Помощь: Учебники, Видео учебники
- Верстаки: Std Base, Arch, Assembly, CAM, Draft, FEM, Inspection, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Surface, TechDraw, Test Framework