current - Sets Model or Landscape

The current command sets the model that is specified by model_handle to be the current model. Or this sommand sets the landscape that is specified by landscape_handle to be the current landscape. If the model_handle and the landscape_handle are not specified, current displays the current model handle and the current landscape handle.
csp
The current command sets the model that is specified by model_handle to be the current model. Or this sommand sets the landscape that is specified by landscape_handle to be the current landscape. If the model_handle and the landscape_handle are not specified, current displays the current model handle and the current landscape handle.
When the user sets a current model, the CLI sets the current landscape to the landscape that contains the model. When a user sets the current landscape, the CLI sets the current model as undefined.
Separate current model and current landscape values are maintained for each session that is connected to the CLI Local Server.
The current command retains state information, the current model and the current landscape, for example, only for the session that named it.
This command has the following format:
current [mh=<model_handle>|lh=<landscape_handle>]
  • If a valid model_handle is specified as input, the following message is displayed:
    current model is <model_handle> current landscape is <current_landscape_handle>
  • If a valid landscape_handle is specified as input, the following message is displayed:
    current model is undefined current landscape is <landscape_handle>
  • If model_handle and landscape_handle are not specified, the following message is displayed:
    current model is <current_model_handle> current landscape is <current_landscape_handle>
  • If model_handle and landscape_handle are not specified and current model is not defined, the following message is displayed:
    current model is undefined current landscape is <current_landscape_handle>
Examples: current
$ current mh=0x400142 current model is 0x400142 current landscape is 0x400000 $ current lh=0x500000 current model is undefined current landscape is 0x500000 $ current current model is undefined current landscape is 0x500000
The current landscape always contains a value because it is set by the connect command.