HOPEX Studio : Customizing Diagrams : Configuring Diagrams : Configuring a Diagram Type : Creating and Backing Up a Diagram Configuration
   
Creating and Backing Up a Diagram Configuration
Configuration of diagrams is not assured by MEGA, unlike standard customizations (metamodel extensions, shape customizations). It is an advanced configuration that requires:
validation of configurations by compiling the metamodel in MEGA Supervisor
configuration backup
repeat of the previous steps after each MEGA version update. Diagram configurations are reinitialized at environment updates
Given the complexity of the diagram configuration procedure, configurations should be carried out in an environment other than the production environment.
The simplest method of backing up a diagram configuration is to export it.
Example: if you have modified organizational chart configuration, you should export the "Organizational Chart" DiagramTypeParam.
To apply your configuration to a diagram type after updating the environment:
1. In MEGA Supervisor, connect to the environment concerned with a user having rights to modify MEGA data.
2. Import the exported file containing your customized configurations.
3. Connect the DiagramTypeParam to the corresponding DiagramType.
4. Compile the metamodel.
5. Copy the image files used by your configuration in the Mega_std folder of the MEGA installation.
To view during a transaction the result of changes in configuration of diagrams and navigation trees:
1. In the MEGA Start page, click MetaStudio Console.
2. In the dialog box that opens, click Refresh Context.
To obtain the same result, you can open the script editor, enter the command CurrentEnvironment.refreshcontext and click Execute.