API Help
Eplan.EplApi.DataModel Namespace / ProjectManager Class / UpgradeProjectDatabase Method / UpgradeProjectDatabase(String) Method
Path to .elk project file.

In This Topic
    UpgradeProjectDatabase(String) Method
    In This Topic
    Upgrades project. You can check if project need to be upgrade by GetProjectDataCompatibility. Method makes a copy of old project and sets name to (OldProjectName)(V2).(extension).
    Syntax
    public bool UpgradeProjectDatabase( 
       string projectPath
    )
    public:
    bool UpgradeProjectDatabase( 
       String^ projectPath
    ) 

    Parameters

    projectPath
    Path to .elk project file.

    Return Value

    Function returns value about success.
    Exceptions
    ExceptionDescription
    Thrown when project projectPath doesn't exist.
    Thrown when projectPath is null.
    Remarks
    Upgrading project invalidates Project objects having projectPath path.
    See Also