Highlights of the new version.
We have released Mg 0.4.2 in our site on a pay-as-you-like basis.
This release is intended to support our clients while it has some important enhancements and it also updates SysMLv2 Pilot Implementation to 2024-02. Needless to say, we fixed many minor bugs in this release.
Here we introduce the two interesting new features of 0.4.2.
(Added: we published these examples in the GitHub)
MgPy and MgS integration
This version enhances the integration of MgPy, MgS, MgX, and MgP. All of the magics for them are also available in MgPy as well as MgSysML.
In addtion, MgPy can directly access Simulink models and even convert them to SysML with simple Python scripts. Suppose we have the follwing EV2 Simulink model:
With the following example, MgPy can load EV2, get the owned blocks, and convert the subsystems into SysML actions. Finally we can edit the generated SysML file.
MgP stencil support by templates
Now MgP can load stencil from templates so that we can visualize models more flexibly.
Let us consider the following SysML example:
We can visualize with %viz as follows:
By default, MgP creates the following Powerpoint shapes from this model:
However, by putting the following stencil to the powerpoint template:
We can get the following automated layout shapes:
By manually tweaking the powerpoint shapes, we can easily get better slide, somthing like: