Rename
Renames the specified variable.
Syntax
Rename(doc, var, newName)
Parameters
Parameter |
Type |
Description |
---|---|---|
doc |
documentReference |
Reference to the document |
var |
variableReference |
Reference to the variable |
newName |
string |
The new name of the variable |
Return
None.
Examples
Python
import nex
doc = nex.GetActiveDocument()
nex.Rename(doc, doc["Strobed_DIO_01000"], "Reward")
NexScript
doc = GetActiveDocument()
Rename(doc, doc["Strobed_DIO_01000"], "Reward")