Reading MagicDraw Data

Model Readers

Reading a MagicDraw SysML Model

By default, common SysML Stereotypes of a MagicDraw model are mapped to the corresponding common SysML OMG Stereotypes.
The OMG profile loaded by default is SysML 1.6.
For example, when a SysML MagicDraw model is read, a SysML Block in MagicDraw will be stereotyped by the SysML <<Block>> Stereotype, owned by the SysML OMG Profile (and not the SysML MagicDraw Profile).
As a reminder, the MagicDraw SysML Profile is owned by the "pathmap://MAGIC_DRAW/SysML_Profile.mdzip.uml" resource.
While the OMG SysML 1.6 Profile is owned by the "pathmap://UML_PROFILES/SysML_1.6.profile.uml" resource.

The Option OPTION_OVERRIDE_STANDARD_PROFILES allows to change this default behavior by setting MagicDraw SysML Stereotypes.

When the Option OPTION_OVERRIDE_STANDARD_PROFILES is set to true, some Profiles are overloaded in order to correctly load the MagicDraw SysML Profile.
Here is the list of overloaded Profiles:

Please note that if an older version of MagicDraw is loaded (for example 2021) only overloaded Profiles of version 2024x are used.

Differences between the OMG SysML Profile and the MagicDraw SysML Profile

If the Option OPTION_OVERRIDE_STANDARD_PROFILES is set to true, the MagicDraw SysML Profile, embedded with our accessor, is loaded.
The big difference with the SysML OMG Profile is the qualified path of the Stereotypes applied to the elements. For example, with the OMG SysML Profile, the <<Block>> Stereotype applied on a Class have a qualifiedPath set to "SysML::Blocks::Block", while with the MagicDraw SysML Profile, the <<Block>> Stereotype applied on a Class have a qualifiedPath set to "SysML::Block"

Related references
Reading UML Data
MDAccess for UML API Reference
MDAccess for MagicDraw API Reference