hwIWindow GetGraphicsWidth

Gets the width of the graphics window.

Syntax

hwIWindow_handle GetGraphicsWidth

Application

HyperWorks Tcl Query

Description

Returns the width of the graphics window in pixels.

Example

To set the page layout type as three horizontal windows:
hwi OpenStack
hwi GetSessionHandle mySessionName
mySessionName ListMethods
mySessionName GetProjectHandle myProjectName
myProjectName GetPageHandle pageHandle [myProjectName GetActivePage]
pageHandle GetWindowHandle windowHandle [pageHandle GetActiveWindow]
set width [windowHandle GetGraphicsWidth]
hwi CloseStack

Error

Returns success (the width of window) or an error code.