Gcode Editor

Post anything you want to discuss with others about the software.

Re: Gcode Editor

Postby A_Camera » Tue Dec 27, 2016 6:58 pm

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.
A_Camera
 
Posts: 639
Joined: Tue Sep 20, 2016 11:37 am

Re: Gcode Editor

Postby A_Camera » Tue Dec 27, 2016 9:25 pm

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.
A_Camera
 
Posts: 639
Joined: Tue Sep 20, 2016 11:37 am

Re: Gcode Editor

Postby A_Camera » Wed Dec 28, 2016 7:39 am

OK. Thanks.
A_Camera
 
Posts: 639
Joined: Tue Sep 20, 2016 11:37 am

Re: Gcode Editor

Postby A_Camera » Fri Dec 30, 2016 5:14 pm

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.
A_Camera
 
Posts: 639
Joined: Tue Sep 20, 2016 11:37 am

Re: Gcode Editor

Postby cncdrive » Fri Dec 30, 2016 6:32 pm

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.
cncdrive
Site Admin
 
Posts: 4901
Joined: Tue Aug 12, 2014 11:17 pm

Re: Gcode Editor

Postby A_Camera » Fri Dec 30, 2016 9:15 pm

OK, thanks.
A_Camera
 
Posts: 639
Joined: Tue Sep 20, 2016 11:37 am


Return to General discussion about the UCCNC software

Who is online

Users browsing this forum: Bing [Bot] and 9 guests