Skip to main content
Get Mg

Mg 0.4.2 has been released

Mg 0.4.2 has been released

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:

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.

MgPy and MgS integration example

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:

MgP SysML example

We can visualize with %viz as follows:

MgP Viz example

By default, MgP creates the following Powerpoint shapes from this model:

MgP default example

However, by putting the following stencil to the powerpoint template:

MgP custom stencil

We can get the following automated layout shapes:

MgP custom stencil

By manually tweaking the powerpoint shapes, we can easily get better slide, somthing like:

MgP manual layout