Err handling in HFSS via vbscript

Status
Not open for further replies.

hiteshmodi04

Newbie level 2
Joined
Apr 11, 2008
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,309
vbs err

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.




PLZ HELP ME ANY ONE
 

Re: vbs err

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
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…