Is there a way to detect error message?

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

I am now using a tcl script to do some boolean operation.

 

The process is  Geom -->Solid edit -->boolean: advanced, A+B, AB faces in B.

for example:

A: comp1

B: comp2

Sometimes it will fail, and pops out the error message ' internal error '. So, I will manually swap A and B, then it will work.

Thus, I think that if I can detect the error , then I can swap A and B by tcl script. But, is there a way to detect error message?

 

Answers

  • tinh
    tinh Altair Community Member
    edited July 2017

    I am now using a tcl script to do some boolean operation.

     

    The process is  Geom -->Solid edit -->boolean: advanced, A+B, AB faces in B.

    for example:

    A: comp1

    B: comp2

    Sometimes it will fail, and pops out the error message ' internal error '. So, I will manually swap A and B, then it will work.

    Thus, I think that if I can detect the error , then I can swap A and B by tcl script. But, is there a way to detect error message?

     

     

    Hi

    Can't you catch it by 'catch' command?