- Function me::Create(name, newType, parentId, pos)¶
me::Create¶
The function me::Create
creates a runtime identifier.
me::Create(
name, ! (input) a string
newType, ! (input) an element
parentId, ! (input) an element
pos ! (optional) an integer
)
Arguments¶
- name
A string that is valid name for a runtime identifier.
- newType
An element in the set
AllIdentifierTypes
.- parentId
An element in the set
AllSymbols
referencing a runtime identifier.- pos
1 is the first position, and 0 means “place at end”, the default is 0.
Return Value¶
Returns an element in
AllSymbols
if successful or the empty element otherwise. In the latter case error(s) have been raised. WhenruntimeId
doesn’t reference a runtime identifier an error will be raised.
See also
The functions
me::Delete
andme::SetAttribute
.Retrieve Value of Dynamic Identifier illustrates the use of model edit functions. The purpose of
me::Create
in that post is to create the procedure that does the actual retrieving of the data.