It took me ages to figure out how to use this feature in MagicDraw (MD), so I thought it the prudent thing to do capture my model and how I created it with the gotchas!!!
By default your meta-model is just a model of stereotypes. Applying the profile to your model won't do much except maybe add an icon to your model elements, add extra attributes and add constraints. But if you want to control how the meta-model is used, you need to create a Customization. A MD <<customization>> is a set of tags that MDs DSL uses to validate your model in real-time.
Let's begin by creating a customization of the Company stereotype. Using the Specification dialog, select Tag Definitions and create some attributes for the Company. If you apply the Company stereotype to an Element, those attributes you have just created will not be visible in the Element that you have just applied the stereotype to. However, if you create a Customization for the Company stereotype, the attributes will now be visible in the Specification dialog of the Element that the Company stereotype has been applied to.
The MagicDraw document "MagicDraw UML Profiling & DSL User Guide.pdf" outlines the basic steps to creating a customized element. Firstly it recommends that you create two separate projects, one for the stereotypes and the other for the customizations. The former first. The profile package must then be shared and not exported, there is a difference. The latter project containing he customizations should also contain a profile package that must be shared. It is this shared package that must used by the normal UML projects and not the project containing the stereotypes!
The steps are as follows:
Your meta-model doesn't actually work too well unless you assign it to a diagram type of its own, this is done through the following steps
This information is summarised below but detailed in the "MagicDraw UML Profiling & DSL USer Guide.pdf"