API Help
Eplan.EplApi.HEServices Namespace / Masterdata Class / AddToProjectEx Method / AddToProjectEx(Project,StringCollection) Method
Project into which the master data will be copied.
List of master data files names to be added to the project. Files have to be placed in special paths of EPLAN P8 and no paths can be used, only file names. These paths are depended on files types which are recognized only by file name extension. For example forms files, with \file name extention '.f25', have to be placed in directory pointed by Eplan.EplApi.DataModel.PathInfo.Forms (also Eplan.EplApi.Base.PathMap can be used with $(MD_FORMS).

In This Topic
    AddToProjectEx(Project,StringCollection) Method
    In This Topic
    Method for storing system master data in the project.
    Syntax

    Parameters

    oProject
    Project into which the master data will be copied.
    masterDataFiles
    List of master data files names to be added to the project. Files have to be placed in special paths of EPLAN P8 and no paths can be used, only file names. These paths are depended on files types which are recognized only by file name extension. For example forms files, with \file name extention '.f25', have to be placed in directory pointed by Eplan.EplApi.DataModel.PathInfo.Forms (also Eplan.EplApi.Base.PathMap can be used with $(MD_FORMS).

    Return Value

    Hashtable object with collection of errors. Key is a filename (as String) which was passed to masterDataFiles and value is a exception object (based on System::Exception). If all elements was processed correctly returned hastable is empty.
    Exceptions
    ExceptionDescription
    A parameter was set to a null reference.
    \Parameters are invalid, e.g. the set project does not exist or is invalid.
    \Internal interface for master data could not be created.
    Master data could not be stored in the project.
    See Also