One Big Problem, googled, searched in forum - nothing found !
I'd like to save each drawing view with the "saveas" method to iges,
it works if I make a breakpoint on save as !!!, because SE needs some time to open the view
with the StartCommand, (haven't found any mathod for opening the view into viewedit).
So how can i find out SE is busy?
Dim views As SolidEdgeDraft.DrawingViews = DraftDoc.ActiveSheet.DrawingViews
For i As Integer = 1 To views.Count
Dim view As SolidEdgeDraft.DrawingView = views.Item(i)
Dim NewFullName As String = IgesPath & FileName & "_" & i & ".igs"
If System.IO.File.Exists(NewFullName) = True Then
System.IO.File.Delete(NewFullName)
End If
Dim ActiveWindowName As String = SE_App.ActiveWindow.Caption
'OpenView
view.Select()
SE_App.StartCommand(40037)
'SE fnished??
'Save Iges
DraftDoc.SaveAs(NewFullName) 'BREAK
'CloseView
SE_App.ActiveWindow.close()
DraftDoc.SelectSet.RemoveAll()
Next