hwIPage RemoveWindowSyncGroup
Removes a window synchronization group.
Syntax
hwIPage_handle RemoveWindowSyncGroup syncGroupName
Application
HyperWorks Tcl Modify
Description
This command removes a window synchronization group.
Inputs
- syncGroupName
- The name of the window synchronization group you would like to remove.
Example
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]”
}
pg RemoveWindowSyncGroup $syncGroupName
}
hwi CloseStack
Errors
This command returns a warning code if a synchronization group with the specified name does not exist.