Slow process time using Robot API

Anonymous

Slow process time using Robot API

Anonymous
Not applicable

Greetings,

My team is working on a software integration project using Autocad 2017 ObjectARX (C++) and Robot 2019. Everything is working perfectly, but for large structural models, the process is taking too long, especially when creating bar forces.

Below is the function we are using for force creation. Our test model has approximately 1000 bars and 50 loading cases. How can we improve performance and reduce our processing time?

 

It is worthy mentioning that when this process is done by using text files (.str) everyting goes a lot more faster.

 

 Thanks in advance, Murilo.

 

 

bool CRobot::createBarForce(long num, long case, double Pos) {
            RobotOS::IRobotBarForceDataPtr EsfBar = pEsf->Value(num, Caso, Pos);
             m_FX = EsfBar->GetFX() / SpmUtils::kG;
             m_FY = EsfBar->GetFY() / SpmUtils::kG;
             m_FZ = EsfBar->GetFZ() / SpmUtils::kG;
             m_MX = EsfBar->GetMX() / SpmUtils::kG;
             m_MY = EsfBar->GetMY() / SpmUtils::kG;
            m_MZ = EsfBar->GetMZ() / SpmUtils::kG;
           return true;
}

0 Likes
Reply
474 Views
4 Replies
Replies (4)

Romanich
Mentor
Mentor

Hi @Anonymous ,

Check this topic:

https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-speed-up-api-extract-results/td-p/5502598

Do you find the posts helpful? "LIKE" these posts!
Have your question been answered successfully? Click 'ACCEPT SOLUTION' button.

Roman Zhelezniak

Robot Evangelist & Passionate Civil Structural Engineer

LinkedIn | Robot & Хобот | App Store for Robot
EESignature


0 Likes

Anonymous
Not applicable

Hello Roman,

Do you have any example of force values using Query Params? Even better, dou you know where I can find a complete list of params for the whole variety of informations that can be inserted or extracted from robot through querys? 

 

Thanks

0 Likes

Romanich
Mentor
Mentor

Sorry, I think the mentioned topic is not related to your issue. Did you "freeze" Robot in the beginning? 

Dim RobApp As IRobotApplication
Set RobApp = New RobotApplication
RobApp.Interactive = False

Do you find the posts helpful? "LIKE" these posts!
Have your question been answered successfully? Click 'ACCEPT SOLUTION' button.

Roman Zhelezniak

Robot Evangelist & Passionate Civil Structural Engineer

LinkedIn | Robot & Хобот | App Store for Robot
EESignature


0 Likes

Anonymous
Not applicable

Yes we did.

We used  pRobot->PutInteractive(FALSE)  in our class constructor. 

Any other sugestion ?  

Thanks.

 

 

0 Likes