NewEvent
Creates a new timestamped variable.
Syntax
NewEvent(doc, count)
Parameters
Parameter |
Type |
Description |
---|---|---|
doc |
documentReference |
Reference to the document |
count |
number |
Initial number of the timestamps in the variable |
Return
Returns a reference to the new variable.
Examples
Python
import nex
doc = nex.GetActiveDocument()
temp = nex.NewEvent(doc, 10) # creates a script-only variable
doc["NewVar"] = nex.NewEvent(doc, 0) # creates a new variable in the file
NexScript
doc = GetActiveDocument()
temp = NewEvent(doc, 10) % creates a script-only variable
doc["NewVar"] = NewEvent(doc, 0) % creates a new variable in the file