PointCloud.us - A PolyWorks Support Forum

PolyWorks Discussion => Macro World => Topic started by: PJ_AR_INTER on August 04, 2014, 05:55:22 AM

Title: Return when fail
Post by: PJ_AR_INTER on August 04, 2014, 05:55:22 AM
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.
Title: Re: Return when fail
Post by: CharlieMetrology on June 12, 2015, 12:56:24 AM
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.