oaSiteDef
模块: oapy._oa._tech
导入: from oapy._oa import _tech
概览
oaSiteDef 在 oapy 中可用,可通过 _tech 模块访问。
本页汇总 oaSiteDef 当前在 oapy 中可用的 Python 接口。
详细说明
The oaSiteDef class defines a site where you can place cells in a row。 A site has a type, symmetry and other information allowing for the specification of placeable objects within a row。 The site can be either a simple oaScalarSiteDef , which has width and height information, or an oaArraySiteDef , which has a pattern of scalar siteDefs。 The oaSiteDef class can be observed by deriving from oaObserver
方法总览
| 状态 | Python 调用 |
|---|---|
| ✅ | obj.destroy() |
| ✅ | obj.getName(name) |
| ✅ | obj.getSiteDefType() |
| ✅ | obj.getWidth() |
| ✅ | obj.getHeight() |
| ✅ | obj.isSymmetricInX() |
| ✅ | obj.isSymmetricInY() |
| ✅ | obj.isSymmetricInRot() |
| ✅ | obj.setType(type) |
| ✅ | obj.setSymmetricInX(val) |
| ✅ | obj.setSymmetricInY(val) |
| ✅ | obj.setSymmetricInRot(val) |
| ✅ | obj.getUsedIn() |
| ✅ | _tech.oaSiteDef.find(tech, name) |
| ✅ | _tech.oaSiteDef.find(tech, name, local) |
方法说明
obj.destroy()
绑定状态: 已绑定
Python 调用: obj.destroy()
This function destroys this siteDef, removing it from the technology database。
Python 示例
from oapy._oa import _tech
# assume obj is a oaSiteDef
obj.destroy()
obj.getName(name)
绑定状态: 已绑定
Python 调用: obj.getName(name)
This function returns the name of the siteDef。
Python 示例
from oapy._oa import _tech
# assume obj is a oaSiteDef
obj.getName(name)
obj.getSiteDefType()
绑定状态: 已绑定
Python 调用: obj.getSiteDefType()
This function returns the type of the siteDef。
Python 示例
from oapy._oa import _tech
# assume obj is a oaSiteDef
obj.getSiteDefType()
obj.getWidth()
绑定状态: 已绑定
Python 调用: obj.getWidth()
This function returns the width of the siteDef。 For array siteDefs, the width is calculated from its list of scalar siteDefs and their transformations。 If any of the scalar siteDefs cannot be found by name an exception is thrown。
异常
oacSiteDefNotFound。
Python 示例
from oapy._oa import _tech
# assume obj is a oaSiteDef
obj.getWidth()
obj.getHeight()
绑定状态: 已绑定
Python 调用: obj.getHeight()
This function returns the height of the siteDef。 For array siteDefs, the height is calculated from its list of scalar siteDefs and their transformations。 If any of the scalar siteDefs cannot be found by name an exception is thrown。
异常
oacSiteDefNotFound。
Python 示例
from oapy._oa import _tech
# assume obj is a oaSiteDef
obj.getHeight()
obj.isSymmetricInX()
绑定状态: 已绑定
Python 调用: obj.isSymmetricInX()
This function returns true if the siteDef is symmetrical in the X direction。
Python 示例
from oapy._oa import _tech
# assume obj is a oaSiteDef
obj.isSymmetricInX()
obj.isSymmetricInY()
绑定状态: 已绑定
Python 调用: obj.isSymmetricInY()
This function returns true if the siteDef is symmetrical in the Y direction。
Python 示例
from oapy._oa import _tech
# assume obj is a oaSiteDef
obj.isSymmetricInY()
obj.isSymmetricInRot()
绑定状态: 已绑定
Python 调用: obj.isSymmetricInRot()
This function returns true if the siteDef is symmetrical in rotation。
Python 示例
from oapy._oa import _tech
# assume obj is a oaSiteDef
obj.isSymmetricInRot()
obj.setType(type)
绑定状态: 已绑定
Python 调用: obj.setType(type)
This function sets the type of the siteDef。
Python 示例
from oapy._oa import _tech
# assume obj is a oaSiteDef
obj.setType(type)
obj.setSymmetricInX(val)
绑定状态: 已绑定
Python 调用: obj.setSymmetricInX(val)
This function sets the siteDef symmetrical in the X direction。
Python 示例
from oapy._oa import _tech
# assume obj is a oaSiteDef
obj.setSymmetricInX(val)
obj.setSymmetricInY(val)
绑定状态: 已绑定
Python 调用: obj.setSymmetricInY(val)
This function sets the siteDef symmetrical in the Y direction。
Python 示例
from oapy._oa import _tech
# assume obj is a oaSiteDef
obj.setSymmetricInY(val)
obj.setSymmetricInRot(val)
绑定状态: 已绑定
Python 调用: obj.setSymmetricInRot(val)
This function returns sets the siteDef symmetrical in rotation。
Python 示例
from oapy._oa import _tech
# assume obj is a oaSiteDef
obj.setSymmetricInRot(val)
obj.getUsedIn()
绑定状态: 已绑定
Python 调用: obj.getUsedIn()
This function returns a collection of rowHeaders in all designs that refer to this siteDef object。
Python 示例
from oapy._oa import _tech
# assume obj is a oaSiteDef
obj.getUsedIn()
_tech.oaSiteDef.find(tech, name)
绑定状态: 已绑定
Python 调用: _tech.oaSiteDef.find(tech, name)
This function searches for a siteDef with the specified name。 The local argument specifies whether (if true) to look only in the specified technology database or (if false) to look in the specified technology database and all of its referenced databases。 If found, the siteDef is returned, otherwise NULL is returned。 Refer to Incremental Technology Databases in the Using Technology Databases section of the Programmers Guide for more information about referenced tech databases。
参数
tech: The technology database to search。name: The siteDef name to find。local: Specifies whether (if true) to look only in the specified technology database or (if false) to look in the specified technology database and all of its referenced databases。
Python 示例
from oapy._oa import _tech
_tech.oaSiteDef.find(tech, name)
_tech.oaSiteDef.find(tech, name, local)
绑定状态: 已绑定
Python 调用: _tech.oaSiteDef.find(tech, name, local)
This function searches the specified technology database for a siteDef with the specified name。 If the specified technology database references other technology databases, those are searched as well and the first matching siteDef is returned。 To find a siteDef in the current technology database only, refer to the find function that accepts the local argument。 If found, the function returns the siteDef value。 Otherwise, NULL is returned。
参数
tech: The technology database to search。name: The siteDef to find。
Python 示例
from oapy._oa import _tech
_tech.oaSiteDef.find(tech, name, local)