CloseWindow

Closes specified child window.

Syntax

CloseWindow(docPath, windowName)

Parameters

Parameter

Type

Description

docPath

string

Document (data file) path.

windowName

string

Window name, for example [Graphs1

Return

None.

Examples

Python

import nex
doc = nex.GetActiveDocument()
docPath = nex.GetDocPath(doc)
nex.ApplyTemplate(doc,'Autocorrelograms')
nex.CloseWindow(docPath, '[Graphs1]')

NexScript

doc = GetActiveDocument()
docPath = GetDocPath(doc)
ApplyTemplate(doc,"Autocorrelograms")
CloseWindow(docPath, "[Graphs1]")