asp.net - Start an Instance of Autodesk Inventor -


am using inventor api customizing inventor documents.here use vb.net code start instance of inventor .my code

 inventorapp = createobject("inventor.application", "")  inventorapp.visible = true 

it ok , working fine .but when open visual studio run administrator createobject having error.any 1 know other way start instance of inventor?

try using marshal method instead.

    dim m_inventorapp inventor.application     try ' try use active inventor instance          try             m_inventorapp = system.runtime.interopservices.marshal.getactiveobject("inventor.application")             m_inventorapp.silentoperation = true         catch ' if not active, create new instance of inventor             dim inventorapptype type = system.type.gettypefromprogid("inventor.application")             m_inventorapp = system.activator.createinstance(inventorapptype)             ' must set visible explicitly             m_inventorapp.visible = true             m_inventorapp.silentoperation = true         end try     catch         'cant or create instance of inventor.     end try 

Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -