hwIPage SetWindowSyncGroupState
Changes the state of an existing window synchronization group.
Syntax
hwIPage_handle SetWindowSyncGroupState syncGroupName, state
Application
Tcl Modify
Description
This command changes the state of an existing window synchronization group.
Inputs
- syncGroupName
- The name of the window synchronization group you would like to change the state on.
- state
- The state that you would like to change to:
- True
- False
Example
The following example will synchronize all windows on the current page. 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 "Current state of $syncGroupName : [pg GetWindowSyncGroupState $syncGroupName]"
}
hwi CloseStack
Error
This command returns a warning code if the specified synchronization group name does not exist.