How to get self-intersecting points

 In drawing file, I want to get self- interecting points by using API. Is  there the way that I get self-intersecting points from 2D sketch.

SolidworksApi/macros