I have a workstation with an enormous number of targets (>10k). As part of the normal workflow, they all need to be deleted. Typically, I would use:
However, this takes a long time. Is there a way to pass a list of targets to RoboDK for deletion, or must they be passed one-at-a-time? (This is the Python API, so I suspect that the individual calls to the socket are the source of the delay, not RoboDK itself taking a while to process each call.)
The obvious workaround is to put the targets under a parent and delete then recreate the parent to rapidly clear out everything underneath it. However, it's always nice to use the clean way to do it, if a clean way exists.
Code:
[__.Delete() for __ in RDK.ItemList(filter=robolink.ITEM_TYPE_TARGET)
However, this takes a long time. Is there a way to pass a list of targets to RoboDK for deletion, or must they be passed one-at-a-time? (This is the Python API, so I suspect that the individual calls to the socket are the source of the delay, not RoboDK itself taking a while to process each call.)
The obvious workaround is to put the targets under a parent and delete then recreate the parent to rapidly clear out everything underneath it. However, it's always nice to use the clean way to do it, if a clean way exists.