Oddities when booting inventor through an external vb.net program

Oddities when booting inventor through an external vb.net program

davidt162003
Advocate Advocate
123 Views
0 Replies
Message 1 of 1

Oddities when booting inventor through an external vb.net program

davidt162003
Advocate
Advocate

Hiya ive been noticing some oddites which seem to only occur when i boot inventor using this code 

   Private Sub _TryAndOpenInventor()
       Try
           _App = Marshal.GetActiveObject(InventorAppName)
           NotifyDriverReport("Inventor Already Open")
       Catch
           Try
               Dim pInventorAppType = Type.GetTypeFromProgID(InventorAppName)
               _App = Activator.CreateInstance(pInventorAppType)
               NotifyDriverReport("Inventor opened new")
               _InventorWasOpenedFresh = True
           Catch
           End Try
       End Try

       If _App Is Nothing Then
           NotifyDriverReport("Open Inventor Failed")
           RaiseEvent OpenAppFailed()
       Else
           RaiseEvent OpenAppSuceeded()
           NotifyDriverReport("Open Inventor Succeeded")
       End If
   End Sub

stuff like:

  • Not being able to save the file using the UI(still seems to work via the API) 
  • the top ribbon not appearing
  • and something i dont really car about anyway but the home tab not being present

 

Im not quite sure what is causing these, But is their any way to get around them?

HII
0 Likes
124 Views
0 Replies
Replies (0)