ansys.scade.apitools.prop.pragma.find_pragma_tool#

ansys.scade.apitools.prop.pragma.find_pragma_tool(object_: scade.model.suite.Object, id: str, key: str) scade.model.suite.TextPragma#

Get the pragma for an object.

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:
suite.TextPragma

Found pragma or None if not found.