04-02-2021, 09:59 AM
Hello,
I got a problem when i try to get an element in a python-script with AttachClosest() like this:
In the simulation, I can work with the object "block", but as soon as i try to generate the offline programm, I get following error:
It seems like block hasn't been initialized with the AttachClosest(). Is there something I could do, or is that an RoboDK-intern problem, which you may fix?
Thanks, Janis
I got a problem when i try to get an element in a python-script with AttachClosest() like this:
Code:
block = g_gripper.AttachClosest()
block.setParentStatic(f_tower)
In the simulation, I can work with the object "block", but as soon as i try to generate the offline programm, I get following error:
Code:
Traceback (most recent call last):
File "C:/Users/user/AppData/Local/Temp/pythonscript.py", line 79, in move_block(block01, 1, 1, false)
File "C:/Users/user/AppData/Local/Temp/pythonscript.py", line 29, in move_block
block.setParentStatic(f_tower)
File "C:\RoboDK\Python\robolink\robolink.py", line 3822, in setParentStatic
self.link._check_status()
File "C:\RoboDK\Python\robolink\robolink.py", line 744, in _check_status
(selft提高异常。LAST_STATUS_MESSAGE)
Exception: Invalid item provided: The item indetifier provided is not valid or it does not exists.
It seems like block hasn't been initialized with the AttachClosest(). Is there something I could do, or is that an RoboDK-intern problem, which you may fix?
Thanks, Janis