When I use the API to import a step file into RDK and the following call I use a Item.SetName on the import file item, the rename is not working.
Here is a link to step file causing the problem(not the only one): https://1drv.ms/u/s!AhCCWoYK5qdugpoRyD8F...Q?e=NG5QJP
And a code snippet I use to reproduce the bug.
I notice that if the import file is big enough and that importing it takes some time, RDK seems to just ignore my SetName and name it using the step filename (axis instead of Toto).
When the step file is small, I don't have this bug.
Thanks,
François.
Here is a link to step file causing the problem(not the only one): https://1drv.ms/u/s!AhCCWoYK5qdugpoRyD8F...Q?e=NG5QJP
And a code snippet I use to reproduce the bug.
I notice that if the import file is big enough and that importing it takes some time, RDK seems to just ignore my SetName and name it using the step filename (axis instead of Toto).
When the step file is small, I don't have this bug.
Thanks,
François.
Code:
RoboDK_API::RoboDK *rdk=new RoboDK_API::RoboDK("",21500,"/NOSPLASH");
if (rdk->Connected()) {
rdk->ShowRoboDK();
QString filename="axis.step";
RoboDK_API::Item new_item=rdk->AddFile(filename);
new_item.setName("Toto");
}