Draft Réseau selon une courbe
Draft_PathArray |
Emplacement du menu |
---|
Draft -> PathArray |
Ateliers |
Draft, Arch |
Raccourci par défaut |
Aucun |
Introduit dans la version |
- |
Voir aussi |
Draft Array |
Description
L'outil PathArray place des copies d'une forme sélectionnée le long d'un chemin sélectionné. Le chemin peut être un fil ou une ou plusieurs arêtes. Les formes peuvent éventuellement être alignées sur la tangente du tracé. Si nécessaire, un ajustent des vecteurs peut être spécifié pour déplacer les formes afin que le centre de gravité se trouve sur le chemin. Si aucun objet n'est sélectionné, vous serez invité à sélectionner un objet.
How to use
- Select a shape object you wish to distribute.
- Select a path object along which the shapes will be distributed. -or-
- Select some edges of a path object.
- Press the Draft PathArray button.
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 count, alignment and/or translation vector in the properties.
Properties
- DonnéesBase: The shape object
- DonnéesPathObj: The path object
- DonnéesPathSubs: The subelements(edges) of path object to be used as the path
- DonnéesCount: The number of time to copy the shape
- DonnéesXlate: The translation vector
- DonnéesAlign: True to align the shapes to the path, False to leave shapes in their default orientation.
Scripting
The PathArray tool can by used in macros and from the python console by using the following function:
makePathArray(shapeobject,pathobject,count,[translationvector],[alignment],[listofpathsubelements])
- Distribute count copies of a document shapeobject along a pathobject or subobjects of a pathobject. Optionally translates each copy by FreeCAD.Vector xlate direction and distance to adjust for difference in shape centre vs shape reference point. Optionally aligns baseobject to tangent/normal/binormal of path.
Example:
import FreeCAD,Draft
Draft.makePathArray(base,path,items,centretrans,orient,pathsubs)
Limitations
- This tool is not available before version 0.14
- The PathSubs Property does not yet appear in the properties list.