oaTechLayerHeader
模块: oapy._oa._tech
导入: from oapy._oa import _tech
概览
oaTechLayerHeader 在 oapy 中可用,可通过 _tech 模块访问。
本页汇总 oaTechLayerHeader 当前在 oapy 中可用的 Python 接口。
详细说明
The oaTechLayerHeader manages the binding to a specific layer, whether that layer exists in the same or in a referenced technology database。
方法总览
| 状态 | Python 调用 |
|---|---|
| ✅ | obj.getLayerNum() |
| ✅ | obj.getLayer() |
| ✅ | obj.isBound() |
| ✅ | _tech.oaTechLayerHeader.find(tech, layerNum) |
方法说明
obj.getLayerNum()
绑定状态: 已绑定
Python 调用: obj.getLayerNum()
This function returns the layer number that this techLayerHeader represents。
Python 示例
from oapy._oa import _tech
# assume obj is a oaTechLayerHeader
obj.getLayerNum()
obj.getLayer()
绑定状态: 已绑定
Python 调用: obj.getLayer()
This function returns the layer that this techLayerHeader represents。 NULL is returned if the layer is unavailable; this may occur if the corresponding technology database is not open。
Python 示例
from oapy._oa import _tech
# assume obj is a oaTechLayerHeader
obj.getLayer()
obj.isBound()
绑定状态: 已绑定
Python 调用: obj.isBound()
This function returns a boolean indicating whether this techLayerHeader is bound or not。 This techLayerHeader will not be bound if it is a header for a layer in a referenced technology database that currently is not available。
Python 示例
from oapy._oa import _tech
# assume obj is a oaTechLayerHeader
obj.isBound()
_tech.oaTechLayerHeader.find(tech, layerNum)
绑定状态: 已绑定
Python 调用: _tech.oaTechLayerHeader.find(tech, layerNum)
This function searches the specified technology database for a techLayerHeader that is associated with the given layerNum。
参数
tech: Tech database to search。layerNum: Layer number for which to find the associated techLayerHeader is to be found。
Python 示例
from oapy._oa import _tech
_tech.oaTechLayerHeader.find(tech, layerNum)