6.2.5.58. Architecture-EAExporterCom

Export architecture view into Enterprise Architect format using EA’s COM-based API (Windows-only)

Required inputs: RFG

Exports an architecture view into Enterprise Architect format using EA's provided COM-based API. This rule currently only runs under Windows, and requires access to an Enterprise Architect installation.

Possible Messages

This rule has no predefined messages.

Options

architecture_view_name

architecture_view_name : str = 'None (value must be set)'

Name of the architecture view to be exported.
 

ea_file_path

ea_file_path : bauhaus.analysis.config.LayerRelativePath = 'None (value must be set)'

Path to the Enterprise Architect (.qea or .eapx or .eap) project file.
 

ea_tlb_path

ea_tlb_path : bauhaus.analysis.config.LayerRelativePath = 'C:Program FilesSparx SystemsEAEA.tlb'

Path to the EA TLB file for accessing EA API functions
 

edge_mapping

edge_mapping

Type: dict[RFGEdgeOption, EdgeConfig]

Default:

{
   'Extend':    bauhaus.architecture.ea_export.ea_export_base.EdgeConfig(
      ea_edge='Generalization',
      reverse=True
   ),
   'Source_Dependency':    bauhaus.architecture.ea_export.ea_export_base.EdgeConfig(
      ea_edge='Dependency',
      reverse=False
   )
}
Mapping from RFG edges to EA edges.
 

export_warnings

export_warnings : bool = True

Export output messages to the analysis database.
 

exported_tagged_values

exported_tagged_values : set[str] = set()

List of tagged values to be imported from RFG view to EA as tagged values. Exported tagged value RFG attributes must be prefixed with "UML:taggedValue:" and suffixed with one of the names in this set. E.g, "Call:Count" in the set causes attribute values of name UML:taggedValue:Call:Count to be exported as tagged value "Call:Count".
 

language

language : Language = 'C++'

The language property to be set for generated EA entities.
 

loglevel

loglevel : LogLevel = 'WARNING'

Logging mode. WARNING only outputs errors and warnings, INFO additionally prints info messages, DEBUG additionally outputs info and debug messages.
 

Option Types

These types are used by options listed above:

EAEdgeOption

An enumeration.
 
  • Dependency

  • Generalization

EdgeConfig

EdgeConfig(ea_edge: bauhaus.architecture.ea_export.ea_export_base.EAEdgeOption = , reverse: bool = False)
 

ea_edge : EAEdgeOption = 'Dependency'

The EA edge to which the RFG edge shall be translated.
 

reverse : bool = False

Whether the edge direction shall be reversed.
 

Language

An enumeration.
 
  • C++

  • C

  • Java

  • C#

  • Python

LogLevel

An enumeration.
 
  • WARNING

  • INFO

  • DEBUG

RFGEdgeOption

An enumeration.
 
  • Source_Dependency

  • Extend