EM FHInputFile |
Menu location |
---|
EM → FHInputFile |
Workbenches |
EM |
Default shortcut |
E I |
Introduced in version |
0.17 |
See also |
EM FHSolver |
The FHInputFile tool creates the input FastHenry file based on the Document EM workbench objects.
To create a FastHenry input file:
Siehe auch: FreeCAD Grundlagen Skripten.
Das Werkzeug FHInputFile kann in Makros und von der Python-Konsole aus mit der folgenden Funktion verwendet werden:
node = createFHInputFile(doc=None,filename=None,folder=None)
doc
is the Document object that must contain at least one EM_FHSolver object and the relevant geometry. If no doc
is given, the active document is used, if any.filename
is the filename to use. If not passed as an argument, the DatenFilename property of the FHSolver object contained in the document will be used. If the DatenFolder string in the FHSolver object is empty, the function builds a filename concatenating the document name with the default extension EMFHSOLVER_DEF_FILENAME
.folder
is the folder where the file will be stored. If not passed as an argument, the DatenFolder property of the FHSolver object contained in the document will be used. If the DatenFolder string in the FHSolver object is empty, the function defaults to the user's home path (e.g. in Windows "C:\Documents and Settings\username\My Documents", in Linux "/home/username")Beispiel:
import FreeCAD, EM
fhsolver = EM.createFHInputFile()