CopySelectedVarsToAnotherFile

Copies selected variables from one file to another.

Syntax

CopySelectedVarsToAnotherFile(fromDoc, toDoc)

Parameters

Parameter

Type

Description

fromDoc

documentReference

Reference to the document. The variables are copied from this document

toDoc

documentReference

Reference to the document. The variables are copied to this document

Return

None.

Examples

Python

import nex
fromDoc = nex.OpenDocument("C:\\Data\\File1.nex")
toDoc = nex.OpenDocument("C:\\Data\\File2.nex")
# copy all events from fromDoc to toDoc
# first, select all events
nex.SelectAllEvents(fromDoc)
# call CopySelectedVarsToAnotherFile
nex.CopySelectedVarsToAnotherFile(fromDoc, toDoc)

NexScript

fromDoc = OpenDocument("C:\Data\File1.nex")
toDoc = OpenDocument("C:\Data\File2.nex")
% copy all events from fromDoc to toDoc
% first, select all events
SelectAllEvents(fromDoc)
% call CopySelectedVarsToAnotherFile
CopySelectedVarsToAnotherFile(fromDoc, toDoc)