Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Content layer
id1350756844
Content column
id1350756847

To create a layout template and use it in other diagrams, follow these steps:

  1. Define the appearance of Class, layout, and style of its Ports in the Class diagram.

  2. Set that Class diagram as the

layout template.
  • Apply the layout template to other diagrams.

  • Content block
    id1350756846

    The layout templates functionality, which is driven by <<layoutTemplate>> stereotype, assists you in creating well-formed diagrams. It allows you to define Class appearance once, and reuse it later when creating Parts typed by that Class and Ports in different diagrams. Parts and their Ports are represented identically as part's type Class whose layout and style is defined in the layout template diagram. Often, Port position reflects its physical location in the system, so it is beneficial to maintain the same appearance of Parts, layout, and style of Ports throughout the whole model. In the figure below, the appearance of the Modem Card Block is the same in two different diagrams, SysML Block Defiition diagram and SysML Internal Block diagram

    Info
    titleAdditional information

    You can reuse layout templates in other projects by exporting packages to new projects.


    Usage of a layout template. The illustration displays concepts from SysML Plugin.

    Section
    Column
    width50%
    Column
    width50%
    Status
    colourGreen
    titleAvailable from 19.0 SP1

    To create a layout template and use it in other diagrams, follow these steps:

  • Specify whether layout templates are created as Class Diagrams or Composite Structure Diagrams.

  • Create a
    1. layout template

    from a Part Property in the Composite Structure Diagram
    1. .

    2. Apply the layout template to other diagrams.



    Warning
    titleImportant

    Only one Class shape with its Ports can be defined in one layout template diagram.



    Read the following pages to learn how to manage layout templates:


    Content block
    id1350756842

    Sample model

    The sample models used in the figure of this page are Modem Cable that comes with SysML Plugin. To open those samples properly you need to install the SysML plugin in the MagicDraw and download Modem Cable Layout Templates.mdzip.