- Function me::SetAttribute(runtimeId, attr, txt)¶
me::SetAttribute¶
The procedure me::SetAttribute
changes the type of a runtime
identifier.
me::SetAttribute(
runtimeId, ! (input) an element
attr, ! (input) an element
txt ! (input) a string expression
)
Arguments¶
- runtimeId
An element in the set
AllIdentifiers
referencing a runtime identifier.- attr
An element in the set
AllAttributeNames
- txt
The text to be assigned. Using the empty string will effectively delete the attribute from the runtime identifier.
Return Value¶
Returns 1 if the text assignment to the attribute is successful, 0 otherwise. In the latter case error(s) have been raised. When
runtimeId
doesn’t reference a runtime identifier an error will be raised.
See also
The procedures
me::Create
andme::ChangeType
.Retrieve Value of Dynamic Identifier illustrates the use of model edit functions. The purpose of
me::SetAttribute
in that post is to specify the body of the procedure that does the actual work.