EM Fichier entrée FH

From FreeCAD Documentation
Revision as of 16:08, 5 July 2020 by David69 (talk | contribs) (Created page with "L'outil FHInputFile peut-être utilisé dans des macros et depuis la console Python en utilisant la fonction suivante:")
Other languages:

EM FHInputFile

Emplacement du menu
EM → FHInputFile
Ateliers
EM (Addon)
Raccourci par défaut
E I
Introduit dans la version
0.17
Voir aussi
EM FHSolver

Description

L'outil FHInputFile crée le fichier FastHenry d'entrée basé sur les objets de l'atelier Document EM.

Utilisation

Pour créer un fichier d'entrée FastHenry:

  1. Créez un objet EM FHSolver et d'autres objets d'atelier EM représentant la géométrie 3D requise pour votre modèle.
  2. Appuyez sur le bouton EM FHInputFile ou appuyez sur les touches E puis I.

Remarques

  • Dans le cas où un fichier avec le même nom dans le dossier donné comme spécifié dans l'objet EM FHSolver existe déjà, vous serez invité à remplacer ou non.
  • Le document peut également contenir des objets non EM Workbench. Ils seront ignorés lors de la création du fichier d'entrée FastHenry. Vous pouvez donc utiliser tout autre type d'objet FreeCAD comme guide pour vos modèles EM Workbench.

Script

Voir aussi : Débuter avec les scripts.

L'outil FHInputFile peut-être utilisé dans des macros et depuis la console Python en utilisant la fonction suivante:

node = createFHInputFile(doc=None,filename=None,folder=None)
  • Outputs a FastHenry input file based on the active document geometry.
  • 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 DonnéesFilename property of the FHSolver object contained in the document will be used. If the DonnéesFolder 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 DonnéesFolder property of the FHSolver object contained in the document will be used. If the DonnéesFolder 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")

Example:

import FreeCAD, EM

fhsolver = EM.createFHInputFile()