API Help
Eplan.EplApi.HEServices Namespace / ProjectManagement Class / LoadDirectory Method
Path to directory which will be scanned. If null or empty then default path is used.
Determines whether sub directories are also scanned for projects.

In This Topic
    LoadDirectory Method
    In This Topic
    Scans directory for projects to add them into the project management.
    Syntax
    public void LoadDirectory( 
       string strProjectsDirectory,
       bool bWithSubDirs
    )
    public:
    void LoadDirectory( 
       String^ strProjectsDirectory,
       bool bWithSubDirs
    ) 

    Parameters

    strProjectsDirectory
    Path to directory which will be scanned. If null or empty then default path is used.
    bWithSubDirs
    Determines whether sub directories are also scanned for projects.
    Exceptions
    ExceptionDescription
    Thrown if directory is not null or empty and does not exists.
    Thrown if the functionality is not available.
    Thrown if an error occurs while executing the method.
    Remarks
    To access existing projects from the project management, they must be loaded into the project management. This method allows user to search for projects in directories under given path. If no path is passed then method uses default value which is stored in setting 'USER.TrDMProject.Masterdata.Pathnames.Projects'.
    See Also