🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Catching An Error

User: "Altair Forum User"
Altair Employee
Updated by Altair Forum User

Hey guys,

 

I want to catch a mistake concerning the mesh. when this mistake is occuring, the user should be able to fix the mesh.

During a while loop i have sometimes an error in the command *plotnodelist, because it needs the inputs 'results of a analysis' and 'nodes id'.

Sometimes the analysis fails and *plotnodelist leads to a break down of Hyperworks because of the missing results. 

Here is the relevant part of my code:

 

while {} {......

 

if { [catch {*plotnodelist 1}] } {
   puts 'analysis failed '
    break 

        
} else {

*plotnodelist 1

}

 

....}

 

Kind regards

Simon

Find more posts tagged with