|
Menu location |
---|
EM → FHPath |
Workbenches |
EM |
Default shortcut |
E T |
Introduced in version |
0.17 |
See also |
EM FHNode, EM FHSegment |
The FHPath tool inserts a FHPath object, that is a set of FastHenry segments along a path.
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.
See also: FreeCAD Scripting Basics.
The FHPath object can be used in macros and from the Python console by using the following function:
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 objectExample:
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()