API Calls to Delete Comments & Accept All Changes?

Hi,

I am looking for a way to delete all comments and then accept all changes in a Project File, through an automated process.
I have been looking but cannot seem to find any API calls that would deliver.
Does anyone have something in mind, or at least a workaround?

Thank you,
Costas

Parents
  • Hi ,

    In Studio 2021 SR1 in the API there we'll be a new method from where you can delete all the comments from a document.

    Code sample:

    var editorController = SdlTradosStudio.Application.GetController<EditorController>();
    var doc = editorController?.ActiveDocument;
     
    doc.DeleteAllCommentsWithoutNotification();
    It will delete all comments including file and selection comments.
    We didn't forget about the tracked changes question. We'll plan an investigation if the method is not already in Studio we'll expose one.
    Have a nice day,
    Andrea Ghisa
Reply
  • Hi ,

    In Studio 2021 SR1 in the API there we'll be a new method from where you can delete all the comments from a document.

    Code sample:

    var editorController = SdlTradosStudio.Application.GetController<EditorController>();
    var doc = editorController?.ActiveDocument;
     
    doc.DeleteAllCommentsWithoutNotification();
    It will delete all comments including file and selection comments.
    We didn't forget about the tracked changes question. We'll plan an investigation if the method is not already in Studio we'll expose one.
    Have a nice day,
    Andrea Ghisa
Children
No Data