Data Model Customizer Batch

This guide must be used in very specific cases only.

Warning: This documentation is dedicated to Former Typing Customization migration only, which has been deprecated. Therefore, the migration procedure of Former Typing customizations must be used in very specific cases only.

The batch described here replaces the interactive tool for Data Model Customizer (DMC) that used to be run when upgrading.

This page discusses:

1. Back Up V6Rn VPM Dictionary Files

You must back up your VPM dictionary files before you install V6Rn+1.

This step runs the backup step of the migration at level N.

This backup step will work only on levels where DMC Migration is available (from R2011x). If it is not available (on R2011 level and previous levels), use DMC to make the initial backup.

This step is done by using the script with the following options:

DMCMigration -backup -ws workingFolder -server enoviaServerPath -prefix pref1...prefN

where:

  • workingFolder: full path of local folder where all necessary files will be backed up. Files from the V6Rn server environment will be saved in the local Working folder.
  • enoviaServerPath: fullpath of ENOVIA Live Collaboration Server
  • prefN: prefixes used to define customized modelers (separated by a blank character)

2. Install the V6Rn+1 Level

The"Data migration" option can be checked or not and can be run during the installation itself or as a post-installation step.

Install the V6Rn+1 level. During the installation of Multi-Discipline Collaboration Platform, there are 2 cases:

  • In case you are migrating from release N <2013x, option "Data migration" MUST be unchecked. Data migration operation must be run as a post-installation step, after DMC has been migrated and deployed on the current level. As a reminder, data migration is a mandatory step and consists in executing this MQL command: MQL>exec prog VPLMDataMigration.
  • In case you are migrating from release N >=2013x, option "Data migration" can be checked or not. Data migration operation could be run during the installation itself or as a post-installation step (before or after DMC has been migrated and deployed on the current level).

3. Customize Migration to V6Rn+1 Level (Main Step)

This step runs the main step of migration at level N+1:

  • Re-creation of customization
  • Re-creation of customized environments
  • Publication of customized elements on the server

This step is done by using the script with the following options:

 DMCMigration -migr -ws workingFolder -server enoviaServerPath -prefix pref1...prefN

where:

  • workingFolder: full path of local folder where all necessary files from the V6Rn server environment have been saved
  • enoviaServerPath: fullpath of ENOVIA Live Collaboration ServerprefN: prefixes used to define customized modelers (separated by blank characters)
Important: If you are doing a migration from Former Typing to New typing data model, you may need to do an additional step : Merge the Mask File & Generate Security Mask file.

Use the specific mask merger tool to generate V6Rn+1 customization mask files from V6Rn customization masks and V6Rn and V6Rn+1 installed default masks. For more information, see Installation and Setup | 3DEXPERIENCE Platform | 3DEXPERIENCE Configuration and Customization | Security Management | Security Mask Configuration | Security Mask Configuration | Using the Mask Merger

Note: You must save the resulting V6Rn+1 mask files under the DMCWorkingFolder/vplm/mask directory.

Once the V6Rn+1 mask files are generated by the mask merger tool, you must execute the compilation mask to generate the new SecurityMask file. For more information, see Installation and Setup | 3DEXPERIENCE Platform | 3DEXPERIENCE Configuration and Customization | Security Management | Security Mask Configuration | Security Mask Configuration | Mask Generation and Compilation Tools.

4. Generate MQL for all Migrated Customizations

This step runs at level N+1 the generation of an MQL file for each migrated customization. These files will be used to modify the structure of the database, according to the evolutions made between the different levels of products.

DMCMigration -struct -prefix pref1...prefN -server enoviaServerPath

where:

  • enoviaServerPath: fullpath of ENOVIA Live Collaboration Server
  • prefN: prefixes used to define customized modelers (separated by blank characters)

5. Apply the MQL File for Structure Migration of all Customizations

You will find the MQL files in ENOVIA_Live_Collaboration_server_install/DMCmql. These files will modify the structure of the database for all customizations.

Open MQL and run the following commands:

set context user vpmadministrator;
trigger off;
start transaction;
run ENOVIA_Live_Collaboration_Server_install/DMCmql/CUS1xxx.0.mql;
run ENOVIA_Live_Collaboration_Server_install/DMCmql/CUS2xxx.0.mql;
run ENOVIA_Live_Collaboration_Server_install/DMCmql/CUS3xxx.0.mql;
commit transaction;
trigger on;
quit;

Replace ENOVIA_Live_Collaboration_server_install with the actual installation path, and xxx with your filenames.

6. Launch VPLMDataMigration Manually (if Needed)

If you unchecked the Data Migration option during the Multi-Discipline Collaboration Platform installation, launch the Data Migration manually.

If you are migrating from release N <2013x, it is MANDATORY to uncheck the Data Migration option and run the following MQL command:

MQL>exec prog VPLMDataMigration