-salome_pluginsmanager.AddFunction('Meshed Pipe with a crack',
- 'Create a mesh with blocFissure tool',
- fissureCoudeDlg)
+try:
+ from blocFissure.ihm.fissureCoude_plugin import fissureCoudeDlg
+ salome_pluginsmanager.AddFunction('Meshed Pipe with a crack',
+ 'Create a mesh with blocFissure tool',
+ fissureCoudeDlg)
+except:
+ salome_pluginsmanager.logger.info('ERROR: Meshed Pipe with a crack plug-in is unavailable')
+ pass
+try:
+ from blocFissure.ihm.fissureGenerale_plugin import fissureGeneraleDlg
+ salome_pluginsmanager.AddFunction('Add a crack in a mesh',
+ 'Insert a crack in an hexahedral mesh with blocFissure tool',
+ fissureGeneraleDlg)
+except:
+ salome_pluginsmanager.logger.info('ERROR: Meshed Pipe with a crack plug-in is unavailable')
+ pass
+
+# ZCracks plugin requires the module EFICAS to be installed
+# thus it is first tested if this module is available before
+# adding the plugin to salome_pluginsmanager
+try:
+ import eficasSalome
+ from zcracks_plugin import ZcracksLct
+ salome_pluginsmanager.AddFunction('Run Zcrack',
+ 'Run Zcrack',
+ ZcracksLct)
+except:
+ salome_pluginsmanager.logger.info('ERROR: Zcrack plug-in is unavailable')
+ pass