hwIPage SwapWindows

Swaps the contents of two windows on a page.

Syntax

hwIPage_handle SwapWindowswindow1, window2

Application

HyperWorks Tcl Modify

Inputs

window1
The index of one of the windows to be swapped.
window2
The index of the window to be swapped with window1.

Windows are numbered from left to right, and top to bottom, starting at 1.

Example

To swap the contents of windows 1 and 2 on page 1:
hwi GetSessionHandle mySessionName
mySessionName GetProjectHandle myProject 
myProject GetPageHandle myPage 1
myPage SwapWindows 1 2 

Error

Success (0) or an error code.

3 = HW_InvalidHandle - The handle used to invoke the method is no longer valid.

4 = HW_InvalidArgs - The value of the arguments window1 or window2 is invalid. These must both be greater than 0 and less than or equal to the number of windows on the page.