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

The PTC Community email address has changed to community-mailer@ptc.com. Learn more.

Add Toolkit API to detect if Creo is running in non-interactive mode

Add Toolkit API to detect if Creo is running in non-interactive mode

An asynchronous Toolkit application can launch Creo in non-interactive mode by specifying "-g:no_graphics -i:rpc_input" on the command line.

Provide an easy way for other Toolkit applications to detect Creo is running in non-interactive mode, so they can change their behaviour accordingly.

For example in Object Toolkit:

  xbool pfcBaseSession::CheckIsInteractive()

2 Comments
flindeman
1-Newbie

A workaround is to pass in an extra, application specific, command line argument which is passed on to the user_initialize() function by prefixing it with a plus sign +:

  "-g:no_graphics -i:rpc_input +myoption:no_graphics"

Your Toolkit application can then detect +myoption:no_graphics in its user_initialize().


PTCModerator
Emeritus
Status changed to: Archived