Draft: Serie su punti

From FreeCAD Documentation
Revision as of 19:27, 12 December 2018 by Renatorivo (talk | contribs) (Created page with "# Creare l'oggetto shape che si desidera distribuire. I migliori risultati si ottengono quando l'oggetto è '''centrato sull'origine''', cioè, se la sua {{PropertyData|posizi...")

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

  1. 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].
  2. Posizionare punti usando Punto di Draft.
  3. Selezionare i punti e creare un composto usando Upgrade.
  4. 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, and ptlst 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