Diagram Display Configuration

Introduction

Due to the number of graphic properties on diagrams that are not accessible from Rhapsody, these properties have been set by default in a properties file. By editing this file, it is possible to configure the display of diagrams in MagicDraw.

The current guide explains how to configure the display of diagrams in MagicDraw.

Overview

The Java System Property rhp2md.graphical.properties.path must be defined in the publisher.ini file, in order to configure the display in MagicDraw.
If the System Property rhp2md.graphical.properties.path is not correctly set, models cannot be published into MagicDraw.

The Graphical Properties are defined per Diagram Type, for each UML and SysML Diagram.
For more information on UML and SysML Diagram Types, see the Administration section.
In addition, Graphical Properties for all kinds of Diagrams can be defined.
If a Graphical Property has been defined for a type of Element, and another Graphical Property (with a different value) is defined for the same Element, the last one will be taken into account.
For example, if we have the following Graphical Properties for a SysML Block Definition Diagram, in the properties.ini file:

SYSML_BLOCK_DEFINITION_DIAGRAM.Block.showStereotype=true
SYSML_BLOCK_DEFINITION_DIAGRAM.Class.showStereotype=false

Stereotypes for Blocks won't be displayed because a Block is a Class stereotyped <<Block>>.
If a Graphical Property is read from the input Rhapsody Model, but also defined in the Configuration File, the Graphical Property in the Configuration file is the value used..

Default Properties

A Properties File is used to define the way Diagrams are displayed in MagicDraw.
A File called "properties.ini" is provided with the installation files.
Some default Graphical Properties have been defined in the File.

Default Activity Diagram's Graphical Properties

ACTIVITY_DIAGRAM.ControlNode.showName=false

Set to false, hide Control Node Names in Activity Diagrams.
Set to true, show Control Node Names in Activity Diagrams.
Default false.

ACTIVITY_DIAGRAM.PseudoState.showName=false

Set to false, hide Pseudo State Names in Activity Diagrams.
Set to true, show Pseudo State Names in Activity Diagrams.
Default false.

ACTIVITY_DIAGRAM.SHOW_DIAGRAM_FRAME=false

Set to false, hide Diagram Frame in Activity Diagrams.
Set to true, show Diagram Frame in Activity Diagrams.
Default false.

Default Composite Structure Diagram's Graphical Properties

COMPOSITE_STRUCTURE_DIAGRAM.Property.showStereotype=false

Set to false, hide Property Stereotypes in Composite Structure Diagrams.
Set to true, show Property Stereotypes in Composite Structure Diagrams.

Default Diagram's Graphical Properties

DIAGRAM.Abstraction.showStereotype=false

Set to false, hide Abstraction Stereotypes in Diagrams.
Set to true, show Abstraction Stereotypes in Diagrams.
Default false.

DIAGRAM.Association.showName=false

Set to false, hide Association Names in Diagrams.
Set to true, show Association Names in Diagrams.
Default false.

DIAGRAM.Association.showStereotype=false

Set to false, hide Association Stereotypes in Diagrams.
Set to true, show Association Stereotypes in Diagrams.
Default false.

DIAGRAM.Actor.showStereotype=STEREOTYPE_DISPLAY_MODE_SHAPE_IMAGE

Set to STEREOTYPE_DISPLAY_MODE_TEXT_AND_ICON, show Actor Stereotype Name and Icon in Diagrams.
Set to STEREOTYPE_DISPLAY_MODE_TEXT, show Actor Stereotype Name in Diagrams.
Set to STEREOTYPE_DISPLAY_MODE_ICON, show Actor Stereotype Icon in Diagrams.
Set to STEREOTYPE_DISPLAY_MODE_SHAPE_IMAGE_AND_TEXT, show Actor Stereotype Image and Name in Diagrams.
Set to STEREOTYPE_DISPLAY_MODE_SHAPE_IMAGE, show Actor Stereotype Image in Diagrams.
Set to STEREOTYPE_DISPLAY_MODE_DO_NOT_DISPLAY_STEREOTYPES, hide Actor Stereotype in Diagrams.
Default STEREOTYPE_DISPLAY_MODE_SHAPE_IMAGE.

DIAGRAM.Class.showStructure=false

