API creating extrusion from sketch with intersecting contours

Good day all

i'm trying to program this thing and i'm lost.

IFeatureManager::FeatureExtrusion2 fails if sketch has intersecting contours within itself.

Idea i've been toying with is adding all the contours from the sketch to the extrusions contours, but that requires an existing extrusion...

Any help would be immensly appretiated. Just point me in the right direction.

thank you in advance

SolidworksApi macros