oaScalarSiteDef
模块: oapy._oa._tech
导入: from oapy._oa import _tech
概览
oaScalarSiteDef 在 oapy 中可用,可通过 _tech 模块访问。
本页汇总 oaScalarSiteDef 当前在 oapy 中可用的 Python 接口。
详细说明
The oaScalarSiteDef class defines a site where you can place cells in a row。 A site A scalar site has width and height information, as well as the type and symmetry information inherited from oaSiteDef 。
方法总览
| 状态 | Python 调用 |
|---|---|
| ✅ | obj.setWidth(width) |
| ✅ | obj.setHeight(height) |
| ✅ | _tech.oaScalarSiteDef.create(tech, name, type, width, height, isSymmetricInX=false, isSymmetricInY=false, isSymmetricInRot=false) |
方法说明
obj.setWidth(width)
绑定状态: 已绑定
Python 调用: obj.setWidth(width)
This function sets the width of the siteDef。
Python 示例
from oapy._oa import _tech
# assume obj is a oaScalarSiteDef
obj.setWidth(width)
obj.setHeight(height)
绑定状态: 已绑定
Python 调用: obj.setHeight(height)
This function sets the height of the siteDef。
Python 示例
from oapy._oa import _tech
# assume obj is a oaScalarSiteDef
obj.setHeight(height)
_tech.oaScalarSiteDef.create(tech, name, type, width, height, isSymmetricInX=false, isSymmetricInY=false, isSymmetricInRot=false)
绑定状态: 已绑定
Python 调用: _tech.oaScalarSiteDef.create(tech, name, type, width, height, isSymmetricInX=false, isSymmetricInY=false, isSymmetricInRot=false)
This function creates an oaScalarSiteDef object in the specified technology database with the specified attributes。
参数
tech: The technology database in which to create the siteDef。name: The name of the siteDef to create。type: The type of siteDef to create。width: The width of the siteDef to create。height: The height of the siteDef to create。isSymmetricInX: The X symmetry of the siteDef to create。isSymmetricInY: The Y symmetry of the siteDef to create。isSymmetricInRot: The rotation symmetry of the siteDef to create。
异常
oacSiteDefExists。
Python 示例
from oapy._oa import _tech
_tech.oaScalarSiteDef.create(tech, name, type, width, height, isSymmetricInX=false, isSymmetricInY=false, isSymmetricInRot=false)