Skip to main content
7-Bedrock
May 28, 2024 7:00 AM UTC
Solved

Does VB API support multiple session parallelly?

I trying to run multiple sessions with the reference of VB API, but not able to do.
I just want to know, Does VB API support multiple sessions??

RPN
RPNAnswer
18-Opal
May 30, 2024 4:30 PM UTC

😉 You need process to process communication in my point of view. So messaging via sockets. 
The server starts the client. The client connects to the server and waits for instructions from the server. If the client works he informs the server how he is doing. 
Threads may an option as well, but similar message handling. 

Dependent on your experience it may a long way to go 😩

7 replies

24-Ruby IV
May 28, 2024 8:14 AM UTC

Please specify what software you are using.

Translate
swayam7-BedrockAuthor
7-Bedrock
May 28, 2024 8:50 AM UTC

Hi @VladimirN 

I am using Creo 4.0 paramatic.exe . Basically i have a C# Tool which opens the creo session and load the assembly. Now am trying to implement to open multiple session in a single machine and load .asm file into it parallelly.

Translate
24-Ruby IV
May 29, 2024 7:44 AM UTC

Articles:

Translate
RPN
18-Opal
May 30, 2024 7:21 AM UTC

As far I know „No“ for Toolkit, because that would imply to get a session handle and each function must be called with this handle. Create your own server process which will open different clients, talk to them and communicate with any amount of connected  Clients/Creo sessions. Else the session communication could be a nightmare if one handle does no longer respond.

Translate
swayam7-BedrockAuthor
7-Bedrock
May 30, 2024 7:28 AM UTC

Thanks @RPN ,

It would be very helpful if you please share some examples of server process.

Translate
RPN
RPN18-OpalAnswer
18-Opal
May 30, 2024 4:30 PM UTC

😉 You need process to process communication in my point of view. So messaging via sockets. 
The server starts the client. The client connects to the server and waits for instructions from the server. If the client works he informs the server how he is doing. 
Threads may an option as well, but similar message handling. 

Dependent on your experience it may a long way to go 😩

Translate