Inventor API (Apprentice) C# reference not working (MissingMethodException)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I want to build a small C# program to generate wireframe images of our parts (.ipt/.iam) using Apprentice in C#.
I followed the instructions on the Inventor help along with some tutorials from Mod the machine blog , but the issue I am having seems to be with the .Net Assembly reference to Inventor.
When I add the reference from the following folder : [INVENTOR 2021 INSTALL PATH]/Bin/Public Assemblies/Autodesk.Inventor.Interop.dll my program compiles, but during runtime it seems most of the methods on objects are unavailable and I run into a "Catastrophic failure" error when trying to set the camera "SceneObject" (see attachments).
I have a feeling it might be linked to administrator rights (my company has pretty restrictive rights), but I tried running both Inventor & my IDE in Administrator mode and the issue is still there.
Please tell me if you need more details to assist me, your help would be very appreciated!
Simon