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

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

Translate the entire conversation x

Pro/E trail files and user authentication with Windchill

gchampoux
7-Bedrock

Pro/E trail files and user authentication with Windchill

I need to run Pro/E in batch mode, which I have been able to do in the past.
I run a session manually, edit the trail files to my liking, and then run Pro/E with the appropreate command line.

 

However, I now need to include Windchill in the process.

 

My immediate challenge is the username and password.
These are not recorded in the trail file.

 

How do I deal with this?

 

Gerry

4 REPLIES 4
RandyJones
20-Turquoise
(To:gchampoux)

On 04/20/11 09:22, Gerry Champoux wrote:
>
> I need to run Pro/E in batch mode, which I have been able to do in the past.
> I run a session manually, edit the trail files to my liking, and then run
> Pro/E with the appropreate command line.
>
> However, I now need to include Windchill in the process.
>
> My immediate challenge is the username and password.
> These are not recorded in the trail file.
>
> How do I deal with this?
>

Check the "Remember username and password for this site" option in the browser?

> Gerry
>
>
> ----------


--
------------------------------------------------------------------------
Randy Jones
Systems Administrator
Great Plains Mfg., Inc.
1525 E North St
PO Box 5060
Salina, KS USA 67401
email: -
Phone: 785-823-3276
   Fax: 785-667-2695
------------------------------------------------------------------------

Although that does remember the credentials, it still pops up a dialog that requires the user to click OK.
Again, this is not recorded in the trail file.



In Reply to Randy Jones:


Check the "Remember username and password for this site" option in the browser?
RandyJones
20-Turquoise
(To:gchampoux)

On 04/20/11 10:41, Gerry Champoux wrote:
>
> Although that does remember the credentials, it still pops up a dialog that
> requires the user to click OK.
> Again, this is not recorded in the trail file.
>

Duh. Your right.
Maybe weblink or jlink??
weblink and jlink have a RegisterServer() method and an AuthenticateBrowser()
method that might do what you are after

>
> In Reply to Randy Jones:
>
>     Check the "Remember username and password for this site" option in the
>     browser?
>
>
> ----------


--
------------------------------------------------------------------------
Randy Jones
Systems Administrator
Great Plains Mfg., Inc.
1525 E North St
PO Box 5060
Salina, KS USA 67401
email: -
Phone: 785-823-3276
   Fax: 785-667-2695
------------------------------------------------------------------------

Thanks to everyone that replied, and special thanks to Randy who recommended using JLink with the AuthenticateBrowser() method.


Worked like a charm.
In my startup method, all I needed was the following:


static Session current_session = pfcGlobal.GetProESession();


Afterward, my trail file runs without being prompted for credentials.


Gerry


In Reply to Gerry Champoux:



I need to run Pro/E in batch mode, which I have been able to do in the past.
I run a session manually, edit the trail files to my liking, and then run Pro/E with the appropreate command line.


However, I now need to include Windchill in the process.


My immediate challenge is the username and password.
These are not recorded in the trail file.


How do I deal with this?


Announcements
Top Tags