Hi guys,
What would be the easiest way to check an Inventor file version to make sure that the open/openwithoptions methods dont crash if the file version is newer than the current Inventor being used to run the application through.
I run multiple versions of Inventor on my PC and as such have multiple Inventor file versions on my PC. If I try and access/open a file with one of my apps using either the full API or Apprentice, it crashes the app at that point if the file version is newer than what the current Inventor version can handle. I would like to catch this before it gets there.
Hope it makes sense and that someone can help.
Cheers
Solved! Go to Solution.
Solved by philippe.leefsma. Go to Solution.
Application.FileManager.SoftwareVersionSaved will get the job done without opening the file.
It's only available from Inventor, I don't think there is a way through an Apprentice App.
Hope it helps,
Philippe.
Hi philippe,
I have started implementing this in one of my applications. So for testing purposes I have three versions of Inventor installed on my PC. This is the code I use:
Dim oFileMan As Inventor.FileManager oFileMan = oApp.FileManager Dim intFileversion As Integer For Each Filename In OpenFileDialog1.FileNames intFileversion = FileMan.SoftwareVersionSaved(Filename).Major ...
The above works fine with Inventor 2014 running but crashes Inventor 2013 completely on the last line of code when the file version is actually higher than 2013.
Any ideas?
Hi philippe,
Ok I have loaded Inventor 2013 SP2 plus Update 4 for SP2 and now the problem is gone.
I had SP 1.1 loaded before.
Thanks
Cheers