12-01-2023, 02:37 PM
Hi everyone,
I need to set flags on specific items to control user interaction with my station.
I need to set let's say selectable and enabled to my robot only. I used this command
Unfortunately, it seems that now every item is affected by these flags.
I noticed in my console output the string "Statusbar: "Item name changed to: ..."" being repeated as many times as the item count in the station, everytime with a different name.
When I need to set flags to every item I use this code:
This makes RoboDK interface freeze and I see the statusbar string being printed infinite times (item count * number of iterations).
Do you know what I'm missing? Thanks in advance!
I need to set flags on specific items to control user interaction with my station.
I need to set let's say selectable and enabled to my robot only. I used this command
Code:
RDK->setFlagsItem(33,itemRobot);
Unfortunately, it seems that now every item is affected by these flags.
I noticed in my console output the string "Statusbar: "Item name changed to: ..."" being repeated as many times as the item count in the station, everytime with a different name.
When I need to set flags to every item I use this code:
Code:
QList<Item> list = RDK->getItemList();
for(int i = 0; i < list.length(); i++)
RDK->setFlagsItem(33, list[i]);
This makes RoboDK interface freeze and I see the statusbar string being printed infinite times (item count * number of iterations).
Do you know what I'm missing? Thanks in advance!