set_pragma_text(object_, id, text)#

Update the pragma ID of an object with a new ID.

  • Delete the pragma when the text is empty.

  • Create a new pragma when no pragma ID exists yet.

  • Return whether the model is modified.

See the pragma example.

Parameters:
object_suite.Object

Element to search for the pragma.

idstr

ID of the pragma.

textstr

New ID of the pragma.

Returns:
bool

True when the model is modified, False otherwise.