set_pragma_tool_text(object_, id, key, text)#

Update the pragma ID which text starts with key of object_ with text.

  • 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.