Allow source Editing programmatically

In SDL Trados Studio 2017 in process of creating New Project, in "Project details" page, there is a checkbox labeled: "Allow source editing". I need to create project programmatically, but I cannot see any way to enable this option.

Please tell me how to enable it programmatically.

Thank you.

  • The ProjectAutomationAPI is not exposing this directly but you can try to get the project settings, get the SourceContentSettings group and set AllowSourceEditing to true. This would like something like this (this is top of my head and I did not tested the actual code):

    //load the project
    var studioProject = new FileBasedProject(@"{Project file path}");
    //get the project settings as settings bundle 
    ISettingsBundle settingsBundle = studioProject.GetSettings();
    var settingsGroup = settingsBundle.GetSettingsGroup("SourceContentSettings");
    settingsGroup.GetSetting("AllowSourceEditing", true).Value = true;


    You can also find an example on how to work with project settings in this article.