I am running vb script in HFSS to set a required coupling between two cavities. It solves well.
but some time an error occurs that is "Eigen mode solution process died unexpectedly".
I want when this error occurs, my vbscript recognizes this and acts accordingly................
so basically i want to know :- Is there any method in scrpit through which script can identify which type of error has occured in HFSS.
Yes, although error handling in VBScript is clunky. On error resume next turns on error handling, On error goto 0 turns error handling off.
on error resume next
' Your code Here
If Err.Number <> 0 Then
errorInfo = "Error: " & Err.Number & "Error (Hex) " & Hex(Err.Number) & _
"Source: " & Err.Source & "Description: " & Err.Description
Err.Clear
MsgBox(errorInfo)
End If