Hi Steve,
I was trying to refresh the toolpath window from lua code also.
Look up mcToolPathGenerate in the Mach4 Core API docs.
rc = mc.mcToolPathGenerate(number mInst)
While the function seems to do what is advertised, I don't understand the following code's behavior 100%:
mc.mcCntlSetLastError(inst, "Hello")
local rc = mc.mcToolPathGenerate(inst)
mc.mcCntlSetLastError(inst, "World")
The "Hello" is printed in the History/Debug window, but the "World" is never printed.
I'm guessing the GUI state is reset in addition to the toolpath being generated or something. The API doc's don't really help.
Subsequent GUI actions that cause History output write output as expected.
Anyone know why this is so?
Cheers,
Michael.