9 Replies Latest reply on Apr 13, 2016 10:05 AM by Simone Padovan

    FYI, SwDMDocument.ReplaceReference doesn't works. Sent a bug report to API Support

    Simone Padovan

      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], <new path file name>);

       

      dmDoc.Save();

       

      dmDoc.CloseDoc();

       

      At the end the file referenced isn't changed.

      Regards,

      Simone