首页 / design / oaOccInstAttrDisplay

oaOccInstAttrDisplay

模块: oapy._oa._design 导入: from oapy._oa import _design

概览

oaOccInstAttrDisplayoapy 中可用,可通过 _design 模块访问。

本页汇总 oaOccInstAttrDisplay 当前在 oapy 中可用的 Python 接口。

详细说明

The oaOccInstAttrDisplay class implements an unique occurrence of an oaInstAttrDisplay object in a design hierarchy。

方法总览

状态 Python 调用
obj.getText(ns, text)
obj.getInst()
obj.getMasterAttribute()
obj.isBound()

方法说明

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 oaOccInstAttrDisplay
obj.getText(ns, text)

obj.getInst()

绑定状态: 已绑定

Python 调用: obj.getInst()

This function returns the instance associated with this instAttrDisplay object。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccInstAttrDisplay
obj.getInst()

obj.getMasterAttribute()

绑定状态: 已绑定

Python 调用: obj.getMasterAttribute()

This function returns the master attributes associated with this instAttrDisplay object。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccInstAttrDisplay
obj.getMasterAttribute()

obj.isBound()

绑定状态: 已绑定

Python 调用: obj.isBound()

This function returns a boolean which indicates whether this text display is currently bound。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccInstAttrDisplay
obj.isBound()