' 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