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

    oProject
    Project into which the Harness data will be imported.
    strFileName
    Full file name of the file to import.
    nImportMode
    Mode 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 isn't 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