cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

We are happy to announce the new Windchill Customization board! Learn more.

Automate server connection

cdspk
1-Newbie

Automate server connection

We're just getting started with Windchill in a teaching lab (windows 7)situation, therefore the users will rarely log on to the same PC twice meaning they have to connect to the server every time they start ProE [5.0] on a different PC (the server connection will only be retained on PCs having their profile and all profiles are scrubbed at the end of each day)


I'm not on the IT side, simply the instructor in the lab, but isn't there a way we could start ProE with a script(?) or batch file(?) which connects to the server at the same time therefore immediately prompting the user for their login details?


An suggestions, comments or even example files and instructions gratefully recieved,


Cheers, Sean


2 REPLIES 2
cdspk
1-Newbie
(To:cdspk)


I've since found David Graham and Randy Jones suggestion from last year to use a Mapkey:



!===================================


! Register to PDMLink Server


!===================================


mapkey rs @MAPKEY_NAMERegister to the PDMLink server on chs003;\


@MAPKEY_LABEL*Register PDMLink Server;\


~ Select `main_dlg_cur` `MenuBar1`1 `Utilities`;\


~ Close `main_dlg_cur` `MenuBar1`;\


~ Activate `main_dlg_cur` `Utilities.psh_util_weblnk_server_registry`;\


~ Activate `siteregistrydialog` `NewServerPshBtn`;\


~ Input `registernewserverdlg` `NewServerNameIPanel` `PDMLink`;\


~ Update `registernewserverdlg` `NewServerNameIPanel` `PDMLink`;\


~ FocusOut `registernewserverdlg` `NewServerNameIPanel`;\


~ Input `registernewserverdlg` `NewServerLocationIPanel` \`http://chs003.emhartglass.net/PDMLink`;\


~ Update `registernewserverdlg` `NewServerLocationIPanel` \`http://chs003.emhartglass.net/PDMLink`;\


~ FocusOut `registernewserverdlg` `NewServerLocationIPanel`;\


~ Activate `registernewserverdlg` `NewServerCheckPshBtn`;


!!!



Which I’ve modified to:



!===================================


! Register to PDMLink Server


!===================================


mapkey rs @MAPKEY_NAMERegister to the PDMLink server on windchilleducation;\


@MAPKEY_LABEL*Register PDMLink Server;\


~ Select `main_dlg_cur` `MenuBar1`1 `Utilities`;\


~ Close `main_dlg_cur` `MenuBar1`;\


~ Activate `main_dlg_cur` `Utilities.psh_util_weblnk_server_registry`;\


~ Activate `siteregistrydialog` `NewServerPshBtn`;\


~ Input `registernewserverdlg` `NewServerNameIPanel` `PDMLink`;\


~ Update `registernewserverdlg` `NewServerNameIPanel` `PDMLink`;\


~ FocusOut `registernewserverdlg` `NewServerNameIPanel`;\


~ Input `registernewserverdlg` `NewServerLocationIPanel` \'https://windchilleducation.eu/Windchill/';\


~ Update `registernewserverdlg` `NewServerLocationIPanel` \'https://windchilleducation.eu/Windchill/';\


~ FocusOut `registernewserverdlg` `NewServerLocationIPanel`;\


~ Activate `registernewserverdlg` `NewServerCheckPshBtn`;


!!!



But the mapkey stalls on inputting the server address – see attached


The only difference I can see (other than the address itself) is that it’s an https



Any ideas what might be the issue?



Cheers, Sean


(ProE 5.0, WinXP)

ShawnLothrop
4-Participant
(To:cdspk)

Yes, this can be done using a trail file. You can automate up to the user login. You'll still need to select a workspace and activate the server. To create the trail file start a new session of Pro/E and click thru a server registration. I've attached a sample Wildfire 4 trail file in registerserver.txt. You'll need to change

%DIR_PROE_INSTALL%\bin\proe.exe

) ELSE (

%DIR_PROE_INSTALL%\bin\proe.exe %DIR_PROE_CONFIG_SOURCE%\registerserver.txt

)

The code above will check if a Windchill server has been registered and if not the registration trail file will be run on startup of your Pro/E session. You'll need to set the environ...



Top Tags