Creating Characteristics
You can also create a MetaAttribute by means of an MGE command file, using the following syntax:
 
Syntax
.Create .MetaAttribute "Characteristic" ."MetaAttribute Type" "X" ."MetaAttribute Length" "5"
Example 1
.Create .MetaAttribute "Message-Type" ."MetaAttribute Type" "X" ."MetaAttribute Length" "1"
Example 2
.Create .MetaAttribute "Value" ."MetaAttribute Type" "A"
Example 3
.Create .MetaAttribute "ShortName" ."MetaAttribute Type" "X " ."MetaAttribute Length" "8" ."_AtIndex" "U"
Characteristic values may be declared unique for a given object type. To do this, specify the value “U” for _AtIndex in the characteristic definition.
*The characteristic uniqueness is only effective in repositories created after uniqueness has been declared.
Creating a text type characteristic
 
Syntax
.Create .MetaAttribute "Characteristic Name" ."MetaAttribute Type" "A"
Example
.Create .MetaAttribute "Ext Objective" .MetaAttribute Type "A"
Creating a tabulated MetaAttribute
 
Syntax
.Create .MetaAttribute "Characteristic Name" ."MetaAttribute Type" "Format" -
."Update Version" "16643" -
.MetaAttribute Length "Length" ."MetaAttribute Format" "T"
Example
Create .MetaAttribute "Ext Role" ."MetaAttribute Type" "X" - "Update Version" "16643" -
."MetaAttribute Length" "20" ."MetaAttribute Format" "T"
Creating a unique index MetaAttribute
 
Syntax
.Create .MetaAttribute "Characteristic Name" ."MetaAttribute Type" "Format" -
.MetaAttribute Length "Length" ._AtIndex "U"
Example
.Create .MetaAttribute "Ext Code" ."MetaAttribute Type" "X" ."MetaAttribute Length" "5" ."_AtIndex" "U"
Connecting a MetaAttribute to a MetaClass
 
Syntax
.Create MetaClass "Object Type"
Example 1
.Connect .MetaClass "Procedure" ."MetaAttribute" "Procedure-Type"
Example 2
.Connect .MetaClass "Procedure" ."MetaAttribute" "Object"
Example 2 illustrates attachment of a text to an object type.
*The "Comment" text is linked to all object types when they are created. This command is used to connect additional text to a segment.
Connecting a MetaAttribute to a MetaAssociationEnd
 
Syntax
.Connect .MetaAssociation "Link" ."MetaAttribute" "Characteristic"
Example
.Connect .MetaAssociation "Operation-Sending" ."MetaAttribute" "Predicate"
Creating an abbreviation
 
Syntax
.Abbreviate .MetaClass "Long Name" "Short Name"
Example
.Abbreviate .MetaAttribute "Creation Date" "Creation"