FindObjectsByPolygon (Layout Editor)

Use: Get a list of all objects intersecting the specified Polygon object on the given layer.

Syntax: oLayout.FindObjectsByPolygon(<oPolygopn>, <Layer>)

Return Value: Object list.

VB Example:

# Find all objects intersecting box = {(0,0), (1e-3,1e-3)}

p0 = oLayout.Point().Set(0, 0)

p1 = oLayout.Point().Set(1e-3, 0)

p2 = oLayout.Point().Set(1e-3, 1e-3)

p3 = oLayout.Point().Set(0, 1e-3)

box = oLayout.Polyon().AddPoint(p0).AddPoint(p1).AddPoint(p2).AddPoint(p3).SetClosed(True)

objs = oLayout.FindObjectsByPolygon(box, '*')