' Wait until file is ready (computation time is dependent on CPU) CurFile = OutputDir & "\" & ShrinkWrapFileName & ".igs" retValue = False Counter = 0 ' Loop until file is created Do System.Threading.Thread.Sleep(500) Application.DoEvents retValue = IO.File.Exists( CurFile ) Counter += 1 If Counter > CyclesBeforeExit Then retValue = True End If Loop Until retValue = True ' System.Threading.Thread.Sleep(1000) If IO.File.Exists( CurFile ) Then AddToFeedback( "IGES export --DONE--" ) Else AddToFeedback( "IGES export --FAILED--" ) End If
Wait until file is exports (example code) Print
Created by: Emil Balogh
Modified on: Wed, 2 Sep, 2020 at 11:56 AM
Did you find it helpful?Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.