There is no API for sketch interference. But if you're willing to do some math, and since your geometry is only circles, you could accomplish something similar. I might use an algorithm like the following...
- Collect all sketch circles, getting their center point location and radius. Here is some sample code from the API help. You won't need the math transforms since you'll be working in sketch space...2016 SOLIDWORKS API Help - Get All Elements of Sketch Example (VBA)
- Determine circle intersection points of each combination of circles. Here's an example of the required math. Circle-Circle Intersection -- from Wolfram MathWorld
- Determine the midpoint of the two interference points derived from step 2.
- Use that point along with Contour Selections to select the interfering region graphically. For example, if x and y are the midpoint coordinates in meters...
Part.SelectionManager.EnableContourSelection = True
Part.Extension.SelectByID2("Sketch1", "SKETCHREGION", x, y, 0, True, 4, Nothing, 0)
The "Sketch1" string above would need to be replaced with the name of the sketch you are checking.
Hope that helps you accomplish your task!
Thanks a lot for your Support,