hi there! i got a problem when i import an UG part file into Solidworks.
i want to break relationship up between UG and SW, i know i can right click the reference node then click "break link", but how should i do it via VBA or C#? i have searched the API help, and find a method "BreakAllExternalFileReferences2 Method (IModelDocExtension)", but it doesn't work.
give me some tips . thanks.
i have wrote The following scripts to test this puzzle , it doesn't work.
public void Main()
{
ModelDoc2 swDoc = null;
PartDoc swPart = null;
DrawingDoc swDrawing = null;
AssemblyDoc swAssembly = null;
bool boolstatus = false;
int longstatus = 0;
int longwarnings = 0;
//
// Open
swDoc = ((ModelDoc2)(swApp.OpenDoc6("C:\\Users\\Administrator\\Desktop\\123.SLDPRT", 1, 192, "", ref longstatus, ref longwarnings)));
swDoc.Extension.BreakAllExternalFileReferences2(false); //this method doesn't work no matter how i set the bool parameter to "ture" or "false".
}