Skip to main content
1-Visitor
March 25, 2010
Question

Automate Server Manager

  • March 25, 2010
  • 3 replies
  • 841 views
Hey there,

Has anyone tried to automate the PDMLink server registration that takes place in Pro-Engineer?

(So the user doesn't have to register the server?)


Jered

3 replies

10-Marble
March 26, 2010
I have looked at the possibilities in J-Link, but it can only register Windchill in a non interactive session. So the solutionbecame a simple mapkey that adds name and locations and brings the user to the login dialog. This has saves us for many problems due to typos. It is also easy when dealing with external partners registering though ProjectLink to just have a mapkey in a config.pro file.

Bjarne Frandsen

(Pro/ENGINEER Wildfire 4.0 M092andWindchill 9.0M050 on Windows)

1-Visitor
March 26, 2010
Jared,

Yes. We have two solution depending upon the users request.

Solution 1 is to create a mapkey that does the registry for the users.
Here's the mapkey. We place it in the Tools menu under the Server
Registry menu selection.
The text in bold need to be edited for your site.

!===================================
! Register to PDMLink Server
!===================================
mapkey rs @MAPKEY_NAMERegister to the PDMLink server on chs003;\
mapkey(continued) @MAPKEY_LABEL*Register PDMLink Server;\
mapkey(continued) ~ Select `main_dlg_cur` `MenuBar1`1 `Utilities`;\
mapkey(continued) ~ Close `main_dlg_cur` `MenuBar1`;\
mapkey(continued) ~ Activate `main_dlg_cur`
`Utilities.psh_util_weblnk_server_registry`;\
mapkey(continued) ~ Activate `siteregistrydialog` `NewServerPshBtn`;\
mapkey(continued) ~ Input `registernewserverdlg` `NewServerNameIPanel`
`PDMLink`;\
mapkey(continued) ~ Update `registernewserverdlg` `NewServerNameIPanel`
`PDMLink`;\
mapkey(continued) ~ FocusOut `registernewserverdlg`
`NewServerNameIPanel`;\
mapkey(continued) ~ Input `registernewserverdlg` `NewServerLocationIPanel`
\
mapkey(continued) `http:\\\\chs003.emhartglass.net\\PDMLink`;\
mapkey(continued) ~ Update `registernewserverdlg`
`NewServerLocationIPanel` \
mapkey(continued) `http:\\\\chs003.emhartglass.net\\PDMLink`;\
mapkey(continued) ~ FocusOut `registernewserverdlg`
`NewServerLocationIPanel`;\
mapkey(continued) ~ Activate `registernewserverdlg`
`NewServerCheckPshBtn`;
!!!


Solution 2 is to build on-the-fly a new config.fld file, located in
%PTC_WF_ROOT%\.Setting
The config.fld file is read upon starting ProE and tells proe:
To connect to PDMLink (or not)
the WS to connect to
to be On-line (or not)
etc.

We build the config.fld on-the-fly with our ProE startup script. We use
it mostly for users who have huge WS. We have those users keep an empty,
dummy WS. The cofig.fld file points to the dummy WS. This allows those
users to connect quickly to an empty WS rather than connecting to an huge
WS which can take quite a while.

I suggest starting with solution one. It's bomb proof.

David

20-Turquoise
March 26, 2010
On 03/26/10 14:22, David Graham wrote:
> Jared,
>
> Yes. We have two solution depending upon the users request.
>
> Solution 1 is to create a mapkey that does the registry for the users.
> Here's the mapkey. We place it in the Tools menu under the Server
> Registry menu selection.
> The text in bold need to be edited for your site.
>
> !===================================
> ! Register to PDMLink Server
> !===================================
> mapkey rs @MAPKEY_NAMERegister to the PDMLink server on *chs003*;\
> mapkey(continued) @MAPKEY_LABEL*Register PDMLink Server;\
> mapkey(continued) ~ Select `main_dlg_cur` `MenuBar1`1 `Utilities`;\
> mapkey(continued) ~ Close `main_dlg_cur` `MenuBar1`;\
> mapkey(continued) ~ Activate `main_dlg_cur`
> `Utilities.psh_util_weblnk_server_registry`;\
> mapkey(continued) ~ Activate `siteregistrydialog` `NewServerPshBtn`;\
> mapkey(continued) ~ Input `registernewserverdlg` `NewServerNameIPanel`
> `PDMLink`;\
> mapkey(continued) ~ Update `registernewserverdlg` `NewServerNameIPanel`
> `PDMLink`;\
> mapkey(continued) ~ FocusOut `registernewserverdlg` `NewServerNameIPanel`;\
> mapkey(continued) ~ Input `registernewserverdlg`
> `NewServerLocationIPanel` \
> mapkey(continued) `http:\\chs003.emhartglass.net\PDMLink`;\

You should change this to:
mapkey(continued) `
See below for the simplified version.

> mapkey(continued) ~ Update `registernewserverdlg`
> `NewServerLocationIPanel` \
> mapkey(continued) `http:\\chs003.emhartglass.net\PDMLink`;\

and same here:
mapkey(continued) `

> Date: 03/26/2010 09:13 AM
> Subject: [solutions] - Automate Server Manager
>
------------------------

Simplified version:

!===================================
! 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` \
`