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 a 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 Enabling the metamodel object). After you enable the option and reopen the encyclopedia, you can create a user-defined RELATION definition with the RENAME keyword as follows.
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.
1 In the Explorer, right-click Definitions, and then click New > User Relation.
Specify a name such as UR1.
For the Source Relation Name property, enter User 6.
For the Destination Relation Name property enter DR provided by.
2 Click OK.
3 In the Explorer, right-click Definitions, and then click New > User Relation,.
Specify 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.
4 Click OK.
5 In the Explorer, right-click Definitions, and then click User Props File.
6 Specify the name: UP1
7 Click OK. The definition editor is displayed.
8 In Select Objects in the sequence to be generated, click Choices. The Select and Drag dialog lists the user relations UR 1 and UR2 which you created previously.
9 Drag 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.
10 Click OK.
11 In the Explorer, right click UP1, and then click Generate User Prop.
12 Specify a path and file name for the file, such as USRPROPS.TXT, and then click OK.
A dialog confirms that the User prop file was generated successfully.
13 Click OK.
14 A dialog asks 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
Open the generated user prop file with a text editor. The file contains the following syntax:
RENAME RELATION "User 6" TO "DR provided by"
RENAME RELATION "User 6 complement" TO "provides DR for"
See also
Metamodel graphical editor