.hdf file created by Salome 9.14.0 not displaying geo or mesh data in salome-meca2024.1

I’ve created an .hdf file in Salome-9.14.0, but when using salome-meca 2024 “salome_meca-lgpl-2024.1.0-1-20240327-scibian-11”, the mesh and geo models, although listed, are not able to be made visible, ie no “show or hide” option available, even the eye icons are not shown. When moving to the aster module the application quits with the error
“BinLDrivers_DocumentRetrievalDriver: error: wrong file version: 12 while current is 10 Unable to load component”. The hdf file was created within a Ubuntu22LTS container, but the same also happens in windows, but in both Windows versions of Salome-9.14.0 and Salome-meca9.12.0 also has the same problem?

It appears that the current salome-meca is using a older version of salome?

Any thoughts?
Thanks
Stuart

Hi,

this happens when loading a hdf created with a new version of SALOME in an older version of SALOME.

You can try to dump your study to python script (menu File > Dump study) from SALOME, and load it in Salome_Meca. Some modifications in the python script might be needed if you used some new features of SALOME 9.14.

Best regards,

Christophe

Thank you Christopher, much appreciated.

I tried this and got the following error, any suggestions?

>>> exec(compile(open(‘D:/Users/Stuart/Documents/Drawings/SalometoElmer/UteStudy2.py’, ‘rb’).read(), ‘D:/Users/Stuart/Documents/Drawings/SalometoElmer/UteStudy2.py’, ‘exec’))
Traceback (most recent call last):
File “”, line 1, in
File “D:/Users/Stuart/Documents/Drawings/SalometoElmer/UteStudy2.py”, line 34, in
UteStudy2_GEOM.RebuildData()
File “D:/Users/Stuart/Documents/Drawings/SalometoElmer\UteStudy2_GEOM.py”, line 21, in RebuildData
angled_front_panel_step_1 = geompy.ImportSTEP(“/home/elmeruser/Documents/Salome/angled front panel.step”, False, True)
File “C:\Users\Administrator\OneDrive\Desktop\v2024\W64\GEOM\lib\python3.6\site-packages\salome\salome\STEPPlugin\STEPPluginBuilder.py”, line 116, in ImportSTEP
RaiseIfFailed(“ImportSTEP”, anOp)
File “C:\Users\Administrator\OneDrive\Desktop\v2024\W64\GEOM\lib\python3.6\site-packages\salome\salome\geom\geomBuilder.py”, line 383, in RaiseIfFailed
raise RuntimeError(Method_name + " : " + Operation.GetErrorCode())
RuntimeError: ImportSTEP : Wrong format of the imported file. Can’t import file.

The STEP file “angled front panel.step” was imported in the hdf in a linux filesystem. Now the python script is launched in a Windows filesystem. Put the STEP file in a directory on your Windows filesystem and change the path to it in the python script.

Christophe