ansys.scade.apitools.create.declaration.create_textual_operator#
- ansys.scade.apitools.create.declaration.create_textual_operator(owner: scade.model.suite.Package, name: str, path: pathlib.Path | None, visibility: VK = VK.PUBLIC, symbol_file: pathlib.Path | None = None, state: bool = False) scade.model.suite.Operator #
Create an operator with a textual diagram.
The operator has a name.
Parameters#
- ownersuite.Package
Owner of the operator, which is either the model itself or a package.
- namestr
Name of the operator.
- pathPath | None, default: None
Path of the file for storing the operator. This parameter is optional if the package’s owner is a package. When the path is
None
and owner is the model, the operator is stored in the model’s default file.- visibilityVK, default: PUBLIC
Accessibility of the operator.
- symbol_filePath | None, default: None
Path of the file defining the symbol of the operator.
- statebool, default: False
Whether the operator is a node.
Returns#
suite.Operator