Create a switch for enabling or disabling value constraints

Create a switch that toggles variable value constraints.
  1. Create a label:
    1. In the
      Project view
      pane, right-click
      MainWindow (type)
      and select
      New
      Base controls
      Label
      .
    2. Hover-over the label, select
      Edit
      , and enter
      ToggleConstraintLabel
      .
    3. In the
      Properties
      pane, set the
      Text
      property value to
      Enable constraint
      .
  2. Create the switch:
    1. In the
      Project view
      pane, right-click
      MainWindow (type)
      and select
      New
      Base controls
      Switch
      .
    2. Hover-over the switch, select
      Edit
      , and enter
      ToggleConstraintSwitch
      .
    3. In the
      Properties
      pane, create a dynamic link between the
      Active
      value and
      ProjectName
      Model
      ConstrainedVariable
      EURange
      Constrain
      .
      For more information about dynamic links, see Create dynamic links.
Fornire un feedback
Hai domande o feedback su questa documentazione? invia il tuo feedback qui.