It should be done by verifying that the file/path exists in both cases and if not just avoid to execute call() and probably to print some user friendly error text.
That was the reason it wasn't running. I was assuming that it would start from the cura directory
so I created an Applications/GPX as in the example config. Specing the absolute location does
run GPX. Though it does display an error "(line 12496) Buffer overflow: input exceeds 1024 character
limit, remaining characters in line will be ignored"
The code from the Cura plugin doesn't start the bot at all. When the x3g file is picked the bot just sits there.
Possibly the x3g is not outputted for a Cupcake, even though I've set "cpp" in the plugin and in the INI file. Not sure
how to check that.
If I create an x3g manually from the command line and passing it the INI file, the file does start the bot but thez-axis screams. I assume that "cpp" doesn't use the same steps/mm that I have set in RepG for the z-axis or
possibly limit the z-axis speed as I have it set in repG.
gcode_flavor=makerbot
You must define the machine at the top of the ini file, because the values are read sequentially, so define the machine first to initialise the defaults, then alter its values as needed.
Would it not be easier to let me specify the steps for each axis instead of all these predefined configurations?
(eg c3, c4, cp4, cpp...) Or is there another bit of subtlety to the x3g format that makes it different for gen3/gen4/mightyboard?
Another question, is the filament diameter in the INI file required? I have it set for the filament in the slicer, seems odd to have to set it in two places (in the slicer and in the GPX.ini)