Machsupport Forum

Mach Discussion => VB and the development of wizards => Topic started by: aircastle on March 14, 2012, 12:24:05 PM

Title: Flaky tool path display
Post by: aircastle on March 14, 2012, 12:24:05 PM
The tool path display often will not display the new program, showing the tool path for the previous G-code instead. The G-code updates, but the tool path display does not, sometimes. Below is my klugy solution:

   CloseTeachFile 'Close new file
   Call LoadTeachFile() 'Load new file

   While IsLoading 'Wait for new file to load
     Sleep 10
   Wend

   Sleep 1000 'Wait 1 second
   DoOemButton(160) 'Do the tool path regen button

I don't like the time delay - anybody have a better solution?