How to identify if a constraint was created or not?

Hi!

I need a code that will return true if the constrait I did in Solidworks worked, false/null otherwise.

I'm using ModelDoc2:: SketchAddConstraints, since this function returns void, I cannot identify if the constraint worked of not.

I need to identify it because "function A" will be executed if the constrait worked and "function" B will be executed otherwise.

Hoping someone could help.

Regards,

J.Torres

SolidworksApi macros