Eplan Platform API
EPLAN API / API Reference / Actions / XPrjActionUpgradeProjects
XPrjActionUpgradeProjects
 This action upgrades one ore more projects to the actual database scheme version.
 

Parameter Description
Project
Full project link file name
Folder
All projects in the folder and its subfolders are upgraded.
Archive
true: zw1 projects are also upgraded and packed afterwards.
BaseProject
true: zw9 and zx1 projects are also upgraded and packed afterwards.
UpgradeWriteProtectedProjects
true: ReadOnly projects are also upgraded (*.elr and *.elt, *.els, elx)
UpgradeXMLProjects
true: Projects/base projects in XML format are also upgraded (*.ept and *.epj, *.zx2)
FileTypes
*.*: All projects (same as *.elk,*.ell,*.elp,*.elr,*.elt,*.els,*.elx,*.zw1,*.zw9,*.zx1,*.ept,*.epj,*.zx2)
PackOriginalProject
true: The original projects will be packed into a 7zip file after upgrade (default = true).
UpdateConnections
true: The connections in project will be updated (default = false). Note: If "DoDataModelUpgrades" is false, this value will be ignored.
NoBackup
true: No Backup of the old version is created (default = false).
IgnoreUpgradeBackups
true: Backup projects will be ignored when converting a complete folder (default = false). Backup projects have naming [NAME]_V[Version]_[Backuptime]
DoDataModelUpgrades
true: Also data model corrections will be done (default = true). Note: If false, "UpdateConnections" will be ignored.
FileDescription
0: Default, will add new data backup description at the end.
                1: Data backup description will not change.
      2: Replace data backup description with new one.
 

Remarks
 The action does nothing when no upgrade is needed. (Except for XML formats).
 Several input formats are provided: a project in zw1 format is upgraded and packed to zw1 again.
 All projects in a folder are upgraded (recursive).
 A backup of every project is done before changing.
 
 BaseProjects are only upgraded when a major version change is done. For minor changes the base Project will stay unchanged.
 Each project found produces a system message with the upgrade result.
 Handle Folder:
 All *.elk and *.ell and *.elp are upgraded.
 When FileTypes is set, the params Archive/BaseProject/UpgradeWriteProtectedProjects are ignored.
 

Example
                XPrjActionUpgradeProjects /Project:$(MD_PROJECTS)\EPLAN_Sample_Project.elk