API Help
Eplan.EplApi.HEServices Namespace / Masterdata Class / AddToProjectEx Method / AddToProjectEx(String,StringCollection) Method
Full link file name of the 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 extension '.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). TODO : What is a list of all file types which can be used here ?

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

    Parameters

    strFullLinkFileName
    Full link file name of the 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 extension '.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). TODO : What is a list of all file types which can be used here ?

    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