loading a gcode file from a button press

If you have a question about the software please ask it here.

loading a gcode file from a button press

Postby frez1001 » Tue May 30, 2023 4:37 pm

Hello,

How would I go about loading a gcode file from a button press?

we have have a few files that need quickly changed on the fly. so having a few buttons to press to load the file would be very helpful. The names of the file can be anything and dont change.

Thank you!
frez1001
 
Posts: 7
Joined: Wed Aug 12, 2020 6:12 pm

Re: loading a gcode file from a button press

Postby odino87 » Tue May 30, 2023 7:21 pm

I have used the following code inside the button click event
Code: Select all
UC.Loadfile(Path.GetFullPath(filePath));

as you can see i use the absolute path of the file I want to load :)

Hopes it can help you
odino87
 
Posts: 16
Joined: Mon Mar 20, 2023 3:02 pm


Return to Ask a question from support here

Who is online

Users browsing this forum: Majestic-12 [Bot] and 16 guests