Page 1 of 1

Re: Gcode Editor

PostPosted: Tue Dec 27, 2016 6:58 pm
by A_Camera
Even better...

...Please, an option to set the favourite editor and the ability to avoid using the built in editor all together.

Please, Balázs, that can not be very hard to implement.

Re: Gcode Editor

PostPosted: Tue Dec 27, 2016 9:25 pm
by A_Camera
Writing macro is not a good solution, just a workaround. Should be a Configuration setting parameter under "General Settings" or "Appearance" in my opinion. The "Edit File" button should go through that parameter.

Re: Gcode Editor

PostPosted: Wed Dec 28, 2016 7:39 am
by A_Camera
OK. Thanks.

Re: Gcode Editor

PostPosted: Fri Dec 30, 2016 5:14 pm
by A_Camera
Vmax549 wrote:This is a working example of a selectable Editor for Gcode....

...well, sort of works but not really.

The field #775 must be created and even so, it only works partially.

As an example, if the G-code is opened from folders "C:\GCode" or "C:\GCode\Adapter" then it is OK, but if a deeper folder level is selected, i.e. "C:\GCode\Adapter\V2-F1A\Release" then it is not working, the editor throws an error that the file can't be opened. So, the "working example" is not really working as it should be.

I still have the opinion that this should be part of UCCNC default, if the field is left empty the built in editor should be used, if the field is not empty then that editor should be used.

Re: Gcode Editor

PostPosted: Fri Dec 30, 2016 6:32 pm
by cncdrive
That's because the filename is truncated in the 895. textfield if the filename with the path is too long.
Try to exchange this line:
string Fname = AS3. Getfield(895);

to:

string Fname = exec.Getgcodefilename();

This function returns the filename with the full path always.

Re: Gcode Editor

PostPosted: Fri Dec 30, 2016 9:15 pm
by A_Camera
OK, thanks.