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

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

Automate Server Manager

jer3d1
1-Visitor

Automate Server Manager

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 3

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)

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

RandyJones
19-Tanzanite
(To:jer3d1)

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*Reg...








Announcements


Top Tags