
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi to all, is there a way to open Inventor.exe in different language (English or French)? I already loaded the French Language pack.
See below part of a VB.NET program:
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 the two below:
'Shortcut English: Inventor shortcut "C:\Program Files\Autodesk\Inventor 2016\Bin\Inventor.exe" /language=ENU
'Shortcut French: Inventor shortcut "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
Solved! Go to Solution.