ansys.scade.apitools.prop.pragma.set_pragma_tool_text#
- ansys.scade.apitools.prop.pragma.set_pragma_tool_text(object_: scade.model.suite.Object, id: str, key: str, text: str) bool #
Update the pragma ID which text starts with
key
ofobject_
withtext
.Create a pragma when no pragma ID if no pragma with the given key exists.
Return whether the model is modified.
See the pragma_tool example.
Parameters#
- object_suite.Object
Element to search for the pragma.
- idstr
ID of the pragma.
- textstr
New value of the pragma.
- keystr
First token of the pragma.
Returns#
- bool
True
if the model is modified,False
otherwise.