Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Start an Inventor Instance using API

3 REPLIES 3
Reply
Message 1 of 4
arunkgvm
1112 Views, 3 Replies

Start an Inventor Instance using API

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.??

--- *AM* ----
Tags (1)
3 REPLIES 3
Message 2 of 4
peteh
in reply to: arunkgvm

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
in reply to: arunkgvm

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
arunkgvm
in reply to: arunkgvm

OkeySmiley Happy

--- *AM* ----

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report