RoboDK Forum
Command line options question- Printable Version

+- RoboDK Forum (//m.sinclairbody.com/forum)
+-- Forum: RoboDK (EN) (//m.sinclairbody.com/forum/Forum-RoboDK-EN)
+--- Forum: RoboDK API (//m.sinclairbody.com/forum/Forum-RoboDK-API)
+--- Thread: Command line options question (/Thread-Command-line-options-question)



Command line options question-zet-jaro-06-03-2020

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)

这是与RoboDK能够这样做吗?它就像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


RE: Command line options question-Albert-06-04-2020

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:
//m.sinclairbody.com/doc/en/RoboDK-API.html#CommandLine

You can also pass any command supported via the API through a command line:
//m.sinclairbody.com/doc/en/PythonAPI/robolink.html#robolink.Robolink.Command


RE: Command line options question-zet-jaro-06-04-2020

(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:
//m.sinclairbody.com/doc/en/RoboDK-API.html#CommandLine

You can also pass any command supported via the API through a command line:
//m.sinclairbody.com/doc/en/PythonAPI/robolink.html#robolink.Robolink.Command

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

Cheers!
Tom


RE: Command line options question-Albert-06-04-2020

Hi Tom,
It was a hidden option and not documented. It will show up as an optional command in our next release.
Cheers,
Albert


RE: Command line options question-zet-jaro-06-04-2020

Thats great! Looking forward to see more people using it as a online planner :)

Cheers,
Tom


RE: Command line options question-olegvolosnik-08-13-2020

(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


RE: Command line options question-Albert-08-13-2020

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


RE: Command line options question-olegvolosnik-08-14-2020

(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