oaOccAttrDisplay
模块: oapy._oa._design
导入: from oapy._oa import _design
概览
oaOccAttrDisplay 在 oapy 中可用,可通过 _design 模块访问。
本页汇总 oaOccAttrDisplay 当前在 oapy 中可用的 Python 接口。
详细说明
The oaOccAttrDisplay class implements an unique occurrence of an oaAttrDisplay object in a design hierarchy。
方法总览
| 状态 | Python 调用 |
|---|---|
| ✅ | obj.getText(ns, text) |
| ✅ | obj.getObject() |
| ✅ | obj.getAttribute() |
方法说明
obj.getText(ns, text)
绑定状态: 已绑定
Python 调用: obj.getText(ns, text)
This function returns the value of this attribute display according to the given nameSpace。 The nameSpace is only valid for name type attributes。
参数
ns: The nameSpace to be used。text: The text string to be filled。
Python 示例
from oapy._oa import _design
# assume obj is a oaOccAttrDisplay
obj.getText(ns, text)
obj.getObject()
绑定状态: 已绑定
Python 调用: obj.getObject()
This function returns the object associated with the attrDisplay object from which this occAttrDisplay is generated。
Python 示例
from oapy._oa import _design
# assume obj is a oaOccAttrDisplay
obj.getObject()
obj.getAttribute()
绑定状态: 已绑定
Python 调用: obj.getAttribute()
This function returns the attribute associated referenced by this attrDisplay object。
Python 示例
from oapy._oa import _design
# assume obj is a oaOccAttrDisplay
obj.getAttribute()