Set to false, hide Class Attributes and Operations in Diagrams.
Set to true, show Class Attributes and Operations in Diagrams.
Default false.

DIAGRAM.Comment.showStereotype=false

Set to false, hide Comment Stereotypes in Diagrams.
Set to true, show Comment Stereotypes in Diagrams.
Default false.

DIAGRAM.DataType.showStereotype=false

Set to false, hide Data Type Stereotypes in Diagrams.
Set to true, show Data Type Stereotypes in Diagrams.
Default false.

DIAGRAM.Dependency.showStereotype=false

Set to false, hide Dependency Stereotypes in Diagrams.
Set to true, show Dependency Stereotypes in Diagrams.
Default false.

DIAGRAM.EDGE.showTaggedValues=false

Set to false, hide Tagged Values for Edges in Diagrams.
Set to true, show Tagged Values for Edges in Diagrams.
Default false.

DIAGRAM.Generalization.showStereotype=false

Set to false, hide Generalization Stereotypes in Diagrams.
Set to true, show Generalization Stereotypes in Diagrams.
Default false.

DIAGRAM.LINE_JUMP_PLACE=LINE_JUMP_PLACE_HORIZONTAL

Set to LINE_JUMP_PLACE_NONE, No line jump is added to intersections of links in Diagrams.
Set to LINE_JUMP_PLACE_HORIZONTAL, line jumps appear on horizontal lines in Diagrams.
Set to LINE_JUMP_PLACE_VERTICAL, line jumps appear on vertical lines in Diagrams.
Default LINE_JUMP_PLACE_HORIZONTAL.

DIAGRAM.NODE.SHOW_ATTRIBUTES_TYPE=false

Set to false, hide Node Attribute's Types in Diagrams.
Set to true, show Node Attribute's Types in Diagrams.
Default false.

DIAGRAM.NODE.showTaggedValues=false

Set to false, hide Tagged Values for Nodes in Diagrams.
Set to true, show Tagged Values for Nodes in Diagrams.
Default false.

DIAGRAM.NODE.SUPPRESS_CONSTRAINTS_COMPARTMENT=true

Set to false, show Constraints for Nodes in Diagrams.
Set to true, hide Constraints for Nodes in Diagrams.
Default true.

DIAGRAM.NODE.SUPPRESS_PARTS_COMPARTMENT=true

Set to false, show Parts for Nodes in Diagrams.
Set to true, hide Parts for Nodes in Diagrams.
Default true.

DIAGRAM.NODE.SUPPRESS_PROPERTIES_COMPARTMENT=true

Set to false, show Properties for Nodes in Diagrams.
Set to true, hide Properties for Nodes in Diagrams.
Default true.

DIAGRAM.NODE.SUPPRESS_REFERENCES_COMPARTMENT=true

Set to false, show References for Nodes in Diagrams.
Set to true, hide References for Nodes in Diagrams.
Default true.

DIAGRAM.NODE.SUPPRESS_VALUES_COMPARTMENT=true

Set to false, show Values for Nodes in Diagrams.
Set to true, hide Values for Nodes in Diagrams.
Default true.

DIAGRAM.Package.showStereotype=false

Set to false, hide Package Stereotypes in Diagrams.
Set to true, show Package Stereotypes in Diagrams.
Default false.

Default Sequence Diagram's Graphical Properties

SEQUENCE_DIAGRAM.AUTOSIZE=false

Set to false, hide Property Stereotypes in Sequence Diagrams.
Set to true, show Property Stereotypes in Sequence Diagrams.
Default false.

SEQUENCE_DIAGRAM.SHOW_ACTIVATIONS=false

Set to false, hide Lifeline Activations in Sequence Diagrams.
Set to true, show Lifeline Activations in Sequence Diagrams.
Default false.

SEQUENCE_DIAGRAM.SHOW_DIAGRAM_FRAME=false

Set to false, hide Diagram Frame in Sequence Diagrams.
Set to true, show Diagram Frame in Sequence Diagrams.
Default false.

SEQUENCE_DIAGRAM.SHOW_MESSAGE_NUMBERS=false

Set to false, hide Message Numbers in Sequence Diagrams.
Set to true, show Message Numbers in Sequence Diagrams.
Default false.

Default State Machine Diagram's Graphical Properties

