Use Inventor View without registering it

By Adam Nagy

As pointed out in this blog post, from Inventor 2012 onwards Inventor does not register the View component.

If you do not want to or cannot register the component using the regsvr32 utility, then you can embed a manifest in your application instead. In this case however, you'll need to make sure that InventorViewCtrl.ocx is in the same folder as your application: you can either distribute this file with your application or copy the one installed with Inventor or Inventor View.

You can use the mt.exe utility to get the manifest itself from VS Command Prompt run as Administrator:

Mtexe

Then through the Project Settings you can get it embedded in your project:

Projectsettings

In case of Inventor 2015 you still need the workaround even when using Registration Free method:
http://adndevblog.typepad.com/manufacturing/2014/10/using-inventor-view-from-64-and-32-bit-process.html  

Here is the sample code: https://github.com/adamenagy/InventorView-FileDisplay-.NET-4.0-RegFree 


Comments

Leave a Reply

Discover more from Autodesk Developer Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading