Hello everyone,
I've sent a bug report to API Support to show this problem. Code like this doens't works:
SwDMDocument18 dmDoc;
SwDMExternalReferenceOption2 extRefOpt;
...
var res = dmDoc.GetExternalFeatureReferences2(extRefOpt);
String[] externalReferences = (String[])extRefOpt.ExternalReferences;
dmDoc.ReplaceReference(externalReferences[0],
dmDoc.Save();
dmDoc.CloseDoc();
At the end the file referenced isn't changed.
Regards,
Simone
SolidworksApi macros