SaveDocument
Saves the specified document.
Syntax
SaveDocument(doc)
Parameters
Parameter |
Type |
Description |
---|---|---|
doc |
documentReference |
Reference to the document |
Return
None.
Note
By default, the document is saved as a .nex file. The document cannot be saved as .nex file if:
the file size is more than 1.5 GB
the document contains continuous channels with values stored as floats
some of the timestamps (in time ticks) cannot be represented as 32-bit integers (the timestamp values are greater than 2.1 billion)
If the document cannot be saved as .nex file, the document is saved as .nex5 file.
Examples
Python
import nex
doc = nex.GetActiveDocument()
nex.SaveDocument(doc)
NexScript
doc = GetActiveDocument()
SaveDocument(doc)