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

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

running trail files thru command lines ?

ejhlti
1-Newbie

running trail files thru command lines ?

thru a command line, is there any way to run a trail file when proe is already running ? I know you can start proe via the command line, and specify a trail file to run, but I ws wondering if this can be done while proe is already running. Basically
Im trying to reduce eliminate the startup time. Is there any other trick to do this ?
1 REPLY 1

> From: ejhlti@verizon.net

> thru a command line, is there any way to run a trail file when proe is already running ?
> I know you can start proe via the command line, and specify a trail file to run, but I ws
> wondering if this can be done while proe is already running. Basically Im trying to reduce
> eliminate the startup time. Is there any other trick to do this ?

An asynchronous JLink or ProToolkit program can do this. I'm not aware
of any other utility.


Here is a minimalistic JLink example that toggles datum planes on/off:

System.loadLibrary ("pfcasyncmt");
AsyncConnection ac = pfcAsyncConnection.AsyncConnection_ConnectWS ( null, null, null, null, null );
currSession = ac.GetSession().RunMacro( "~ Activate `main_dlg_cur` `ProCmdEnvDtmDisp.ddisp` 0" );

If you used JLink, the best way would be to open a trail file and
execute RunMacro() on each line rather than hardcoding as above.


Unfortunately, the above consumed about 70MB RAM just to toggle
datum planes. JLink may be a little overkill for this problem.
There are several other (ProToolkit related) limitations as well.


Marc










Announcements
Business Continuity with Creo: Learn more about it here.

Top Tags