Metrics Generation

When running a transformation, it is possible to generate Metrics on Open Rhapsody Model.
To do this, select the option "Generate metrics from Rhapsody".
This will generate a .csv file in the log folder.

Silent Mode Implementation

To Generate Metrics, set to following option in publisher.properties file:

# Determines whether Elements Name should be replaced by label values
rhp2md.semantic.elementName=ElementName
# Determines whether Colors are transformed from Rhapsody
rhp2md.graphical.element.colors=MDColors
# Determines whether the Rhapsody profiles must be un-applied
rhp2md.semantic.unapplyRhapsodyProfile=false
# Determines the way Item Flows are transformed
rhp2md.semantic.item_flows=Signal
# Determines whether Properties in Object Model Diagrams are transformed to Instance Specifications
rhp2md.graphical.object_diagram.instance_specification=false
# Determines whether Metrics are generated from Rhapsody
rhp2md.metrics=true
# Determines whether Flow Port visibility is forced to public
rhp2md.semantic.flow_ports.visibility.public=false
# Determines the MagicDraw profiles version that has to be loaded
magicdraw.profile.version=19.0
#Determines whether 'Rhapsody Application NG' or 'Rhapsody On-Demand' is used to read Rhapsody data
rhp2md.rhapsody.accessor=Rhapsody Application NG
#Determines whether the DoDAF2 Stereotypes will be converted to SysML
rhp2md.semantic.updm2sysml=true

To not generate Metrics, set to following option in publisher.properties file:

# Determines whether Elements Name should be replaced by label values
rhp2md.semantic.elementName=ElementName
# Determines whether Colors are transformed from Rhapsody
rhp2md.graphical.element.colors=MDColors
# Determines whether the Rhapsody profiles must be un-applied
rhp2md.semantic.unapplyRhapsodyProfile=false
# Determines the way Item Flows are transformed
rhp2md.semantic.item_flows=Signal
# Determines whether Properties in Object Model Diagrams are transformed to Instance Specifications
rhp2md.graphical.object_diagram.instance_specification=false
# Determines whether Metrics are generated from Rhapsody
rhp2md.metrics=false
# Determines whether Flow Port visibility is forced to public
rhp2md.semantic.flow_ports.visibility.public=false
# Determines the MagicDraw profiles version that has to be loaded
magicdraw.profile.version=19.0
#Determines whether 'Rhapsody Application NG' or 'Rhapsody On-Demand' is used to read Rhapsody data
rhp2md.rhapsody.accessor=Rhapsody Application NG
#Determines whether the DoDAF2 Stereotypes will be converted to SysML
rhp2md.semantic.updm2sysml=true