- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
Inventor 2018 and 2019 are installed on my PC.
I maked some standalone application, which was using ApprenticeServer.
The application always use the ApprenticeServer 2018.
Why my app cannot call 2019?
It seems that version of the ApprenticeServer is statically fixed to 2018.
I did following things...
1) Change the interop version to 2019.
2) Target framework was changed to .NET Framework 4.7..2.
3) run "C:\Program Files\Autodesk\Inventor 2019\Bin\ApprenticeRegSvr.exe" .
4) I maked small program which is cheking version of the ApprenticeServer and Inventor.
public partial class Form1 : Form { public Form1() { InitializeComponent(); // Inventor.ApprenticeServer apprenticeServer; apprenticeServer = new ApprenticeServerComponent(); richTextBox1.Text = "ApprenticeServer : " + apprenticeServer.SoftwareVersion.DisplayName + System.Environment.NewLine; // Inventor.Application inventorApp; inventorApp = (Inventor.Application)Activator.CreateInstance(Type.GetTypeFromProgID("Inventor.Application")); richTextBox1.Text += "Inventor : " + inventorApp.SoftwareVersion.DisplayName; inventorApp.Quit(); System.Runtime.InteropServices.Marshal.ReleaseComObject(inventorApp); } }
Result is...
5) I Prepared a new PC and InventorView2019 was installed.
My tool failed to initialize ApprenticeServerComponent.
After installing InventorView2018, the tool worked fine.
Solved! Go to Solution.