Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Naming generated program
#1
I am trying to generate a Kuka program over the RDK API.
It is basically working with this script, but the issue I have is that I cant find a way to properly name my program.

Code:
from robolink import *                      
RDK = Robolink()

prog = RDK.Item('Robot paint', ITEM_TYPE_PROGRAM_PYTHON)

prog.RunProgram()

RDK.setRunMode(RUNMODE_MAKE_ROBOTPROG)

while prog.Busy():
   pause(0.1)

print("Program done")

The program that is generated is always named: ProgKUKAKR6R900s.
I am using the RobotPaint example from RDK but I replaced the robot with Kukas agilus.


I hope somebody can tell me how to name my program, and let me know if this is even the proper way of generating the program over the API. All this is very new to me.

Thanks.
#2
Hi Kloper,

I think this is what you are looking for: https://robodk.com/doc/en/PythonAPI/robo...em.setName

Jeremy
Find useful information about RoboDK and its features by visiting our Online Documentation and by watching tutorials on our Youtube Channel


#3
(10-30-2020, 03:09 PM)Jeremy Wrote: Hi Kloper,

I think this is what you are looking for: https://robodk.com/doc/en/PythonAPI/robo...em.setName

Jeremy

Hi Jeremy, 
thanks for the feedback!
I did try that, but it only changes the program name in the RoboDK Scene, how ever the exported file name still stays the same "ProgKUKAKR6R900s.src"

Maybe I am using it wrong: prog.setName('TestName')

Thanks, 
Romano
#4
My bad then.

Pretty sure this is what you are looking for.
https://robodk.com/doc/en/PythonAPI/robo...ogramStart

Jeremy
Find useful information about RoboDK and its features by visiting our Online Documentation and by watching tutorials on our Youtube Channel


  




Users browsing this thread:
1 Guest(s)