add_criterion#
- ansys.optislang.core.tcp.server_commands.add_criterion(actor_uid: str, criterion_type: str, expression: str, name: str, limit: str = '', password: str | None = None) str #
Generate JSON string of add_criterion command.
- Parameters:
- actor_uid: str
Unique identifying actor of the object.
- criterion_type: str
Type of the criterion. Supported values are: [‘ignore’, ‘min’, ‘max’, ‘lessequal’, ‘equal’, ‘greaterequal’, ‘lesslimitstate’, ‘greaterlimitstate’]
- expression: str
Expression to be evaluated.
- name: str
Criterion name.
- limit: str, optional
Limit expression. By default “”.
- password
Optional
[str
],optional
Password. Defaults to
None
.
- Returns:
str
JSON string of add_criterion command.