Product Documentation
Virtuoso Layout Suite SKILL Reference
Product Version IC23.1, November 2023

mgDestroyMatchGroupOnObject

mgDestroyMatchGroupOnObject(
d_dbObjectId
)
=> t / nil

Description

Destroys the matchGroups that include the specified database object.

Arguments

d_dbObjectId

The database ID of the object.

Value Returned

t

The matchGroups that included the specified database object were destroyed.

nil

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
 ⠀
X