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;
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".
Hi Rob .
Thank you for your help
I tried the method you recommended, but it still doesn't work.
the method "UpdateExternalFileReferences" is related to the UI command "List Ext Refs" -->"Break all " or "lock all ".like the figure illustrated. it seems this method is valid for components and features, but valid for external third party Parts.