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

mgSetStrapOffset

mgSetStrapOffset(
d_strapId
n_offset
)
=> t / nil

Description

Sets the strap offset attribute, which represents the distance from the bottom or left of the bBox of the strap object.

Arguments

d_strapId

Database ID of the strap topology.

n_offset

Strap offset in user units.

Value Returned

t

The specified strap offset value was set.

nil

The command was unsuccessful.

Example

Specifies the offset attribute for a strap.

mgId = car(geGetEditCellView()~>figGroups)
topo = car(mgGetTopologyFromModgen(mgId))
strap = car(exists(obj dbGetTopologyObjects(topo)
dbGetTopologyPatternType(obj)=="strap"))
mgSetStrapOffset(strap 0.5)

Return to top
 ⠀
X