How to determine if corner is inner or outer?

For solidBody ie. sheet metal.

Is there any API for that?

SolidworksApi macros