Skip to main content
7-Bedrock
May 28, 2024
Solved

Does VB API support multiple session parallelly?

  • May 28, 2024
  • 2 replies
  • 2494 views

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??

Best answer by RPN

😉 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 😩

2 replies

24-Ruby III
May 28, 2024

Please specify what software you are using.

swayam7-BedrockAuthor
7-Bedrock
May 28, 2024

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.

24-Ruby III
May 29, 2024

Articles:

RPN
18-Opal
May 30, 2024

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.

swayam7-BedrockAuthor
7-Bedrock
May 30, 2024

Thanks @RPN ,

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

RPN
RPN18-OpalAnswer
18-Opal
May 30, 2024

😉 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 😩