A relation map is a diagram with a specific stereotype. It is used to represent the element properties in a relation based form.It can represent elements connected via various relation criteria
The Open API of our modeling tools provides the com.nomagic.magicdraw.visualization.relationshipmap.RelationshipMapUtilities to work with Relation maps.
Refreshing relation map
To refresh the relation map, use the RelationshipMapUtilities.refreshMap(Diagram) method:
RelationshipMapUtilities.refreshMap(diagram)