Draft PointArray/ro: Difference between revisions

From FreeCAD Documentation
(Created page with "Exempluː")
(Updating to match new version of source page)
 
(19 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<languages/>
<languages/>

{{Docnav
|[[Draft_PathLinkArray|PathLinkArray]]
|[[Draft_PointLinkArray|PointLinkArray]]
|[[Draft_Workbench|Draft]]
|IconL=Draft_PathLinkArray.svg
|IconR=Draft_PointLinkArray.svg
|IconC=Workbench_Draft.svg
}}

<div class="mw-translate-fuzzy">
{{GuiCommand
{{GuiCommand
|Name=Draft PointArray
|Name=Draft PointArray
|Icon=Draft_PointArray.svg
|Icon=Draft_PointArray.svg
|Workbenches=[[Draft Module|Draft]], [[Arch Module|Arch]]
|Workbenches=[[Draft Workbench|Draft]], [[Arch Workbench|Arch]]
|MenuLocation=Draft → PointArray
|MenuLocation=Draft → PointArray
|Version=0.18
|Version=0.18
|SeeAlso=[[Draft Array|Draft Array]], [[Draft PathArray]]
|SeeAlso=[[Draft Array|Draft Array]], [[Draft PathArray]]
}}
}}
</div>


<span id="Description"></span>
==Descriere==
==Descriere==


<div class="mw-translate-fuzzy">
Instrumentul PointArray plasează copii ale unei forme selectate de-a lungul diferitelor puncte selectate.
Instrumentul PointArray plasează copii ale unei forme selectate de-a lungul diferitelor puncte selectate.
</div>

The base object can be a 2D object created with the [[Draft_Workbench|Draft Workbench]] or [[Sketcher_Workbench|Sketcher Workbench]], but also a 3D object such as those created with the [[Part_Workbench|Part Workbench]], [[PartDesign_Workbench|PartDesign Workbench]] or [[Arch_Workbench|Arch Workbench]].

The point object can be any object with a shape and vertices (including a [[Std_Part|Std Part]] containing one or more of such objects), as well as a [[Mesh_Workbench|mesh]] and a [[Points_Workbench|point cloud]]. Duplicate points in the point object are filtered out. {{Version|0.21}}

In {{VersionMinus|0.20}} only three point object types are supported see [[#Point_object_version_0.20_and_below|Point object version 0.20 and below]].


[[Image:Draft_PointArray_Example.png|400px]]
[[Image:Draft_PointArray_Example.png|400px]]
{{Caption|Draft PointArray}}


<span id="Usage"></span>
<div class="mw-translate-fuzzy">
== Cum se folosește ==
== Cum se folosește ==
</div>


<div class="mw-translate-fuzzy">
# 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ă {{PropertyData | position}} este [0, 0, 0].
# 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ă {{PropertyData | position}} este [0, 0, 0].
# Poziționați punctele folosind [[Punct de tragere]].
# Poziționați punctele folosind Punct de tragere.
# Selectați punctele și creați o combinație a acestora utilizând [[Draft Upgrade]].
# 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 {{KEY | [[Imagine: Draft_PointArray.svg | 16px]] [[Draft PointArray]]}}.
# Mai întâi selectați forma, apoi noul compus punct, apoi apăsați butonul {{KEY | [[Image: Draft_PointArray.svg | 16px]] [[Draft PointArray]]}}.
</div>


== Point object version 0.20 and below ==
== Opţiuni ==


These are the supported point objects in {{VersionMinus|0.20}} and how they can be created:
* 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.
* [[Part_Compound|Part Compound]]: Create one or more [[Draft_Point|Draft Points]] or [[Part_Point|Part Points]], select them and invoke the [[Part_Compound|Part Compound]] command.
* Draft Block: Create one or more [[Draft_Point|Draft Points]] or [[Part_Point|Part Points]], select them and invoke the [[Draft_Upgrade|Draft Upgrade]] command.
* [[Sketcher_NewSketch|Sketcher Sketch]]: Create a [[Sketcher_NewSketch|Sketch]] and add one or more [[Sketcher_CreatePoint|Sketcher Points]] to the sketch.


<span id="Properties"></span>
==Proprietăți==
==Proprietăți==


See also: [[property_editor|Property editor]].

A Draft PointArray object is derived from a [[Part_Feature|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===

{{TitleProperty|Link}}

The properties in this group are only available for Link arrays. See [[Std_LinkMake#Properties|Std LinkMake]] for more information.

* {{PropertyData|Scale|Float}}
* {{PropertyData|Scale Vector|Vector|Hidden}}
* {{PropertyData|Scale List|VectorList}}
* {{PropertyData|Visibility List|BoolList|Hidden}}
* {{PropertyData|Placement List|PlacementList|Hidden}}
* {{PropertyData|Element List|LinkList|Hidden}}
* {{PropertyData|_ Link Touched|Bool|Hidden}}
* {{PropertyData|_ Child Cache|LinkList|Hidden}}
* {{PropertyData|Colored Elements|LinkSubHidden|Hidden}}
* {{PropertyData|Link Transform|Bool}}

{{TitleProperty|Objects}}

<div class="mw-translate-fuzzy">
* {{PropertyData | Base}}: Obiectul formei
* {{PropertyData | Base}}: Obiectul formei
* {{PropertyData | Count}}: Numărul de copiere a formei (numai pentru citire)
* {{PropertyData | Count}}: Numărul de copiere a formei (numai pentru citire)
* {{PropertyData | PointList}}: un compus de puncte
* {{PropertyData | PointList}}: un compus de puncte
</div>


===View===

{{TitleProperty|Link}}

The properties in this group, with the exception of the inherited property, are only available for Link arrays. See [[Std_LinkMake#Properties|Std LinkMake]] for more information.

* {{PropertyView|Draw Style|Enumeration}}
* {{PropertyView|Line Width|FloatConstraint}}
* {{PropertyView|Override Material|Bool}}
* {{PropertyView|Point Size|FloatConstraint}}
* {{PropertyView|Selectable|Bool}}: this is an inherited property that appears in the Selection group for other arrays
* {{PropertyView|Shape Material|Material}}

{{TitleProperty|Base}}

The properties in this group, with the exception of the inherited property, are only available for Link arrays. See [[Std_LinkMake#Properties|Std LinkMake]] for more information.

* {{PropertyView|Child View Provider|PersistentObject|Hidden}}
* {{PropertyView|Material List|MaterialList|Hidden}}
* {{PropertyView|Override Color List|ColorList|Hidden}}
* {{PropertyView|Override Material List|BoolList|Hidden}}
* {{PropertyView|Proxy|PythonObject|Hidden}}: this is an inherited property.

{{TitleProperty|Display Options}}

The properties in this group are inherited properties. See [[Part_Feature#Properties|Part Feature]] for more information.

* {{PropertyView|Bounding Box|Bool}}: this property is not inherited by Link arrays.
* {{PropertyView|Display Mode|Enumeration}}: for Link arrays it can be {{value|Link}} or {{value|ChildView}}. For other arrays it can be: {{value|Flat Lines}}, {{value|Shaded}}, {{value|Wireframe}} or {{value|Points}}
* {{PropertyView|Show In Tree|Bool}}
* {{PropertyView|Visibility|Bool}}

{{TitleProperty|Draft}}

* {{PropertyView|Pattern|Enumeration}}: not used.
* {{PropertyView|Pattern Size|Float}}: not used.

{{TitleProperty|Object style}}

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

==Scripting==

<div class="mw-translate-fuzzy">
== Scrip-Programare ==
== Scrip-Programare ==
</div>


<div class="mw-translate-fuzzy">
Instrumentul PointArray poate fi utilizat în [[macros]] și de la consola [[Python]] utilizând următoarele funcții:
Instrumentul PointArray poate fi utilizat în [[macros]] și de la consola [[Python]] utilizând următoarele funcții:
</div>


{{Code|code=
{{Code|code=
point_array = make_point_array(base_object, point_object, extra=None, use_link=True)
makePointArray(base, ptlst)
}}
}}

<div class="mw-translate-fuzzy">
* {{incode|base}} este forma de copiat și {{incode | ptlst}} este un obiect cu geometrie, legături sau componente care definesc poziția copiilor.
* {{incode|base}} este forma de copiat și {{incode | ptlst}} este un obiect cu geometrie, legături sau componente care definesc poziția copiilor.
</div>

Exempluː


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


doc = App.newDocument()
poly = Draft.makePolygon(3, radius=500.0)

p1 = Draft.makePoint(FreeCAD.Vector(1500, 0, 0))
p2 = Draft.makePoint(FreeCAD.Vector(2500, 0, 0))
polygon = Draft.make_polygon(3, radius=500.0)

p3 = Draft.makePoint(FreeCAD.Vector(2000, 1000, 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()
}}


upg = Draft.upgrade([p1, p2, p3], delete=True)
compound = upg[0][0] # Extract the compound from the list


{{Docnav
array = Draft.makePointArray(poly, compound)
|[[Draft_PathLinkArray|PathLinkArray]]
|[[Draft_PointLinkArray|PointLinkArray]]
|[[Draft_Workbench|Draft]]
|IconL=Draft_PathLinkArray.svg
|IconR=Draft_PointLinkArray.svg
|IconC=Workbench_Draft.svg
}}
}}


{{Draft Tools navi{{#translation:}}}}
==Usage Notes==
{{Userdocnavi{{#translation:}}}}
* {{emphasis|in progress}}

Latest revision as of 20:21, 29 April 2023

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 base object can be a 2D object created with the Draft Workbench or Sketcher Workbench, but also a 3D object such as those created with the Part Workbench, PartDesign Workbench or Arch Workbench.

The point object can be any object with a shape and vertices (including a Std Part containing one or more of such objects), as well as a mesh and a point cloud. Duplicate points in the point object are filtered out. introduced in version 0.21

In version 0.20 and below only three point object types are supported see Point object version 0.20 and below.

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

Point object version 0.20 and below

These are the supported point objects in version 0.20 and below 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()