Machsupport Forum

Mach Discussion => Mach4 General Discussion => Mach4 Toolbox => Topic started by: DazTheGas on September 28, 2015, 09:16:29 AM

Title: Load GCode NO TOOLPATH
Post by: DazTheGas on September 28, 2015, 09:16:29 AM
If you have gcode you know works, and you dont need to sit and watch the toolpath, then use this and save your processor and memory..

create a new button and in the left up script place.

Code: [Select]
local inst = 0

local fileDialog = wx.wxFileDialog(wx.NULL,
                                           "Open 'GCode File' No ToolPath",
                                           "",
                                           "",
                                           "GCode files (*.tap)|*.tap|All files (*)|*",
                                            wx.wxFD_OPEN + wx.wxFD_FILE_MUST_EXIST)

    if fileDialog:ShowModal() == wx.wxID_OK then
    GCodeFilename = fileDialog:GetPath()
    mc.mcCntlLoadGcodeFile(inst, GCodeFilename)
    --mc.mcToolPathGenerate(inst) -- uncomment to create toolpath
    else
        return -- quit program
    end

DazTheGas
Title: Re: Load GCode NO TOOLPATH
Post by: dude1 on September 28, 2015, 04:20:45 PM
well done daz
Title: Re: Load GCode NO TOOLPATH
Post by: Chaoticone on September 28, 2015, 06:21:43 PM
Nice!