Creating and applying a constraint to a constraint block (SysML)
You can create and apply a Constraint to a Constraint Block through a Block Definition Diagram or through an appropriate pane.
Note that when you create a Constraint Block, Modeler creates an owned Constraint that is applied to the Constraint Block.
To create a constraint through a block definition diagram:
1. On the diagram's tab, click the
Constraint Note button.
2. On the diagram, click in free space.
3. Type the details of the constraint, and then press the Enter key.
When you type the details of the Constraint, use Model Object References to reference Constraint Parameters.
4. Open the Constraint's Property Pages, and name the Constraint as required.
To apply a constraint to a constraint block through a block definition diagram:
1. On the diagram's tab, click the
Note Link button.
2. Click the Constraint Block, and then click the Constraint.
To create a constraint through a Modeler pane:
1. Right-click the item that is to own the Constraint, and select > > .
2. Type the name of the Constraint, and then press the Enter key.
3. Open the Constraint's Property Pages, and then click the Full Text tab.
4. Type the defaults of the Constraint, using Model Object References to reference Constraint Parameters.
To apply a constraint to a constraint block through a Modeler pane:
1. Right-click the Constraint Block, and select > .
Modeler opens the Links Editor dialog.
2. In the Types list, select Constraints (Applied).
3. In the left pane, select the appropriate folder or Package to display the required Constraints.
Note If it takes too long to list the Constraints, press the Escape key to abandon the operation. The items that had been loaded before pressing the Escape key are listed.
4. In the middle or right pane, select the check boxes associated with the Constraints you want to link.
5. In the middle or right pane, clear the check boxes associated with the items you want to unlink.
6. Click OK.