iLogic, starting new inventor instance with other language

iLogic, starting new inventor instance with other language

Ruffy85
Collaborator Collaborator
321 Views
1 Reply
Message 1 of 2

iLogic, starting new inventor instance with other language

Ruffy85
Collaborator
Collaborator

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

 

 

If my reply was helpful, please give a "Kudo" or click the "Accept as Solution" button below (or both).
0 Likes
322 Views
1 Reply
Reply (1)
Message 2 of 2

HermJan.Otterman
Advisor
Advisor

hello Ruffy,

 

 

My understanding has Always been to never start multiple sessions of inventor allthough  you can.

in the windows registry there is only one set of settings for Inventor so if you have two instances running and you alter settings you could get problems.

If this answers your question then please select "Accept as Solution"
Kudo's are also appreciated Smiley Wink

Succes on your project, and have a nice day

Herm Jan


0 Likes