Machsupport Forum

Mach Discussion => Mach4 General Discussion => Topic started by: rrc1962 on April 17, 2017, 05:03:36 PM

Title: mc.mcToolPathGenerate()
Post by: rrc1962 on April 17, 2017, 05:03:36 PM
Is there something behind the scenes that prevents this function from executing during a program run?  I have a macro that I want to call that moves X and Y to a specific location, then zeros the DRO's, re-paints the toolpath display and continues on.  Everything works, but the toolpath display doesn't regenerate when mc.mcToolPathGenerate(inst) is called.

Thanks
Title: Re: mc.mcToolPathGenerate()
Post by: smurph on April 20, 2017, 03:17:25 PM
It will only work in the idle machine state.  :(  Why, because it uses the interpreter to generate the tool path.  So running the interpreter to run a file and generate a tool path is definitely mutually exclusive. 

Steve