You can add constraint properties to parametric diagrams.
Parametric diagrams are based upon constraint properties.
Procedure
- Right-click the package in the browser where
you want the diagram to be created and then select .
- Select the Constraint Block button
above the window and place the constraint block on the block
definition diagram.
- Rename the new constraint block using the
Features window.
- Since constraints can only be added to an
element in the browser, right-click the constraint block and select Locate.
This option navigates to that constraint block in the browser.
- Right-click the constraint block and select . This selection specifies
the relationship between the constraint parameter and the constraint
block.
- Open the Constraint Features window and
rename the constraint. Click Apply.
- In the Specification of the constraint,
add the appropriate mathematical relationship, that is, Volume=B*D*H.
Click Apply and the constraint features appear
in the constraint block.
- Add attributes to the constraint block if
there are any constants that the constraint formula might use, for
example g which is 9.81 M/s2. Click OK to
close the window and save the Features you entered.
- Add constraint parameters for the variables
in the constraint formula. This addition might also be accomplished
from the browser. Right-click the constraint block and select Add
New > . Rename the
parameter in the Features window.
- The constraint parameter might be typed
with an SI unit by opening its Features window and then selecting Type.
From the list, scroll to the top and select <<Select>>,
navigate through the package tree to the SysML profile, and locate
the ModelLibrary unit definitions. Select the correct unit definition.
- The constraint parameter with its type then
displays on the constraint block. New constraint parameters can be
added to the constraint block directly from the constraint parameters
section of the browser hierarchy. Repeat the constraint parameter
definition steps (9–11) for each variable
element in the constraint.
Results
Note: Typically, constraint parameters are
not shown on constraint blocks. To hide the parameters, right-click
the constraint block and select .