Product Documentation
Virtuoso Studio Design Environment SKILL Reference
Product Version IC23.1, November 2023

dbCreateDiffMaskGroup

dbCreateDiffMaskGroup(
d_cellView
t_groupName
d_sameMaskGroup1
d_sameMaskGroup2
)
=> d_group / nil

Description

Creates a diff-mask, color shape group (d_group) in the specified cellview with a pair of same-mask color shape groups and with the given name. The name must be unique amongst all diff-mask groups in the cellview.

A diff-mask, color shape group allows you to specify that the two same-mask color shapes must be on different color masks.

Arguments

d_cellView

Specifies the cellview ID

t_groupName

Specifies the name of a group that is to be created

d_sameMaskGroup1

Specifies the first group from the pair of groups of the shapes (of different colors)

d_sameMaskGroup2

Specifies the second group from the pair of groups of the shapes (of different colors)

Value Returned

d_group

Returns the ID of the diff-mask group created

nil

Returns nil if an error occurs during execution

Example

groupMC1 = dbCreateSameMaskGroup( cvId "MC1Group" )
dbAddObjectToGroup( groupMC1 rectM1 )
dbAddObjectToGroup( groupMC1 circleM3 )
groupMC2 = dbCreateSameMaskGroup( cvId "MC2Group" )
dbAddObjectToGroup( groupMC2 rectM2 )
groupDMC = dbCreateDiffMaskGroup( cvId "DMCGroup" groupMC1 groupMC2 )
groupMC3 = dbCreateSameMaskGroup( cvId "MC3Group" )
dbAddObjectToGroup( groupMC3 polygonM1 )
dbAddObjectToGroup( groupDMC groupMC3 )

Return to top
 ⠀
X