How to control multiple creo sessions from an asynchronous executable application ?
Hello,
My main application is an asynchronous toolkit executable application processing multiple JOBS in batch mode.
Each JOB contains pair of an input model and associated action on it [e.g. creating a manufacturing output or FEA analysis or file conversion] )
I am running this in batch mode, but currently limited to executing it synchronously. i.e. Starting a creo session and passing each job to it for processing one by one.
I want to start multiple creo sessions and process more jobs at a time in parallel.
As a part of process steps would be,
1. Start a Creo session in async mode and connect to it
2. Run job through this session
3. Disconnect and then stop the creo after job processing is done.
4. Do steps 1 to 3 with more than 1 creo sessions present locally on same machine or on network
Currently I am using ProEngineerConnectionStart() to start a session and get its handle, but since ProEngineerEnd() is not taking any parameter to it, can't really end a session after job assigned to it is finished as mentioned in step 3.
Also in some cases when jobs are hanged/failed due to some unintended behavior, I really can't close the associated session.
Can someone help on this ?
Thanks in advance !
Swap
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.

