Draft: Serie su punti
Draft PointArray |
Posizione nel menu |
---|
Draft → PointArray |
Ambiente |
Draft, Arch |
Avvio veloce |
Nessuno |
Introdotto nella versione |
0.18 |
Vedere anche |
Array, PathArray |
Descrizione
Lo strumento PointArray posiziona le copie di una forma selezionata lungo vari punti selezionati.
Utilizzo
- Creare l'oggetto shape che si desidera distribuire. I migliori risultati si ottengono quando l'oggetto è centrato sull'origine, cioè, se la sua Datiposizione è [0,0,0].
- Posizionare punti usando Punto di Draft.
- Selezionare i punti e creare un composto usando Upgrade.
- Prima selezionare la forma, poi il nuovo composto di punti, quindi premi il pulsante PointArray.
Options
- The array starts with shape copies which are not aligned to the path, nor translated to a new position by default. You can then change the alignment and/or translation vector in the properties.
Properties
- DatiBase: The shape object
- DatiCount: The number of times to copy the shape (read only)
- DatiPointList: a compound of points
Scripting
The PointArray tool can be used in macros and from the Python console by using the following function:
makePointArray(base, ptlst)
base
is the shape to copy, andptlst
is an object with Geometry, Links, or Components that define the position of the copies.
Example:
import FreeCAD, Draft
poly = Draft.makePolygon(3, radius=500.0)
p1 = Draft.makePoint(FreeCAD.Vector(1500, 0, 0))
p2 = Draft.makePoint(FreeCAD.Vector(2500, 0, 0))
p3 = Draft.makePoint(FreeCAD.Vector(2000, 1000, 0))
upg = Draft.upgrade([p1, p2, p3], delete=True)
compound = upg[0][0] # Extract the compound from the list
array = Draft.makePointArray(poly, compound)
Usage Notes
- in progress