Eplan Platform API
Eplan.EplApi.HEServices Namespace / HarnessService Class / ImportData Method / ImportData(Project,String,ImportMode) Method
Project into which the Harness data will be imported.
Full file name of the file to import.
Mode for the import.
Example

In This Topic
    ImportData(Project,String,ImportMode) Method
    In This Topic
    Imports Harness data from a file.
    Syntax

    Parameters

    Parameter NameDescription
    oProjectProject into which the Harness data will be imported.
    strFileNameFull file name of the file to import.
    nImportModeMode for the import.

    Return Value

    An array of created or modified StorableObjects.
    Exceptions
    ExceptionDescription
    Thrown in case of missing parameters.
    Thrown in case of invalid arguments, e.g. the given project does not exist or is not valid.
    Internal interface for importing Harness data could not be created.
    An error occurred during the import.
    Example
    Following example shows how to use the method:
    StorableObject[] arrObjects = new HarnessService().ImportData(m_oTestProject, strDestinationFilePath, HarnessService.ImportMode.Create | HarnessService.ImportMode.Change);
    
    
    See Also