Return when fail

Started by PJ_AR_INTER, August 04, 2014, 05:55:22 AM

Previous topic - Next topic

PJ_AR_INTER

Hello all,

I would like my macro to return a value (true or false, 0 or 1, whatever...) if some commands work well or not. With that kind of return I could adjust a parameter in a loop to make my error converge... I don't know if this is possible in polyworks...

Thanks.

CharlieMetrology

Hi there,

There's a command: MACRO GET_ERROR_STATUS ( string ) , that: 'Gets the error status of the last executed statement ', mainly returns "Error" or "No Error", you can get the string and change it to a binary format.

Cheers!
Charlie.