How can I find out the version of FEMAP in which a modfem file was created with the API?
In this topic kadpeter says you can find it in the header of the file, but it seems that is only true when the file contains geometry (the header is linked to parasolid data?).
Any help would be appreciated.
Solved! Go to Solution.
Currently there isn't any way via the API to get the version of a .modfem file. The API only works with open models, and to open an older model, FEMAP automatically converts it to the current version.
I'm not sure what version of FEMAP you are using, but there is a new feature available with v2019.1 that allows thumbnails of your model and enhanced .modfem information to be displayed in Windows File Explorer. One of the information items is the file version. Since this is a new feature most of this will only work on v2019.1 .modfem files and beyond, however the file version will be displayed... even for older .modfem files. I realize this isn't via the API, but thought I would mention it just in case it helps.
We will consider adding this capability to the API in a future version.
I'm using v2019.1.
When FEMAP opens and converts the model it does prompt the user for input and the zReturncode for both confirming and cancelling is FE_OK. So no luck there.
As for the information in the InfoTip, I've tried and failed to get the version that way.
Thank you for your reply!
You can read from API the first 9 characters of FEMAP file (binary read, do not open as FEMAP model). I've found that in my saved models first characters are the following:
v8.00: D0 CF 11 E0 A1 B1 1A E1 00
v8.20: 66 66 66 66 66 66 20 40 5F
v9.20: 66 66 66 66 66 66 22 40 5F
v10.11: 33 33 33 33 33 33 24 40 5F
v11.00: 00 00 00 00 00 00 26 40 5F
v11.22: 66 66 66 66 66 66 26 40 5F
v11.32: 9A 99 99 99 99 99 26 40 5F
v11.42: CD CC CC CC CC CC 26 40 5F
v12.01: 00 00 00 00 00 00 28 40 5F
Check your models, I think you can so identify FEMAP versions.