Trados Business Manager
Speech to Text
Managed Translation - Enterprise
Translation Management Connectors
Language Weaver Connectors
Language Weaver Edge
Tridion Docs Developers
RWS User Experience
RWS Community Internal Group
RWS Access Customer Portal
RWS Professional Services
RWS Training & Certification
RWS Enterprise Technology Partners
Trados Academic Partners
Trados Approved Trainers
ETUG (European Trados User Group) Public Information
Machine Translation User Group
Nordic Tridion Docs User Group
Tridion Docs Europe & APAC User Group
Tridion UK Meetup
Tridion User Group Benelux
Tridion User Group New England
Tridion User Group Ohio Valley
Tridion West Coast User Group
WorldServer User Group
Trados GroupShare Ideas
Trados Studio Ideas
Language Weaver Ideas
Language Weaver Edge Ideas
RWS Language Cloud TMS Ideas
RWS Language Cloud Terminology Ideas
RWS Language Cloud Online Editor Ideas
Managed Translation - Enterprise Ideas
Tridion Docs Ideas
Tridion Sites Ideas
LiveContent S1000D Ideas
Events & Webinars
To RWS Documentation
To RWS Support
Detecting language please wait for.......
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?
Hi Costas Nadalis,
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.
var editorController = SdlTradosStudio.Application…
In Studio 2021 SR1 release we exposed a method in IStudioDocument interface which allows you to:
You can find a code sample here on how to delete a comment for a segment pair. However if the comment is at the file or rage level it will not be removed. Currently is not possible to do it from the API.
We'll make a note to improve the public API.
Hi Andrea-Melinda Ghisa,
Thank you very much for the sample code. I will try it and get back to you If I have any problems.
Please add a way to remove Range and File level comments through the APIs. It will be very helpful.
Is there a way to accept all changes in a file using the APIs? Any help on the matter would be greatly appreciated.
Thanks again for your time and efforts.
Costas Nadalis we'll investigate the accept all changes question and come back with an answer as soon as possible.
You are welcome!
var editorController = SdlTradosStudio.Application.GetController<EditorController>();
var doc = editorController?.ActiveDocument;
var editorController = SdlTradosStudio.Application.GetController<EditorController>(); var doc = editorController?.ActiveDocument;
doc?.AcceptAllTrackedChanges(ConfirmationLevel.Unspecified); // accept tracked changes
doc?.AcceptAllTrackedChanges(ConfirmationLevel.ApprovedSignOff); // accept and set the confirmation level to approved sign off
Thank you very much for your reply.
Is there also going to be an internal API call for the same procedure (without using the Controller/ IStudioDocument Interface)?