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?