Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations JAE 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
Joined
Jun 3, 2020
Messages
8
Location
ES
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.
 
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

Back
Top