How To Configure the Upgrade Variables and Upgrade the DGN
- Open the *.PCF file for the project to be upgraded (For example, ...\Workspace\Projects\OPModeler_Imperial.pcf)
-
Define the following variables in the file. By default, these
variables are included in the sample projects which are provided with the OPM
install.
- The value defined for
the first configuration variable points to older version of the schemas (all
schema directories must be specified)
OPM_UPGRADE_OLD_SCHEMA_PATHS = C:\OldOPMSchemas\OPModeler\schemas\;C:\OldOPMSchemas\Dataset\schemas\;
- Old schema version
number Major and Minor (OPM_UPGRADE_OLD_SCHEMA_VER_MAJOR cannot be '0')
OPM_UPGRADE_OLD_SCHEMA_VER_MAJOR = 1 OPM_UPGRADE_OLD_SCHEMA_VER_MINOR = 4
- A Modification Map is
used by the upgrade process. It has the following format:
<CLASS_NAME_1>:<PROP_1>|<PROP_2>|<PROP_3>;<CLASS_NAME_2>:<PROP_1>|<PROP_2>;<CLASS_NAME_3>:<PROP_1>|<PROP_2>|<PROP_3>; ...
Upgrade process will look for classes specified by the map, pick those objects in DGN, and update the properties specified in the map for that specific class.
OPM_UPGRADE_MODIFIED_MAP = MITERED_PIPE_BEND:BEND_POINT_RADIUS|;
- The value defined for
the first configuration variable points to older version of the schemas (all
schema directories must be specified)
- Save and close the *.PCF file.
- Open the older model and key in MECHADDIN UPGRADEDGN to upgrade.