Calling methods CPAIStringList.GetProperty and CPAIStringList.GetResFile from .NET

I am using Passolo Pro 2018 and the Passolo .NET SDK.

I am creating an export add-in and have trouble call methods

  1. CPAIStringList.GetProperty()
  2. CPAIStringList.GetResFile()

I tried calling  CPAIStringList.GetProperty() and  CPAIStringList.GetResFile()  from my  IPAINetExportWriter.Write() method.

var sourceFile = stringList.GetProperty("SLPROP_SOURCEFILE"); //did not work

var sourceFile = stringList.GetProperty("65535"); //did not work

what string should I pass into the stringList.GetProperty method.

I also tried calling CPAIStringList.GetResFile() 

stringList.GetResFile(Addin, enmResFileStoreType.SourceList, "MCCADRes"); // did not work

I am not sure what string I should pass in for the last parameter. Below is a screen shot of my Passolo Project I am using with the export add-in

Screenshot of Trados Studio Passolo Project with highlighted areas showing 'String Lists' in the project tree and 'Properties' pane with 'SLPROP_SOURCEFILE' property.



Generated Image Alt-Text
[edited by: Trados AI at 10:12 AM (GMT 0) on 4 Mar 2024]