SketchContour details

Hi

I have multiple sketch contours in the plane but i selected single contour to extrude.

While retrieving the extrude sketchsegments it returns all the sketch contours.

But i need only the extruded contour.

can anybody suggest it.

SolidworksApi macros