Customizing the metamodel : Metamodel graphical editor : Creating user-defined RELATION with the metamodel graphical editor
  
Creating user-defined RELATION with the metamodel graphical editor
You can create user-defined RELATION with the Metamodel Graphical Editor by using the RENAME keyword.
This process relies on the Meta Model Objects option already being enabled (see the topic Enabling the Meta Model Object). After you enable the option and reopen the encyclopedia, you can create a user-defined RELATION definition with the RENAME keyword as follows.
1 This procedure uses examples to go through the steps, but you can create and name your user-defined definitions that are based on your specifications.
2 In the Explorer, right-click Definitions, select New> User Relation, and provide a name such as UR1.
For the Source Relation Name property, enter User 6.
For the Destination Relation Name property enter DR provided by.
3 Click OK.
4 In the Explorer, right-click Definitions, and select New> User Relation, and provide a name such as UR2.
For the Source Relation Name property, enter User 6 complement.
For the Destination Relation Name property enter provides DR for.
5 Click OK.
6 In the Explorer, right-click Definitions, and select User Props File, and name it UP1.
7 Click OK. The definition editor is displayed.
8 In the Select Objects in the sequence to be generated property, click Choices. The Select and Drag dialog lists the user relations UR 1 and UR2 which you created previously.
9 Drag and drop UR 1 and UR2, ensuring that UR 1 is at the top of the list. If it is not, select UR 1 and click the up arrow to move it to the top position.
10 Click OK.
11 In the Explorer, right click UP1 and select Generate User Prop.
12 Specify a path and file name for your file, such as USPROPS.TXT and click OK. A dialog confirms that the User prop file was generated successfully. Otherwise, you are informed in the report window any problems that prevented the successful generation of the file.
13 Click OK. Another dialog prompts you whether you want to load the generated user props file to the currently loaded encyclopedia. For this example, click Yes. You can also import the generated user prop file into your current encyclopedia, or to another encyclopedia, later. The encyclopedia is reopened with the user prop file that you generated.
Result
If you open the generated user prop file with a text editor, the file would contain the following syntax:
RENAME RELATION "User 6" TO "DR provided by"
RENAME RELATION "User 6 complement" TO "provides DR for"