Multithreading and synchronizing requests from robot model (API)

Multithreading and synchronizing requests from robot model (API)

Anonymous
Not applicable
766 Views
3 Replies
Message 1 of 4

Multithreading and synchronizing requests from robot model (API)

Anonymous
Not applicable

Does anyone have experience or can offer some advice on how to achieve multi threading on a single RobotApplication instance methods? If I understand correctly, properly synchronized threads should be possible on .NET applications. 

 

Any help or a small example would be much appreciated. (Either C# or Vb.Net :)) @Rafal.Gaweda  perhaps you had some experience in this? 

0 Likes
Accepted solutions (1)
767 Views
3 Replies
Replies (3)
Message 2 of 4

Rafal.Gaweda
Autodesk Support
Autodesk Support
Accepted solution

Hi @Anonymous 

 

Nothing like that is possible.

 



Rafal Gaweda
0 Likes
Message 3 of 4

Anonymous
Not applicable

Thank You @Rafal.Gaweda. I (somewhat reluctantly) accepted your reply.. 😉

 

Can I just clarify if this is not possible because robot cannot guarantee methods to be thread-safe? (perhaps linked to partial memory allocation?) or if there is a different reason?

 

We are building a tool that needs to request as much of information from the model as possible, and this is proving time consuming due to the get() methods execution. Is there any way this can be done in parallel instead of sequentially?

0 Likes
Message 4 of 4

Rafal.Gaweda
Autodesk Support
Autodesk Support

Hi @Anonymous 

 

Robot is generally not multithreaded software.

It uses mutli threads only in a few situation : calculations (Multithreaded solver is used), panels required reinforcement design, member steel design (if several design calculations are run simultaneously, I am afraid it is not achievable by API).

Only solver for calculations can be set by user, in program and by API.

 



Rafal Gaweda
0 Likes