Reference Class

This Interface provides access to the various lookup tables within Enterprise Architect. Use the Repository GetReferenceList() method to get a handle to a list.

Valid lists are:

Diagram
Element
Constraint
Requirement
Connector
Status
Cardinality
Effort
Metric
Scenario
Status
Test

Reference Attributes:

Attribute

Type

Notes

Count

Short

A count of items in the list.

 

ObjectType

ObjectType

Read only

Distinguishes objects referenced through a Dispatch interface.

 

Type

String

The list type (for example, DiagramTypes).

 

Reference Methods:

Method

Type

Notes

GetAt (short Index)

String

Get the item at the specified index.

Parameters:

Index: Short - The index of the item to retrieve from the list
 

GetLastError ()

String

Returns a string value describing the most recent error that occurred in relation to this object.

This function is rarely used as an exception is thrown when an error occurs.

 

Refresh ()

Short

Refresh the current list and return the count of items.