MagicDraw allows for defining the initial (default) properties for elements.

The Default element properties can be defined for:

  • The whole project
  • The specific diagram

 

To set the default properties for the whole project


  1. From the Options menu, select Project. The Project Options dialog opens.
  2. Expand Default model properties. Select the desired elements and change their property values. 

 

After creating a new element it will have new property values. Values for previously created elements will not be changed.

 

To reset element properties to the default value


  • In he Project Options dialog, Default model properties group, click the Reset to Defaults button.

Exception: interface attribute default visibility will always be #public, no matter what your settings are.

 

To set default properties for the specific diagram


  1. From the Diagrams menu, select Customize. The Customize Diagrams dialog opens.
  2. Select the diagram type you want to customize.
  3. Click the Edit button. The Customize Diagram Wizard opens.
  4. In the fourth stepSpecify toolbar buttons, click the Add button and select New Button. The Edit Button dialog opens.
  5. In the General > Model Element Type drop down list, select the element, which default properties you want to customize.

  6. In the Edit Button dialog, open the Element Properties tab. 

  7. Select the Specify own values radio button. Now change the default property values of the chosen element.

 

Create a new element from the customized diagram toolbar and the element default properties will be the same as you had defined.

Sharing the default property values

You can share the default properties with other users for their new project. After changing the property values in the Project Options dialog, create a project template.

 

To create a template


  1. From the File menu select Export > Template
  2. Enter the template name and description.
  3. Click OK. A template will be created in <MagicDraw installation directory>\ templates.

 

To import a template


  1. From the File menu, select New Project. The New Project dialog opens.
  2. From the Other domain, select the Project from Template icon.
  3. In the Select template tree, choose your template. The project options are imported to the project together with the template.

 

On this page