oaOccArrayInst
模块: oapy._oa._design
导入: from oapy._oa import _design
概览
oaOccArrayInst 在 oapy 中可用,可通过 _design 模块访问。
本页汇总 oaOccArrayInst 当前在 oapy 中可用的 Python 接口。
详细说明
The oaOccArrayInst class implements an occurrence of an oaArrayInst database object that represents an array of instances of one master design in the occurrence domain。
方法总览
| 状态 | Python 调用 |
|---|---|
| ✅ | obj.getName(name) |
| ✅ | obj.getPathName(pathName) |
| ✅ | obj.getInst() |
| ✅ | obj.getName(name) |
| ✅ | obj.getName(ns, name) |
| ✅ | obj.getPathName(pathName) |
| ✅ | obj.getPathName(ns, pathName) |
| ✅ | _design.oaOccArrayInst.find(occurrence, name) |
方法说明
obj.getName(name)
绑定状态: 已绑定
Python 调用: obj.getName(name)
This function returns the local name of this arrayInst in the specified name object。 The name is relative to the parent occurrence of this arrayInst。
参数
name: The returned instance name。
Python 示例
from oapy._oa import _design
# assume obj is a oaOccArrayInst
obj.getName(name)
obj.getPathName(pathName)
绑定状态: 已绑定
Python 调用: obj.getPathName(pathName)
This function returns the full path name of this arrayInst, relative to the top occurrence in the occurrence hierarchy containing this arrayInst。
参数
pathName: The returned path name。
Python 示例
from oapy._oa import _design
# assume obj is a oaOccArrayInst
obj.getPathName(pathName)
obj.getInst()
绑定状态: 已绑定
Python 调用: obj.getInst()
This function returns the corresponding instance in the block domain。 NULL will be returned if the master design for this instance does not have a top block。 从 oaOccInst 重新实现。
返回
- A pointer to an oaInst。
Python 示例
from oapy._oa import _design
# assume obj is a oaOccArrayInst
obj.getInst()
obj.getName(name)
绑定状态: 已绑定
Python 调用: obj.getName(name)
Python 示例
from oapy._oa import _design
# assume obj is a oaOccArrayInst
obj.getName(name)
obj.getName(ns, name)
绑定状态: 已绑定
Python 调用: obj.getName(ns, name)
Python 示例
from oapy._oa import _design
# assume obj is a oaOccArrayInst
obj.getName(ns, name)
obj.getPathName(pathName)
绑定状态: 已绑定
Python 调用: obj.getPathName(pathName)
Python 示例
from oapy._oa import _design
# assume obj is a oaOccArrayInst
obj.getPathName(pathName)
obj.getPathName(ns, pathName)
绑定状态: 已绑定
Python 调用: obj.getPathName(ns, pathName)
Python 示例
from oapy._oa import _design
# assume obj is a oaOccArrayInst
obj.getPathName(ns, pathName)
_design.oaOccArrayInst.find(occurrence, name)
绑定状态: 已绑定
Python 调用: _design.oaOccArrayInst.find(occurrence, name)
This function searches the specified occurrence for an arrayInst with the specified name。 If name is hierarchical, then this function will descend into lower levels of occurrence hierarchy, expanding the hierarchy and binding the master designs as needed。 The arrayInst is returned if found, otherwise NULL is returned。
参数
occurrence: The occurrence in which to search。name: The name of the arrayInst to find。
返回
- A pointer to the oaOccArrayInst。
Python 示例
from oapy._oa import _design
_design.oaOccArrayInst.find(occurrence, name)