Start an Inventor Instance using API

Start an Inventor Instance using API

Anonymous
Not applicable
1,324 Views
3 Replies
Message 1 of 4

Start an Inventor Instance using API

Anonymous
Not applicable

Hi All,

  I am using Inventor 2014 API for the automation using VB.Net code .hre I using vb.net code for start an instance of an inventor.the code  is

 

 inventorApp = CreateObject("Inventor.Application", "")
 inventorApp.Visible = True

But using this ,when we start visual studio ru as administrator the createobject having some error.

 My Question is,  is it possible any other way to start an Instance of an inventor.??

0 Likes
1,325 Views
3 Replies
Replies (3)
Message 2 of 4

peteh
Enthusiast
Enthusiast

What operating system are you using?

 

If it is Windows 8, Inventor API is not compatable when you run an application as Administrator.

 

Also, I use  inventorApp = CreateObject("Inventor.Application") without the empty quotes you have for the server name.

Message 3 of 4

Vladimir.Ananyev
Alumni
Alumni

You also may consider this .NET style:

    Dim inventorAppType As Type = System.Type _
          .GetTypeFromProgID("Inventor.Application")
    Dim oApp As Inventor.Application = System _
          .Activator.CreateInstance(inventorAppType)
    oApp.Visible = True

 cheers,


Vladimir Ananyev
Developer Technical Services
Autodesk Developer Network

Message 4 of 4

Anonymous
Not applicable

OkeySmiley Happy

0 Likes