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

leComputeFigArea

leComputeFigArea(
d_figId
) 
=> n_area / nil

Description

Computes the area of an object. The following objects are supported: rectangle, label, text display, polygon, ellipse, dot, marker, donut, path, figGroup, row, pathSeg, transmission line (trl), bend, taper, area or layer blockage, and area, snap, cluster, or place and route (PR) boundary.

Arguments

d_figId

Database ID of the object for which the area is computed.

Value Returned

n_area

The area of the object.

nil

The area of the object is not computed.

Example

Returns 30.0 as the area of the rectangle.

cv = geGetEditCellView()
rect = dbCreateRect(cv "poly" '((2 2) (8 7)))
leComputeFigArea(rect)
30.0

Related Topics

Object Editing in Layout XL


Return to top
 ⠀
X