Menu

Writing a file with command lines

Help
Zealot
2011-08-17
2013-03-08
  • Zealot

    Zealot - 2011-08-17

    Hello,

    I am trying to write a gcode file with command lines and it doesn't seem to work, I can open a stl model and the settings file by using this command line: pycamGUI -config "C:\Test\set\Settings.conf" "C:\Test\Pycam.stl" but when I try to write the task in a gcode file by using this command line: pycamGUI -config "C:\Test\set\Settings.conf" -task 1 "C:\Test\Pycam.stl" "C:\Test\try.ngc" it doesn't work. I tried several other combinations still no result.

    Any help would be appreciated and thanks again for this awesome program!

     
  • Lars

    Lars - 2011-08-17

    Hi zealot,

    PyCAM's commandline handling is still not as powerful, as I imagine it for the future. Currently the task files are only handled by the GUI and are ignored in batch mode.
    Thus you need to specify all the details of an operation via the other parameters ("tool-..", "process-…" and so on). Additionally you need to specify one of the "export" parameters. Probably you will want to add something like "-export-gcode=toolpath.ngc". PyCAM will start the GUI if no "export" parameter is provided.

    Just as a warning - in case you want to create some kind of automated system based on PyCAM's commandline: the upcoming release v0.6 will not support the batch mode. Its successor (v0.6.1 - planned for October) will include this feature again, but the syntax will probably change significantly. Thus you should probably not put too much work into it for now.

    I hope this helps,
    Lars

     
  • Zealot

    Zealot - 2011-08-17

    Hello Lars,

    Thanks for your quick answer it helps a lot. I had just one last question, I was wondering if the other paramaters that you have mentionned are ajustable through command lines and if it's possible where I could find more informations on this, as right now the only informations about commandlines that I could find are on this page https://sourceforge.net/apps/mediawiki/pycam/index.php?title=CommandlineExamples

     
  • Lars

    Lars - 2011-08-17

    Hi zealot,

    oh - you are right, the page is slightly outdated.
    Just run PyCAM with the "-help" argument - this will give you the complete list of options.

    cheers,
    Lars

     
  • Zealot

    Zealot - 2011-08-18

    Sorry to bother you again Lars but unfortunately the argument -help doesn't work maybe it's because I use the standalone version. Can you tell me the source file where I can get more information on this or better just copy paste me the help instructions of this command.

    Thanks in advance!

     
  • Lars

    Lars - 2011-08-18

    Hi zealot,

    you are not bothering me - don't worry :)
    I am a little bit confused, that the "-help" parameter does not work, as it should.
    Anyway, I uploaded the output of the manpage: http://pycam.sourceforge.net/pycam.1.html

    cheers,
    Lars

     
  • Zealot

    Zealot - 2011-08-18

    Thank you very much, it's exactly what I was looking for.

     

Log in to post a comment.