iLogic, starting new inventor instance with other language
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi Guys,
i have a question. We are working with 2 Vaults here. WIth the first Vault we need German Inventor settings (Especcially Holetable translations and so on), with the other one we need english settings.
Our Problem is that we forget sometimes to change the correct Inventor Application.
So i have cheched, if its possible to change the language inside inventor. it´s not possible.
so i will write a short snippet, where a dialogbox pops up each time where a new drawing are opened or modified. If the Language and the german projectfile are not equal than the user will be asked to start automatically a new instance of inventor with german settings.
My Problem is that i dont know how can i start a new instance of inventor with start parameters.
i tried the shell command and the createobject method for this. Only a new Inventor App Object starts with local language settings.
Can you help me please? or is there a better solution for this.
Sub Main() Dim oApp As Application oApp = ThisApplication Dim CurProject As DesignProject CurProject = oApp.DesignProjectManager.ActiveDesignProject If CurProject.Name = "German Projectfile" And oApp.Locale = "1031" Then Exit Sub End If If CurProject.Name = "English Projectfile" And oApp.Locale = "1033" Then Exit Sub Else
MsgBox ("Achtung sie befinden sich im " & CurProject.Name & " Project " & _ "und haben als Programmsprache " & oApp.LanguageName & " eingestellt")
On Error Resume Next oApp = CreateObject("Inventor.Application") On Error Goto 0 ' Make Inventor visible. oApp.Visible = True Exit Sub End If End Sub