Eplan Platform API
Eplan.EplApi.MasterData Namespace / MDPartsDatabase Class / UpdateScheme Method
Example

In This Topic
    UpdateScheme Method
    In This Topic
    Updates the scheme of the database.
    Syntax
    public void UpdateScheme()
    public:
    void UpdateScheme(); 
    Remarks
    If the scheme is already up to date, than nothing will be done. OpenDatabase method does not automatically update a parts database from a previous to the current version. Databases in an older format will be opened read-only. You can check whether the database format is up-to-date by the property MDPartsDatabase.IsSchemeUpToDate and update it if needed by this method. Parts databases prior to version 2022 need to be upgraded / converted either manually or by the action XPamConvertPartDatabaseToArticleDatabaseAction /OldDatabase... /NewDatabase...
    Example
    MDPartsDatabase database = partsManagement.OpenDatabase();
    if ( !database.IsSchemeUpToDate )
    {
     database.UpdateScheme();
    }
    See Also