MagicDraw 18.3 Documentation

Skip to end of metadata
Go to start of metadata

MagicDraw allows for exporting a selected project either to EMOF or the CMOF package. You can choose to export either the whole project or selected packages only. The model, all except auxiliary resources (for example, the UML Standard Profile package), will be exported to the selected MOF file.

Diagram data and model features available only in UML (behavioral models in particular) cannot be exported.

To export a project to a MOF file

  1. From the main menu, select File > Export To > MOF XMI File > MOF Whole Model. The Select Target File dialog opens (see the following figure).
  2. Type the file name and select the location for the exported model.
  3. On the right side of the dialog, select MOF Kind. The file type of the exported model changes according to your selection.
  4. Click to select or to clear selection from the Validate check box.
  5. Click the Export button when you are finished.
    Select Target File dialog


To export selected packages to a MOF file

  1. From the main menu, select File > Export To > MOF XMI File > MOF Selection.
  2. In the Select Packages to Export dialog, select packages you want to export and click Add to move them to the Selected list. Click OK when you are done.
  3. Perform the further steps as described in the previous export procedure (starting from step #2).

Exported elements validation
MagicDraw provides two validation suites (one for CMOF and one for EMOF) for validating models that are being exported to MOF files. These suites contain batches of rules to check exported elements.

Warnings about elements that were not exported (for example, diagrams, behavioral elements, or other) are displayed upon completion of the validation process. Validation does not preclude the model from being exported, the ineligible elements are simply skipped.


  • No labels