Click or drag to resize
IProject Interface
Represents a project. Provides access to project information and settings, and provides functionality for modifying the project, running tasks etc.

Namespace: Sdl.ProjectAutomation.Core
Assembly: Sdl.ProjectAutomation.Core (in Sdl.ProjectAutomation.Core.dll) Version: 3.0.0.0 (3.1.5799.0)
Syntax
public interface IProject

The IProject type exposes the following members.

Methods
  NameDescription
Public methodAddBilingualReferenceFile
Associates a bilingual reference file with a particular source file and target language using a BilingualFileMapping
Public methodAddBilingualReferenceFiles
Associates a number of Bilingual reference file to particular source file in a target language using an array of BilingualFileMapping
Public methodAddFiles(String)
Adds a set of files into the project, in the root folder.
Public methodAddFiles(String, String)
Adds a set of files into the project, below a specified project folder.
Public methodAddFolderWithFiles(String, Boolean)
Adds all the files from a folder into the project, in the root folder
Public methodAddFolderWithFiles(String, String, Boolean)
Adds all the files from a folder into the project, below a specified project folder.
Public methodAddNewFileVersion
Adds a new version of the file into the project.
Public methodCreateManualTask(String, String, DateTime, TaskFileInfo)
Public methodCreateManualTask(String, String, DateTime, Guid)
Public methodCreateMergedProjectFile
Creates a merged file from a number of translatable files in the project. This allows manipulating the content of all the child files within one physical file. For more information, see MergedProjectFile.
Public methodCreateProjectPackage(Guid, String, String, ProjectPackageCreationOptions)
Creates a project package. The package can then be obtained using SavePackageAs(Guid, String).
Public methodCreateProjectPackage(Guid, String, String, ProjectPackageCreationOptions, EventHandlerProgressEventArgs, EventHandlerMessageEventArgs)
Creates a project package. The package can then be obtained using SavePackageAs(Guid, String).
Public methodCreateReturnPackage(Guid, String, String)
Creates a return package from a set of files. The files must all have previously been received as part of a project package in order for the return package to be created.
Public methodCreateReturnPackage(Guid, String, String, EventHandlerProgressEventArgs, EventHandlerMessageEventArgs)
Creates a return package from a set of files. The files must all have previously been received as part of a project package in order for the return package to be created.
Public methodGetAutomaticTask
Retrieves an existing automatic task.
Public methodGetFile
Retrieves the file with specified ID.
Public methodGetManualTask
Retrieves an existing manual task.
Public methodGetProjectInfo
Retrieves information about the project
Public methodGetProjectStatistics
Gets the aggregated analysis, word count and confirmation statistics for all the files in the project. This will not actually compute the statistics, but just return a snapshot of the statistics that where most recently computed. To update the statistics, run the relevant task: WordCount, AnalyzeFiles or TranslationCount.
Public methodGetSettings
Gets the project-level settings.
Public methodGetSettings(Language)
Gets the settings for a specific target language.
Public methodGetSourceLanguageFiles
Retrieves all source language files.
Public methodGetTargetLanguageFiles
Retrieves all target language files.
Public methodGetTargetLanguageFiles(Language)
Retrieves all files for the specified target language.
Public methodGetTermbaseConfiguration
Retrieves all termbase-related settings that are associated with this project.
Public methodGetTranslationProviderConfiguration
Gets the translation provider configuration for this project.
Public methodGetTranslationProviderConfiguration(Language)
Gets the translation provider configuration for the specified target language. If no specific configuration has been specified for the specified target language, this method returns an empty (not null!) configuration.
Public methodImportReturnPackage(String)
Imports a return package into this project.
Public methodImportReturnPackage(String, EventHandlerProgressEventArgs, EventHandlerMessageEventArgs)
Imports a return package into this project.
Public methodOpenProjectFileStream
Returns a stream that can be used to save out the latest version of the file.
Public methodRemoveBilingualReferenceFile
Removes a Bilingual reference file from a target project file
Public methodRunAutomaticTask(Guid, String)
Runs an automatic task on a set of files. Automatic task template IDs are defined in AutomaticTaskTemplateIds.
Public methodRunAutomaticTask(Guid, String, EventHandlerTaskStatusEventArgs, EventHandlerTaskMessageEventArgs)
Runs an automatic task on a set of files. Automatic task template IDs are defined in AutomaticTaskTemplateIds. This overload allows event handlers to be specified for task status and message events. These events support cancellation of the task.
Public methodSavePackageAs
Saves out a created project or return package to a specified file location.
Public methodSaveProjectFileAs
Saves out the file to a specified file location.
Public methodSaveTaskReportAs
Saves the task report out to a file, in the specified format
Public methodSetFileRole
Changes the role of the file. A Scan task (Scan) should be run after changing the file role in this way.
Public methodUpdateProject
Updates the project with the new information contained in projectInfo.
Public methodUpdateSettings(ISettingsBundle)
Updates the project-level settings.
Public methodUpdateSettings(Language, ISettingsBundle)
Updates the settings for a specific target language.
Public methodUpdateTermbaseConfiguration
Updates the termbase-related settings for this project.
Public methodUpdateTranslationProviderConfiguration(TranslationProviderConfiguration)
Updates the project-wide translation provider configuration.
Public methodUpdateTranslationProviderConfiguration(Language, TranslationProviderConfiguration)
Updates the translation provider configuration for a specific project target language.
Top
See Also
Community
Edit

Be the first to Edit the community content of this topic.
Comments