ansys.scade.apitools.prop.pragma.get_pragma_tool_text#
- ansys.scade.apitools.prop.pragma.get_pragma_tool_text(object_: scade.model.suite.Object, id: str, key: str) str | None #
Get the text of the pragma for an object.
Return
None
when the pragma does not exist.Raise the
TypeError
exception when the pragma exists but is not textual.
See the pragma_tool example.
Parameters#
- object_suite.Object
Element to search for the pragma.
- idstr
ID of the pragma.
- keystr
First token of the pragma.
Returns#
- str
Text of the found pragma or “”.