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

Is '-batch_mode' option available for asynchronous execution of Creo

SwapnilSitapure
1-Newbie

Is '-batch_mode' option available for asynchronous execution of Creo

Hi,

I came across following article about command-line parameters that ProductView Adapters executes Pro/ENGINEER with,

https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS79370

There is a mention about a new comman line argument '-batch_mode' which ProductView Adapters uses.

-batch_mode : Blocks all popups and prompts from Pro/ENGINEER to the user

I tried it with my program but could not see an effect of it. My dialogs (e.g. ProUIColorSelectionShow ) are not suppressed.

Does anyone have experience in using this parameter with an asynchronous Creo program ?

Is it mandatory to use 'parametric.bat' file to make it work ? Can't we use paramteric.exe as it is ?

Thanks !

S


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
2 REPLIES 2

Hi Swapnil -

Did you read the Creo Parametric Toolkit User Guide section named Core: Asynchronous Mode? This excerpt appears at the end of that section:

Setting Up a Non-Interactive Session

You can spawn a PTC Creo Parametric session that is both noninteractive and nongraphical. In asynchronous mode, include the following arguments in the call to ProEngineerStart():

• -g:no_graphics—Turn off the graphics display.

• -i:rpc_input—Cause PTC Creo Parametric to expect input from your asynchronous application only.

Both of these arguments are required, but the order is not important. The syntax of the call for a noninteractive, nongraphical session is as follows:

ProEngineerStart ("parametric -g:no_graphics -i:rpc_input", <text_dir>);

In the syntax, parametric is the command to start PTC Creo Parametric.

I hope this helps.

|+|  M a r k  |+|

Hi Mark,

Thanks !

I am already using '-g:no_graphics -i:rpc_input' options in my program.

IMHO no_graphics option just runs Creo in hidden mode, but it does not stop any pop-up dialog coming. ( So it is not a true batch mode)

For suppressing some dialogs, I use specific config options, but could not handle all dialogs popping up in the process.

My asynchronous batch program stops , in case any such dialog appears.

I came across link mentioned in my question and mention of -batch-mode option raised my curiosity.

Regards,

Swapnil

Top Tags