Block Definition Diagrams

Block definition diagrams help you design and analyze the structure of a system using components called blocks, which can represent hardware, software, and organizational components.

In this example, the Cellphone block is broken down into a number of component blocks:

To create a block definition diagram, click the Create New Model command in the homepage Quick Links card (see Creating a Model), enter a name, select Object-Oriented Model in the Type list and SysML Block Definition Diagram in the Template list, and click Create.

The following tools are available in block definition diagrams:

Tool

Description

Reuse Model Objects. Opens a list to allow you to drag existing model objects into the diagram.

Block. See Blocks.

Constraint Block. See Constraint Blocks.

Interface Block. See Interface Blocks.

Interface. See Interfaces.

Activity Block. See Activity Blocks.

State Machine Blocks. See State Machine Blocks.

Actor. See Actors.

Instance Specification. See Instance Specifications.

Value Type. See Value Types, Units, and Quantity Kinds.

Quantity Kind. See Value Types, Units, and Quantity Kinds.

Unit. See Value Types, Units, and Quantity Kinds.

Signal. See Signals.

Communication Box. Draw a rectangle box on the canvas to highlight objects, and add comments in the box for communication. You can add multiple communication boxes and customize colors for them. For more information on how to change colors, see Formatting Symbols.

Choose the Show/Hide icon in the tool bar to control showing or hiding all the communication boxes. Choose the Hide icon next to the target communication box to hide it.

Note. Add notes to your diagram and link them to your symbols.

Links - Select:

  • Composition (non-shared association) - A child block is a part of the parent block and will appear in the Parts compartment of the parent block. For example, the Vehicle block is linked by a composition link to its child block, Chassis.

    Click the Composition tool to select it and then click and drag from the Vehicle block to the Chassis block.

  • Aggregation (shared association) - A block uses another block, which will appear in its References compartment. A block can be used by multiple blocks. For example, the Cellphone block uses the 4G Network block.

    Click the Aggregation tool to select it and then click and drag from the Cellphone block to the 4G Network block.

  • Generalization - An object is a specialization of another object. For example, the Electric Vehicle block is a specialization of the Vehicle block.

    Click the Generalization tool to select it and then click and drag from the Electric Vehicle block to the Vehicle block.

  • Association - A block is related to another block and the related block will appear in the References compartment of the relating block. For example, in a block definition diagram, the Utility Vehicle block is related to the Depot block.

    Click the Association tool to select it and then click and drag from the Utility Vehicle block to the Depot block.

  • Dependency - You can create the following types of dependency:
    • Dependency (default) - A block has a dependency on another object. For example, the Electric Vehicle block depends on the Charging Station block.

      Click the Dependency tool to select it and then click and drag from the Electric Vehicle block to the Charging Station block.

    • Usage – A block uses an interface. For example, the Home Alarm System block uses the Ultrasonic Detection interface.

      Click the Dependency tool to select it, and then click and drag from the Home Alarm System block to the Ultrasonic Detection interface. In the property sheet Info tab General section, change its Stereotype to Usage.

  • Interface Realization - The features defined by an interface are realized by a block. For example, the Electrical Power Station block realizes the interface Power Generation.

    Click the Interface Realization tool to select it and then click and drag from the Electrical Power Station block to the interface Power Generation.

  • Traceability Link - You can create traceability links between objects. After a traceability link is created between two objects, the Outgoing Traceability Links and Incoming Traceability Links properties are displayed in the Dependencies tab. The traceability link is not applied to the Note objects.

Package. See Packages.

Link – Provides an alternative way to create a link. Select the tool and connect two objects with a default link, then choose Change Link Type to change to another link as appropriate.

This tool is available in both the diagram toolbox and in the context menu of the relevant objects.

Lasso. Select multiple symbols by dragging over them.