Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Command line options question
#1
Question 
Hello everybody,

keep up the good work!

I want to use RoboDK for a task which looks like this:

1. step: external python script starts robodk.exe with a cell that I built
2. step: starts a "internal" python script inside my cell
3. step: the output of my "internal" python script starts to work on robot (this is probably the most easiest part)

Is this possible to do this with RoboDK? Its like a online trajectory planner or something similar.

I found command line options list but I couldnt find a way to start my cell and "internal" python script.

Kind regards!
Tom
#2
Hi Tom,

You can use a command line like the following to load an RDK file and run a program or script called Program1 available in your project:
RoboDK "path-to-file.rdk" -RunProg=Program1

More information here:
https://robodk.com/doc/en/RoboDK-API.html#CommandLine

You can also pass any command supported via the API through a command line:
https://robodk.com/doc/en/PythonAPI/robo...nk.Command
#3
(06-04-2020, 02:53 PM)Albert Wrote: Hi Tom,

You can use a command line like the following to load an RDK file and run a program or script called Program1 available in your project:
RoboDK "path-to-file.rdk" -RunProg=Program1

More information here:
https://robodk.com/doc/en/RoboDK-API.html#CommandLine

You can also pass any command supported via the API through a command line:
https://robodk.com/doc/en/PythonAPI/robo...nk.Command

Wow! That's great! I couldn't find "-RunProg" :-)

Cheers!
Tom
#4
Hi Tom,
It was a hidden option and not documented. It will show up as an optional command in our next release.
Cheers,
Albert
#5
Thats great! Looking forward to see more people using it as a online planner :)

Cheers,
Tom
#6
(06-04-2020, 03:05 PM)Albert Wrote: Hi Tom,
It was a hidden option and not documented. It will show up as an optional command in our next release.
Cheers,
Albert


Hello Albert, 

I am very new in RoboDK. 
I try to open script example of offline programming from CMD, using your solution (-RunProg='file.name'), but unfortunately I can not open the script. Only project contains the script is opening. 

I attached 2 screens: 1 - is full command in CMD (my Working Directory = C:\RoboDK\bin),
2 - output that i get (just opened project "Weld_test_KUKA.rdk", but not hexagonal_path.py").

Do you have any idea how can I fix it? 
Thanks a lot in advance!

Best regards,
Oleg


Attached Files Thumbnail(s)
       
#7
Hi Oleg,

To run a program you should simply have the name of the program or the python file without the extension.

Example:
Code:
RoboDK.exe project-file.rdk -RunProg=Hexagonal_path

Albert
#8
(08-13-2020, 01:51 PM)Albert Wrote: Hi Oleg,

To run a program you should simply have the name of the program or the python file without the extension.

Example:
Code:
RoboDK.exe project-file.rdk -RunProg=Hexagonal_path

Albert

Hi Albert, 

Thanks a lot for quick help!

All the best, 
Oleg
  




Users browsing this thread:
1 Guest(s)