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

mgGetStrapOffset

mgGetStrapOffset(
d_strapId
)
=> n_offset / nil

Description

Returns the strap offset attribute, which represents the distance from the bottom or left of the bBox of the strapObject.

Arguments

d_strapId

Database ID of the strap topology.

Value Returned

n_offset

The offset value of the specified strap.

nil

The strap does not have an offset value.

Example

Returns the strap offset attribute of the specified strap topology.

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

Return to top
 ⠀
X