Both of these methods return a non-null feature object even when the operation fails, and I haven't seen any way to ask SolidWorks if the last operation failed. Is there anything I can do other than doing detailed analysis of the sketch in advance to make sure the geometry is valid for the operation?
SolidworksApi macros