Draft: PointArray

From FreeCAD Documentation
Jump to navigation Jump to search
This page is a translated version of the page Draft PointArray and the translation is 10% complete.
Outdated translations are marked like this.
Other languages:
Deutsch • ‎English • ‎Türkçe • ‎español • ‎français • ‎italiano • ‎polski • ‎português do Brasil • ‎română • ‎русский

Draft PointArray.svg 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.

Both commands 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.

Draft PointArray Example.png

Draft PointArray

Cum se folosește

  1. 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ă Date position este [0, 0, 0].
  2. Poziționați punctele folosind Punct de tragere.
  3. Selectați punctele și creați o combinație a acestora utilizând Draft Upgrade.
  4. Mai întâi selectați forma, apoi noul compus punct, apoi apăsați butonul 16px Draft PointArray.

Point compound

A point compound is an object that contains one or more points. These are the supported point compounds and how they can be created:

Proprietăți

See also: Property editor.

A Draft PointArray 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:

Data

Link

The properties in this group are only available for Link arrays. See Std LinkMake for more information.

  • DateScale (Float)
  • Date (Hidden)Scale Vector (Vector)
  • DateScale List (VectorList)
  • Date (Hidden)Visibility List (BoolList)
  • Date (Hidden)Placement List (PlacementList)
  • Date (Hidden)Element List (LinkList)
  • Date (Hidden)_ Link Touched (Bool)
  • Date (Hidden)_ Child Cache (LinkList)
  • Date (Hidden)Colored Elements (LinkSubHidden)
  • DateLink Transform (Bool)

Objects

  • Date Base: Obiectul formei
  • Date Count: Numărul de copiere a formei (numai pentru citire)
  • Date PointList: un compus de puncte

View

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.

  • VizualizareDraw Style (Enumeration)
  • VizualizareLine Width (FloatConstraint)
  • VizualizareOverride Material (Bool)
  • VizualizarePoint Size (FloatConstraint)
  • VizualizareSelectable (Bool): this is an inherited property that appears in the Selection group for other arrays
  • VizualizareShape 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.

  • Vizualizare (Hidden)Child View Provider (PersistentObject)
  • Vizualizare (Hidden)Material List (MaterialList)
  • Vizualizare (Hidden)Override Color List (ColorList)
  • Vizualizare (Hidden)Override Material List (BoolList)
  • Vizualizare (Hidden)Proxy (PythonObject): this is an inherited property.

Display Options

The properties in this group are inherited properties. See Part Feature for more information.

  • VizualizareBounding Box (Bool): this property is not inherited by Link arrays.
  • VizualizareDisplay Mode (Enumeration): for Link arrays it can be Link or ChildView. For other arrays it can be: Flat Lines, Shaded, Wireframe or Points
  • VizualizareShow In Tree (Bool)
  • VizualizareVisibility (Bool)

Draft

  • VizualizarePattern (Enumeration): not used.
  • VizualizarePattern Size (Float): not used.

Object style

The properties in this group are not inherited by Link arrays.

Scripting

Scrip-Programare

Instrumentul PointArray poate fi utilizat în macros și de la consola Python utilizând următoarele funcții:

point_array = make_point_array(base_object, point_object, extra=None, use_link=True)
  • base este forma de copiat și ptlst 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()