Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to jump error in nxopen and continues working macro 1

Status
Not open for further replies.

NETGARA

New member
Jun 3, 2020
8
Good morning,
I have the following problem, I would appreciate if someone could help me.
I want to make a macro that intersects surfaces by multiple planes, some surfaces are bigger than others and not all planes always intersect with small surfaces, generating an error and stopping the macro ..., which code I have to use to jump the error and the macro continues to work?
Thank you very much for your help.
 
Replies continue below

Recommended for you

The various languages supported by NXOpen use different approaches to error handling. If you are using a .net language (VB or C#), you can use the Try Catch block.

www.nxjournaling.com
 
Yes, i`m using .net, but i never use try catch block. How is the error condition indicated?
 
Thank for your help cowski!, i follow the sample and i got it. I summarize the method i use.


for a= 1 to repetitions

Try

(code for intersection)

catch ex as NXexception

MessageBox.Show ("NX exception: " & ex.Message)

End Try

Next
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor