If "error", continue anyway

Altair Forum User
Altair Forum User
Altair Employee
edited October 2020 in Community Q&A

Hi,

I have a problem.

I check the intersection between a line and some surfaces.
If there is no intersection found, the macro crashes.
Is there any way to do 'If error, continue anyway (and stock this line in this component)'

 

Thanks.

Regards,

Cya.

Answers

  • tinh
    tinh Altair Community Member
    edited March 2014

    Hello,

    yes, there is

    you can ignore errors by 

    catch {

       #your codes here

     

    }