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

UpgradeProjectDatabase(String) Method
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
)

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