GetActiveDocument
Returns a reference to the currently active document.
Syntax
GetActiveDocument()
Return
Returns a reference to the opened document (nex.NexDoc
object in Python, integer in NexScript).
The function returns zero (invalid document reference) if there are no data files open.
Examples
Python
import nex
doc = nex.GetActiveDocument()
NexScript
doc = GetActiveDocument()