API Help
Eplan.EplApi.HEServices Namespace / HarnessService Class / ExportData Method / ExportData(Project,String,String,FilterMode,IEnumerable<String>) Method
Project of which the Harness data will be exported.
Full name of the output file.
Language used during the export operation, e.g. de_DE, en_EN, etc.
Defines the scope of export.
Specifies the filter criteria for given filtering mode. Collection can contain wire harness names.
Example

ExportData(Project,String,String,FilterMode,IEnumerable<String>) Method
Exports Harness data.
Syntax

Parameters

oProject
Project of which the Harness data will be exported.
strFileName
Full name of the output file.
strLanguage
Language used during the export operation, e.g. de_DE, en_EN, etc.
nFilterMode
Defines the scope of export.
colFilterValues
Specifies the filter criteria for given filtering mode. Collection can contain wire harness names.
Exceptions
ExceptionDescription
Thrown in case of missing parameters.
Thrown in case of invalid arguments, e.g. the given Project does not exist or isn't valid.
\Internal interface for exporting data could not be created.
An error occurred during the export.
Example
Following example shows how to use the method:
new HarnessService().ExportData(m_oTestProject, strDestinationFilePath, strExportLang, HarnessService.FilterMode.HarnessRelated, new List<String>() { strHarnessName1, strHarnessName2 });

See Also