Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.

Reserved Names

When you write a Shape Script, there are certain terms that are reserved because they have special meaning in the script; use them for their specific purposes.

Elements

Elements (such as Class, State or Event) have the following reserved names for parts of the shape.

Name

Description

See Also

shape main

The main shape is the whole shape.

 

 

shape label

The shape label gives the shape a detached label.

 

 

decoration <identifier>

Decoration gives the shape a decoration as defined by the name in <identifier>.

 

 

shape ChildElement

 

Allows addition of custom compartments based on child elements belonging to the current element.

 

Add Custom Compartments to Element

 

shape RelatedElement

Allows addition of custom compartments based on related elements belonging to the current element.

 

Add Custom Compartments to Element

 

Connectors

Connectors (such as Association, Dependency or Generalization) have the following reserved names for parts of the shape.

Name

Description

shape main

The main shape is the whole shape.

 

shape source

The source shape is an extra shape at the source end of the connector.

 

shape target

The target shape is an extra shape at the target end of the connector.

 

shape LeftTopLabel

 

 

 

 

 

 

 

Each of these shapes defines a detached label for the connector in the position matching the label name.

shape MiddleTopLabel

 

shape RightTopLabel

 

shape LeftBottomLabel

 

shape MiddleBottomLabel

 

shape RightBottomLabel