Extending product function with VBA > The System Architect object model > Object model classes > Diagram class > Diagram metrics
  
Diagram metrics
In the past, metrics have been used to create lists, run rules checks, and provide calculations for various System Architect reports. Now it is possible for the user to run individual metrics by invoking the GetMetric method in the Diagram class. There exists a directory of all the diagram metrics in the DIAGRAMMETRIC enumerated list in the SA Object Browser. The following is a table of all the available diagram metrics and their descriptions.
DIAGMETBALANCE
Compares the input and output lines of the diagram with the input and output lines of its parent process. Creates a list of non-matching input or output lines, giving the name and symbol type. (See Balance Parent Help file)
DIAGMETCHARCOUNT
Returns the number of characters in the description property of the diagram.
DIAGMETCURRENT
True or False Boolean Field. Returns True if diagram is currently displayed.
DIAGMETELELMENTLIST
Creates a list of the bottom level elements for all symbol definitions on the diagram. An element is bottom if it has no expanding relationships.
DIAGMETINPUTLIST
Creates a list of bottom level elements used as input for all symbol definitions on the diagram. An element is bottom if it has no expanding relationships.
DIAGMETLEVELNUMBER
Returns the number describing the hierarchal position of the diagram (for example, 5.3, 5.3.1, and so on) as a string.
DIAGMETLEVELNUMBERSORT
Returns the number describing the hierarchal position of the diagram as a string. Each number contains 3 digits (for example, 003.005.002). This allows the user to better sort the results.
DIAGMETLINECOUNT
Returns the number of lines in the description property of a diagram.
DIAGMETOUTPUTLIST
Creates a list of bottom level elements used as output for all symbol definitions on the diagram. An element is bottom if it has no expanding relationships.
DIAGMETREFERENCE
Returns True if the diagram is referenced by any other object.
DIAGMETRULES
Runs rules check that looks for violations of standard methodology rules for the diagram.
DIAGMETSELECTED
Returns True if the diagram is currently opened and has any selected symbols.
DIAGMETTOP
Returns False if the diagram is the child of any symbols. Returns True if the diagram does not expand from a symbol.
DIAGMETUNMARKEDLIST
Creates a list of bottom level elements used by the definition of all line symbols on the diagram that are not marked as either input or output (no arrow heads). An element is bottom if it has no expanding relationships.
DIAGMETWORDCOUNT
Returns the number of words in the description property of the diagram.
See also
Diagram class