Thanks Marcos. I am aware of that interface in the Sketch environment, but I need to find this information using SolidWorks API code.
Check these links, it may give you a clue.
Or try to access that 'Display/Delete Relations' functionality through API.
If you record a macro, with an Sletch open and some external relations.
Delete those Relations and stop & Save the macro.
This is what you'll get:
if you want to break the ' External References' you'll need to do it to another level, take a look at this:
I hope it helps.
The solution is to use the appropriate filter parameter when calling the GetRelations method from the SketchRelationManager. In this case, swSketchRelationFilterType_e.swExternal
var sketchRelations = (object) sketchRelationManager.GetRelations((int)swSketchRelationFilterType_e.swExternal);