Hi there,
I'm looking for an API function which would identify the version of Autodesk Inventor that has been launched. The code I"m using to start Inventor is:
CLSID clsid; HRESULT hres = NOERROR; CoInitialize(NULL); hres = CLSIDFromProgID(OLESTR("Inventor.Application"), &clsid); if (hres == S_OK) { hres = aiApp.CoCreateInstance(clsid, NULL, CLSCTX_LOCAL_SERVER); if (hres == S_OK) aiApp->Visible = VARIANT_FALSE; }
Thanks!
Solved! Go to Solution.
Solved by matt_jlt. Go to Solution.
You can all of the version information directly under the application API.
See below examples:
ThisApplication.SoftwareVersion.DisplayVersion
ThisApplication.SoftwareVersion.BuildIdentifier
ThisApplication.SoftwareVersion.DisplayName
You can use Visual Basic Object browser to find all of the API commands.
Sanjay, if this solves you problem please accept it as the solution to make it easier for people with the same problem to see that it has a solution.
Thanks, Matt.