STATE_MACHINE_DIAGRAM.SHOW_DIAGRAM_FRAME=false

Set to false, hide Diagram Frame in State Machine Diagrams.
Set to true, show Diagram Frame in State Machine Diagrams.
Default false

STATE_MACHINE_DIAGRAM.State.showStereotype=false

Set to false, hide State Stereotypes in State Machine Diagrams.
Set to true, show State Stereotypes in State Machine Diagrams.
Default false.

Default SysML Activity Diagram's Graphical Properties

SYSML_ACTIVITY_DIAGRAM.ActivityNode.showName=false

Set to false, hide Activity Node Names in SysML Activity Diagrams.
Set to true, show Activity Node Names in SysML Activity Diagrams.
Default false.

SYSML_ACTIVITY_DIAGRAM.ActivityNode.showStereotype=false

Set to false, hide Activity Node Stereotypes in SysML Activity Diagrams.
Set to true, show Activity Node Stereotypes in SysML Activity Diagrams.
Default false.

SYSML_ACTIVITY_DIAGRAM.SHOW_DIAGRAM_FRAME=false

Set to false, hide Diagram Frame in SysML Activity Diagrams.
Set to true, show Diagram Frame in SysML Activity Diagrams.
Default false.

SYSML_ACTIVITY_DIAGRAM.Swimlane.showStereotype=true

Set to false, hide Swimlane Stereotypes in SysML Activity Diagrams.
Set to true, show Swimlane Stereotypes in SysML Activity Diagrams.
Default false.

Default SysML Block Definition Diagram's Graphical Properties

YSML_BLOCK_DEFINITION_DIAGRAM.Block.showStereotype=true

Set to false, hide Block Stereotypes in SysML Block Definition Diagrams.
Set to true, show Block Stereotypes in SysML Block Definition Diagrams.
Default false.

SYSML_BLOCK_DEFINITION_DIAGRAM.Block.showStructure=false

Set to false, hide Block Attributes and Operations in SysML Block Definition Diagrams.
Set to true, show Block Attributes and Operations in SysML Block Definition Diagrams.
Default false.

Default SysML Internal Block Diagram's Graphical Properties

SYSML_INTERNAL_BLOCK_DIAGRAM.Block.showStereotype=false

Set to false, hide Block Stereotypes in SysML Internal Block Diagrams.
Set to true, show Block Stereotypes in SysML Internal Block Diagrams.
Default false.

SYSML_INTERNAL_BLOCK_DIAGRAM.Connector.showName=false

Set to false, hide Connector Names in SysML Internal Block Diagrams.
Set to true, show Connector Names in SysML Internal Block Diagrams.
Default false.

SYSML_INTERNAL_BLOCK_DIAGRAM.InformationFlow.showName=false

Set to false, hide Information Flow Names in SysML Internal Block Diagrams.
Set to true, show Information Flow Names in SysML Internal Block Diagrams.
Default false.

SYSML_INTERNAL_BLOCK_DIAGRAM.Property.showStereotype=false

Set to false, hide Property Stereotypes in SysML Internal Block Diagrams.
Set to true, show Property Stereotypes in SysML Internal Block Diagrams.
Default false.

Default SysML Parametric Diagram's Graphical Properties

SYSML_PARAMETRIC_DIAGRAM.Class.showStereotype=false

Set to false, hide Class Stereotypes in SysML Parametric Diagrams.
Set to true, show Class Stereotypes in SysML Parametric Diagrams.
Default false.

SYSML_PARAMETRIC_DIAGRAM.ConstraintBlock.SUPPRESS_CLASS_PORTS=true

Set to false, show Constraint Block Ports in SysML Parametric Diagrams.
Set to true, hide Constraint Block in SysML Parametric Diagrams.
Default true.

SYSML_PARAMETRIC_DIAGRAM.Dependency.showName=false

Set to false, hide Dependency Stereotypes in SysML Parametric Diagrams.
Set to true, show Dependency Stereotypes in SysML Parametric Diagrams.
Default false.

SYSML_PARAMETRIC_DIAGRAM.Dependency.showStereotype=false

Set to false, hide Dependency Stereotypes in SysML Parametric Diagrams.
Set to true, show Dependency Stereotypes in SysML Parametric Diagrams.
Default false.

