hwIPage GetWindowSyncGroupItemList

Gets a list of window IDs in the synchronization group.

Syntax

hwIPage_handle GetWindowSyncGroupItemList syncGroupName

Application

HyperWorks Tcl Query

Description

This command returns a list of window IDs in the synchronization group.

Inputs

syncGroupName
Give your window synchronization group a meaningful name, or an ongoing number (for example: HW-SyncGroup1, SyncGroupModelBracket, or Page 1).

Example

The following example will synchronize all windows on the current page. Please divide your current page into the desired number of windows and load a model into each window.
hwi OpenStack
hwi GetSessionHandle sess

sess GetProjectHandle proj
proj GetPageHandle pg [proj GetActivePage]
set numberOfWindows [pg GetNumberOfWindows]

set windowIdList ""
for { set i 1} { $i <= $numberOfWindows } { incr i } {
    lappend windowIdList $i

if { [string length $windowIdList] } {
    set syncGroupName "MyWindowSyncGroup"
    pg AddWindowSyncGroup $syncGroupName $windowIdList
    pgr SetWindowSyncGroupState $syncGroupName true; #activate window synchronization on this group
         
    puts “Windows in synchronization group $syncGroupName : [pg GetWindowSyncGroupItemList $syncGroupName]”

}

Errors

None.