|
Menu location |
---|
EM → FHPath |
Workbenches |
EM |
Default shortcut |
E T |
Introduced in version |
0.17 |
See also |
EM FHNode, EM FHSegment |
Das Werkzeug FHPath fügt ein FHPath-Objekt ein, das aus einem Satz von FastHenry-Segmenten entlang eines Pfades besteht.
FastHenry FHPath
The FHPath object can be based on any shape containing edges, but the FHPath object is designed to work best with the support of a sketch or a wire.
Siehe auch: FreeCAD Grundlagen Skripten.
Das Objekt FHPath kann in Makros und von der Python-Konsole aus mit der folgenden Funktion verwendet werden:
path = makeFHPath(baseobj=None,name='FHPath')
FHPath
object.baseobj
is the object that can be used as base for the FHPath. If no baseobj
is given, the user must assign a base object later on, to be able to use this object. The baseobj
is mandatory, and can be any shape containing edges, even if the FHPath object is designed to work best with the support of a sketch or a wire.name
is the name of the objectBeispiel:
import FreeCAD, EM
from FreeCAD import Base
import Part, PartGui
spiral = App.ActiveDocument.addObject("Part::Spiral","Spiral")
spiral.Growth=1.00
spiral.Rotations=4.00
spiral.Radius=1.00
spiral.Placement=Base.Placement(Base.Vector(0.00,0.00,0.00),Base.Rotation(0.00,0.00,0.00,1.00))
spiral.Label='Spiral'
fhpath = EM.makeFHPath(spiral)
fhpath.Discr = 40
App.ActiveDocument.recompute()