Extending product function with VBA : The System Architect object model : Object model classes : Encyclopedia class : Relation metrics
  
Relation metrics
Relation metrics differ from diagram, symbol, and definition metrics in that they are pieces of internal functionality that retrieve information on the relationship between two System Architect Objects in the encyclopedia. For each relation metric, you must declare which two objects should be examined and what relationship exists between them. Depending on which relation metric is being use, only certain System Architect objects with specific relationships are valid.
To access these relation metrics, you must invoke the GetRelationMetric method in the Encyclopedia class. There is a directory of all the relation metrics in the RELATIONMETRIC enumerated list in the SA Object Browser.
Relation metric
Description
Parameters
RELMETCRUD
Returns the combination of CRUD letters (Create, Read, Update, Delete) appear next to the Process name in the Data Store as a string.
SAObjects: Data Store, Process
RELMETDEPTH
Returns the number of Uses relationships between two objects as a numeric.
SAObjects: Must have at least one Uses or Used byrelationship.
RELMETICOMROLE
Returns the relationship role (input, control, output, mechanism, or boundary) between an ICOM arrow and its connected Function/Activity symbol as a string.
SAObjects: ICOM Arrow, Function/Activity
RelTypes: RELCONNSTART, RELSTARTAT, RELCONNEND, RELENDAT
RELMETINPUT
Checks whether a flow symbol flows into another symbol or diagram. Returns Boolean field.
SAObjects: Flow symbol, diagram or node symbol
RelType: RELCONNSTART, RELSTARTAT, RELCONNEND, RELENDAT, RELDIAGRAMCON, RELCONDIAGRAM
RELMETOUTPUT
Checks whether a flow symbol flows out of another symbol or diagram. Returns Boolean field.
SAObjects: Flow symbol, diagram or node symbol
RelType: RELCONNSTART, RELSTARTAT, RELCONNEND, RELENDAT, RELDIAGRAMCON, RELCONDIAGRAM
RELMETSTATETABLE
Checks whether the name of the event attached to a output transition line, which is connected to a state, is mentioned in the state definition dialog. If True, returns State name.
SAObjects: Shlaer State, Shlaer Transition line
RelType: RELCONNEND, RELCONNSTART
See also
Encyclopedia class