set_parameter#
- Design.set_parameter(parameter: Parameter | DesignVariable, reset_output: bool = True) None#
Set the value of a parameter by instance or add a new parameter.
If no instance is specified, a new parameter is added.
- Parameters:
- parameter: Union[Parameter, DesignVariable]
Instance of the
ParameterorDesignVariableclass.- reset_output: bool, optional
Whether to reset the status and feasibility and then delete the output values. The default is
True.
- Raises:
OslCommunicationErrorRaised when an error occurs while communicating with the server.
OslCommandErrorRaised when a command or query fails.
TimeoutErrorRaised when the timeout float value expires.
TypeErrorRaised when an invalid type of parameter is passed.