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

mgObjectHasMatchGroup

mgObjectHasMatchGroup(
d_dbObjectId
)
=> t / nil

Description

Checks whether the specified database object is part of a matchGroup.

Arguments

d_dbObjectId

The database ID of the object to be checked.

Value Returned

t

The database object is part of one or more matchGroups.

nil

The database object is not part of any matchGroup.

Example

Checks if a the specified trunk is part of any matchGroup:

when(window = hiGetCurrentWindow() 
    when(cellView = geGetEditCellView(window)
     when(mgId=car(exists(fg cellView~>figGroups fg~>type=="modgen"))
when(hTrunks = mgGetChannelTrunks(mgId 2 t)
if(mgObjectHasMatchGroup(car(hTrunks)) then
println("Object is part of a Matched Group")
else
println("Object is not part of a Matched Group")
)))))))

Return to top
 ⠀
X