mgDestroyMatchGroupOnObject
mgDestroyMatchGroupOnObject(d_dbObjectId) =>t/nil
Description
Destroys the matchGroups that include the specified database object.
Arguments
Value Returned
|
The matchGroups that included the specified database object were destroyed. |
|
|
Could not destroy the matchGroups that included the specified database object. |
Example
Finds the trunk that is present on the second channel of a Modgen. Destroys all the matchGroups that include that trunk:
when(window = hiGetCurrentWindow() when(cellView = geGetEditCellView(window) when(mgId=car(exists(fg cellView~>figGroups fg~>type=="modgen")) when(hTrunks = mgGetChannelTrunks(mgId 2 t)
if(mgDestroyMatchGroupOnObject(car(hTrunks)) then
println("Matched Group that had been associated with object has been destroyed")
else
println("Matched Group that is associated with object has not been destroyed or")
println("no matched group associated with object")
)))))))
Return to top