Slow process time using Robot API
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;
}