Can we startup Inventor in French or English with VB.NET?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I to all,
Is there a way to select a language pack (FRA), when we open Inventor program on startup instead on English (ENU)? Each time I open the VB.NET, I want to be able to select from ENU or FRA language pack.
Thank's!
Part of my VB:
Imports System
Imports System.Type
Imports System.Activator
Imports System.Runtime.InteropServices
Imports Inventor
Public Class Form1
Dim _invApp As Inventor.Application
Dim _started As Boolean
Public Sub New()
' This call is required by the designer.
InitializeComponent()
' Add any initialization after the InitializeComponent() call.
Try
_invApp = Marshal.GetActiveObject("Inventor.Application")
Catch ex As Exception
Try
Dim oInvAppType As Type = GetTypeFromProgID("Inventor.Application")
_invApp = CreateInstance(oInvAppType)
'I would like to select from these Inventor language pack;
'"C:\Program Files\Autodesk\Inventor 2016\Bin\Inventor.exe" /language=ENU
'"C:\Program Files\Autodesk\Inventor 2016\Bin\Inventor.exe" /language=FRA
_invApp.Visible = True
'Note: if you shut down the Inventor session that was started
'this(way) there is still an Inventor.exe running. We will use
'this Boolean to test whether or not the Inventor App will
'need to be shut down.
_started = True
Catch ex2 As Exception
MsgBox(ex2.ToString())
MsgBox("Unable to get or start Inventor")
End Try
End Try
Me.TopMost = True
End Sub