Page 1 of 1
Command Line?
Posted: Mon Jan 23, 2017 8:35 pm
by AlbertHall
Can AutoLeveller or AutolevellerAE be used with a command line in windows?
I am writing a preprocessor and it would be convenient if I could add the auto-levelling operation as part of that.
Re: Command Line?
Posted: Tue Jan 24, 2017 11:32 am
by daedelus
Unfortunately, I would have to say that the command line is not an option now or in the near future. There are too many options involved to pass in via command line. Sorry.
Re: Command Line?
Posted: Tue Jan 24, 2017 6:44 pm
by AlbertHall
OK, thanks, I'll have to do it the hard way.
Re: Command Line?
Posted: Tue Jan 24, 2017 11:01 pm
by AlbertHall
It's even harder than I thought. AE will let me paste into the RPF box, but not into the OGF box. It gets a blue outline when I click in it but no cursor appears and it ignores typing or paste. I can only browse to a file. Is this intended behaviour?
Re: Command Line?
Posted: Wed Jan 25, 2017 11:31 am
by daedelus
Yes, this is intended.
It is designed this way so that you do not mistype a path into the OGF box and so force you to use the browse button and avoid typos. I thought the same was true of the RPF box, but apparently not.
Anyway, if you need to make the OGF box editable, open the jar file in 7-zip and edit the file: /ALGUI/BasicsTab.fxml
change the bolded line
<Label text="Original GCode File (OGF):" GridPane.halignment="RIGHT" GridPane.rowIndex="2" />
<TextField fx:id="ogfTxt" editable="false" GridPane.columnIndex="1" GridPane.rowIndex="2" />
<HBox alignment="CENTER_LEFT" spacing="5.0" GridPane.columnIndex="2" GridPane.rowIndex="2">
<children>
<Button mnemonicParsing="false" onAction="#findOGF" text="Browse" GridPane.columnIndex="2" GridPane.rowIndex="2" />
<Button mnemonicParsing="false" onAction="#clearOGF" text="Clear" GridPane.columnIndex="2" GridPane.rowIndex="2" />
</children>
to:
<TextField fx:id="ogfTxt" GridPane.columnIndex="1" GridPane.rowIndex="2" />
save the file and archive and re-run the jar file. You should now be able to paste into the box.
Hope this helps.
Re: Command Line?
Posted: Wed Jan 25, 2017 7:08 pm
by AlbertHall
Thanks, that worked a treat
I took me a while and multiple attempts to try to remake a working jar file. Finally, I read it was like a zip file with a different extension. So I made a zip and changed the extension - all working now, ta.