Bug in SDK 2.0\Sdl.SDK.ProjectAutomation.Samples.BatchAnalyze?

Hello, everyone, I'm Ryota in Japan, feeling a little bit nervous since this is my first post here in this community..

Anyway, I've been trying to develop a TRADOS 2011 batch analysis tool with GUI based on SDK 2.0\Sdl.SDK.ProjectAutomation.Samples.BatchAnalyze but I have noticed that "AddTmFunction" in the code doesn't seem to work properly.

More specifically, even when I specify a non-empty SDLTM running the BatchAnalyze tool, it does not load the specified SDLTM into a sdlproj file it automatically creates so it means I get only repetitions and new segments in an analysis log since no SDLTM was used for the for the analysis.

Is it a known issue or just a problem on my side or by-design behavior?

I've been making a bunch of TRADOS 2011 analysises, each with a different SDLTM, on a daily basisCrying and I'm dying to get this routine of mine automated as soon as possible so aybody who can help me would be greatly appreciated,

Thank you in advanceSmile

Ryota

 

 

 

 

Parents
  • Welcome Ryota!

    An SDL architect has this reply for you, thank you for raising this issue to us;

    This problem was due to an eror in the example code for BatchAnalyze.

    The AddTm Function should look like this:

    private void AddTm(FileBasedProject project, string tmFilePath)

    #endregion

    {

    #region "TranslationProviderConfiguration"

    TranslationProviderConfiguration config = project.GetTranslationProviderConfiguration();

    #endregion

    #region "TranslationProviderCascadeEntry"

    TranslationProviderCascadeEntry tm = new TranslationProviderCascadeEntry(

    tmFilePath,

    true,

    true,

    false);

    config.Entries.Add(tm);

    project.UpdateTranslationProviderConfiguration(config);

    #endregion

    }

    Both the example in the SDK package and the online help have been updated.

    Paul Filkin | RWS Group

    ________________________
    Design your own training!

    You've done the courses and still need to go a little further, or still not clear? 
    Tell us what you need in our Community Solutions Hub

  • Hi, Ian

    Sorry for not having responded for a whileEmbarrassed

    > Both the example in the SDK package and the online help have been updated. I've been having difficulty in downloading

    I've been having difficulty with downloading it so I haven't got it, yet, and I hope what Patrick initially pointed out (logical operator thing) has been also validated  and incorporated in the package if necessary.

    Thank you for your workYes

    Ryota


Reply Children
No Data