SYSML_PARAMETRIC_DIAGRAM.Property.showStereotype=false

Set to false, hide Property Stereotypes in SysML Parametric Diagrams.
Set to true, show Property Stereotypes in SysML Parametric Diagrams.
Default false.

Default SysML Requirement Diagram's Graphical Properties

SYSML_REQUIREMENT_DIAGRAM.Requirement.showStereotype=false

Set to false, hide Requirement Stereotypes in SysML Requirement Diagrams.
Set to true, show Requirement Stereotypes in SysML Requirement Diagrams.
Default false.

SYSML_REQUIREMENT_DIAGRAM.Dependency.showStereotype=false

Set to false, hide Requirement Stereotypes in SysML Requirement Diagrams.
Set to true, show Requirement Stereotypes in SysML Requirement Diagrams.
Default false.

Default SysML Sequence Diagram's Graphical Properties

SYSML_SEQUENCE_DIAGRAM.AUTOSIZE=false

Set to false, hide Property Stereotypes in SysML Sequence Diagrams.
Set to true, show Property Stereotypes in SysML Sequence Diagrams.
Default false.

SYSML_SEQUENCE_DIAGRAM.SHOW_ACTIVATIONS=false

Set to false, hide Lifeline Activations in SysML Sequence Diagrams.
Set to true, show Lifeline Activations in SysML Sequence Diagrams.
Default false.

SYSML_SEQUENCE_DIAGRAM.SHOW_DIAGRAM_FRAME=false

Set to false, hide Diagram Frame in SysML Sequence Diagrams.
Set to true, show Diagram Frame in SysML Sequence Diagrams.
Default false.

SYSML_SEQUENCE_DIAGRAM.SHOW_MESSAGE_NUMBERS=false

Set to false, hide Message Numbers in SysML Sequence Diagrams.
Set to true, show Message Numbers in SysML Sequence Diagrams.
Default false.

Default SysML State Machine Diagram's Graphical Properties

SYSML_STATE_MACHINE_DIAGRAM.SHOW_DIAGRAM_FRAME=false

Set to false, hide Diagram Frame in SysML State Machine Diagrams.
Set to true, show Diagram Frame in SysML State Machine Diagrams.
Default false

SYSML_STATE_MACHINE_DIAGRAM.FinalState.showName=false

Set to false, hide Final State Names in SysML State Machine Diagrams.
Set to true, show Final State Names in SysML State Machine Diagrams.
Default false.

SYSML_STATE_MACHINE_DIAGRAM.PseudoState.showName=false

Set to false, hide Pseudo State Names in SysML State Machine Diagrams.
Set to true, show Pseudo State Names in SysML State Machine Diagrams.
Default false.

SYSML_STATE_MACHINE_DIAGRAM.State.showStereotype=false

Set to false, hide State Stereotypes in SysML State Machine Diagrams.
Set to true, show State Stereotypes in SysML State Machine Diagrams.
Default false.

SYSML_STATE_MACHINE_DIAGRAM.Transition.showName=false

Set to false, hide Transition Names in SysML State Machine Diagrams.
Set to true, show Transition Names in SysML State Machine Diagrams.
Default false.

Default SysML Use Case Diagram's Graphical Properties

SYSML_USE_CASE_DIAGRAM.UseCase.showStereotype=false

Set to false, hide Use Case Stereotypes in SysML Use Case Diagrams.
Set to true, show Use Case Stereotypes in SysML Use Case Diagrams.
Default false.

SYSML_USE_CASE_DIAGRAM.Include.showStereotype=false

Set to false, hide Include Stereotypes in SysML Use Case Diagrams.
Set to true, show Include Stereotypes in SysML Use Case Diagrams.
Default false.

Default Use Case Diagram's Graphical Properties

USE_CASE_DIAGRAM.UseCase.showStereotype=false

Set to false, hide Use Case Stereotypes in Use Case Diagrams.
Set to true, show Use Case Stereotypes in Use Case Diagrams.
Default false.

USE_CASE_DIAGRAM.Include.showStereotype=false

Set to false, hide Include Stereotypes in Use Case Diagrams.
Set to true, show Include Stereotypes in Use Case Diagrams.
Default false.