Draft: PointArray
Menu location |
---|
Draft → PointArray |
Workbenches |
Draft, Arch |
Default shortcut |
None |
Introduced in version |
0.18 |
See also |
Draft Array, Draft PathArray |
Descriere
Instrumentul PointArray plasează copii ale unei forme selectate de-a lungul diferitelor puncte selectate.
The PointArray tool can be used on any object that has a Part TopoShape, meaning 2D shapes created with the Draft Workbench, but also 3D solids created with other workbenches, for example, Part, PartDesign, or Arch.
- To create orthogonal, polar or circular arrays, use the corresponding
OrthoArray,
PolarArray, or
CircularArray tools.
- To position App Link copies at specified points use
PointLinkArray.
- To position copies along a path use
PathArray or
PathLinkArray.
- To create copies and manually place them use
Move or
Rotate.
- To create exact copies and manually place or scale them, use
Clone or
Std LinkMake.
Object arranged at specific points
Cum se folosește
- Creați un obiect de formă pe care doriți să îl distribuiți. Veți obține cele mai bune rezultate dacă obiectul dvs. este centrat în jurul originii "" ', adică dacă Data position este [0, 0, 0].
- Poziționați punctele folosind Punct de tragere.
- Selectați punctele și creați o combinație a acestora utilizând Draft Upgrade.
- Mai întâi selectați forma, apoi noul compus punct, apoi apăsați butonul 16px Draft PointArray.
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.
Point compound
The point compound object can be created in different ways.
- Create various
Draft Points or
Part Points, and then press
Part Compound to create the compound.
- Repeat the previous method but instead of a compound use
Draft Upgrade to create a "Block".
- Create a
Sketch, and inside add various
Sketcher Points.
In essence, the object to be used as the compound must have one of three properties, DataComponents, DataLinks, or DataGeometry, and inside that compound, there must be at least one point with DataX, DataY, and DataZ properties.
Note: in the case of Draft Point and
Part Point the array will try to position the copies using the DataPlacement of the point. In the case of a
Sketcher Point, the position will be taken from its internal
X
, Y
, and Z
attributes.
Note 2: for Draft Point its DataPlacement always follows the values of DataX, DataY, DataZ, so modifying these values is enough to produce the desired displacement. However, for
Part Point, the net displacement is given by the sum of DataPlacement with the vector with components DataX, DataY, and DataZ.
Opţiuni
- Matricea de repetabilitate începe cu copii ale formelor care nu sunt aliniate la cale, nici traduse la o nouă poziție în mod implicit. Apoi puteți schimba vectorul, aliniere și/sau transalație în proprietăți.
Proprietăți
A PointArray is derived from a Part Feature (Part::Feature
class), therefore it shares all the latter's properties. In addition to the properties described in Part Feature, the PointArray has the following properties in the property editor.
- Data Base: Obiectul formei
- Data Count: Numărul de copiere a formei (numai pentru citire)
- Data PointList: un compus de puncte
Scrip-Programare
Instrumentul PointArray poate fi utilizat în macros și de la consola Python utilizând următoarele funcții:
Older call
point_array = makePointArray(base_object, point_object)
New call
point_array = make_point_array(base_object, point_object, extra=None):
base
este forma de copiat șiptlst
este un obiect cu geometrie, legături sau componente care definesc poziția copiilor.
Exempluː
import FreeCAD as App
import Draft
doc = App.newDocument()
polygon = Draft.make_polygon(3, radius=500.0)
p1 = Draft.make_point(App.Vector(1500, 0, 0))
p2 = Draft.make_point(App.Vector(2500, 0, 0))
p3 = Draft.make_point(App.Vector(2000, 1000, 0))
compound = doc.addObject("Part::Compound", "Compound")
compound.Links = [p1, p2, p3]
point_array = Draft.make_point_array(polygon, compound)
doc.recompute()
- Basics: Coordinates, Constraining, Snapping (Near, Extension, Parallel, Grid, Endpoint, Midpoint, Perpendicular, Angle, Center, Ortho, Intersection, Special, Dimensions, Working plane)
- Drawing: Line, Wire, Circle, Arc, Ellipse, Polygon, Rectangle, Text, Dimension, BSpline, Point, ShapeString, Facebinder, Bezier Curve, Label
- Modifying: Move, Rotate, Offset, Trimex, Upgrade, Downgrade, Scale, Edit, Wire to BSpline, Add point, Delete point, Shape 2D View, Draft to Sketch, Array, Path Array, Point Array, Clone, Drawing, Mirror, Stretch
- Utilities: Set working plane, Finish line, Close line, Undo line, Toggle construction mode, Toggle continue mode, Apply style, Toggle display mode, Add to group, Select group contents, Toggle snap, Toggle grid, Show snap bar, Heal, Flip Dimension, VisGroup, Slope, AutoGroup, Set Working Plane Proxy, Add to Construction group
- Additional: Preferences, Import-Export Preferences (DXF/DWG, SVG, OCA, DAT); Draft API

- Installation: Windows, Linux, Mac; Getting started
- Basics: About FreeCAD, Workbenches, Preferences, Document structure, Interface Customization, Properties, Mouse Model; Tutorials
- Workbenches: Arch, Draft, FEM, Image, Inspection, Mesh, OpenSCAD, Part, PartDesign, Path, Plot, Points, Raytracing, Reverse Engineering, Robot, Ship, Sketcher, Spreadsheet, Start, Surface workbench, TechDraw, Test Framework, Web
- Scripting: Introduction to Python, FreeCAD scripting tutorial, FreeCAD Scripting Basics, How to install macros, Gui Command, Units Modules: Builtin modules, Workbench creation, Installing more workbenches Meshes: Mesh Scripting, Mesh Module Parts: The Part Module, Topological data scripting, PythonOCC, Mesh to Part Coin scenegraph: The Coin/Inventor scenegraph, Pivy Qt interface: PySide, Using the FreeCAD GUI, Dialog creation Parametric objects: Scripted objects Other: Code snippets, Line drawing function, Embedding FreeCAD, FreeCAD vector math library, Power users hub, Python, Macros, FreeCAD Scripting Basics, Topological data scripting