SysML Plugin TWRT Documentation
A compartment with a label of initial values is used to show values of properties belonging to a containing block. These values override any default values that may have been previously specified on these properties on their originally defining block. Initial value compartments may be specified within nested properties, which then apply only in the particular usage context defined by the outermost containing block.
The purpose of initial value compartments is to show various values as a result of a reconfigured selected context. Initial value compartments allows to:
The initial values compartment can be shown on Part Property shape compartment and display the values of the properties reconfigured in a selected context.
The procedures below describes how to work with initial values and its compartments:
You can define context-specific initial values by overriding any default values that was previously specified on Value Properties on their originally defining Block. Before defining a context-specific initial value, the following prerequisites must be met:
To define initial value
From the Select Property dialog, select Value Property which you want to redefine.
After selecting the Value Property, the structure of instances is created automatically in the Model Browser.
Type the value directly on the Part Property shape.
If you can not specify the new value, check if the context of that Part Property is correct. How to select the context of initial value >
You can display/hide initial values on the Part Property Compartments. Read more about SysML specific compartments.
To show/hide Initial Values on Part Property compartment, do one of the following
Initial values which are shown in the Part Property compartments depends from the selected context. For example, if the selected context is A then the compartment show values of A.
To select a context of initial values
You can display or hide the elements types in the initial values compartments of a part using either the Symbol(s) Properties dialog or the part shortcut menu.
To display/hide element type in the initial values compartments
Related pages
Sample model
The model used in the figures of this page is the Phone Camera sample model. To open this sample download PhoneCamerasInitialValues.mdzip.