oaAreaBlockage
模块: oapy._oa._design
导入: from oapy._oa import _design
概览
oaAreaBlockage 在 oapy 中可用,可通过 _design 模块访问。
本页汇总 oaAreaBlockage 当前在 oapy 中可用的 Python 接口。
详细说明
An area blockage is a type of blockage representing an area。 The shape of a blockage is described using an oaPointArray 。 Coincident and collinear points are illegal in the point array for an area blockage。 For more information on coincident and collinear points, see oaPointArray::compress() The area blockage is most commonly used to prevent standard cells from being placed within a certain area。
方法总览
| 状态 | Python 调用 |
|---|---|
| ✅ | obj.isSoft() |
| ✅ | obj.setPoints(points) |
| ✅ | obj.setSoft(soft) |
| ✅ | obj.transform(scale, angle) |
| ✅ | _design.oaAreaBlockage.create(block, points, owner=NULL) |
方法说明
obj.isSoft()
绑定状态: 已绑定
Python 调用: obj.isSoft()
This function gets the boolean value for the soft attribute on this derived blockage。
Python 示例
from oapy._oa import _design
# assume obj is a oaAreaBlockage
obj.isSoft()
obj.setPoints(points)
绑定状态: 已绑定
Python 调用: obj.setPoints(points)
This function updates the shape of the blockages to the shape specified by the pointArray。
参数
points: The pointArray describing the new shape of the blockage。
异常
oacBlockageHasExtraPoints。oacBlockageTooFewPoints。
Python 示例
from oapy._oa import _design
# assume obj is a oaAreaBlockage
obj.setPoints(points)
obj.setSoft(soft)
绑定状态: 已绑定
Python 调用: obj.setSoft(soft)
This function sets the boolean value for the soft attribute on this derived blockage。 If an oaAreaBlockage has the soft attribute set (true), standard cells are not placed within the blockage area during initial placement, though later optimization phases can use the blockage area。
参数
soft: A boolean that sets the soft attribute to true or false。
Python 示例
from oapy._oa import _design
# assume obj is a oaAreaBlockage
obj.setSoft(soft)
obj.transform(scale, angle)
绑定状态: 已绑定
Python 调用: obj.transform(scale, angle)
This function transforms this blockage by the specified scale factor and rotation angle。 If this blockage is a leader in a group, every object in the group is moved with the specified transform。
参数
scale: The scale for the transformation。angle: The angle of the transformation。
Python 示例
from oapy._oa import _design
# assume obj is a oaAreaBlockage
obj.transform(scale, angle)
_design.oaAreaBlockage.create(block, points, owner=NULL)
绑定状态: 已绑定
Python 调用: _design.oaAreaBlockage.create(block, points, owner=NULL)
This is the constructor for an area blockage。
参数
block: The block in which to create the area blockage。points: The pointArray describing the shape of the blockage。owner: The optional owner of the blockage。
异常
oacBlockageHasExtraPoints。oacBlockageTooFewPoints。oacInvalidBlockageOwner。
Python 示例
from oapy._oa import _design
_design.oaAreaBlockage.create(block, points, owner=NULL)