The SysML block definition diagram (bdd) below illustrates the definition of a main system with its hardware and software subsystems.
When creating a composition between SysML blocks, Enterprise Architect automatically creates parts under the main block as illustrated in the Project Browser:
When creating an internal block diagram (ibd), the parts can be added via EA Synchronize Structural Elements diagram function. Result:
At this stage and without eaUtils, one has to manually set each part's stereotype according to the main block, e.g. "hw part" for "hw1".
Define the mapping rules
The mapping rules from SysML block stereotypes to SysML part stereotypes must be defined in a dedicated diagram, identified through its stereotype, "eautils_sysml".
- Create a package and diagram in your EA project.
- Open the diagram properties (F5) and set the stereotype to eautils_sysml:
- Use your MDG toolbox to create each stereotyped blocks and part, and create a dependency link from a stereotyped block to its matching stereotyped part, e.g. "hw block" to "hw part".
- Save and close the diagram; the mapping definitions are ready and available for eaUtils.
Synchronize, update SysML parts stereotype
- Open the internal block diagram to update.
- Right click and select Extensions, eaUtils, [SysML] Synchronize parts stereotypes. The popup window is displayed with the list of mapping rules found:
- Note: when no mapping rule is found, the following error message is displayed:
Click on the image below to open the Youtube video illustrating this feature.