首页 / design / oaInstPropDisplay

oaInstPropDisplay

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

概览

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

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

详细说明

The oaInstPropDisplay is a shape similar to an oaText object, except that it presents a string that is the value of the specified oaProp on the master of the oaInst to which it is attached。 Whenever the value of the oaProp changes, calling the getText function on this oaInstPropDisplay object returns the updated text string that represents the master's oaProp value。 The oaInstPropDisplay is contained in the design that contains the attached oaInst object。

方法总览

状态 Python 调用
obj.getMasterProp()
obj.getInst()
obj.isBound()
_design.oaInstPropDisplay.create(inst, masterProp, layerNum, purposeNum, origin, alignment, orient, font, height, format=oacNameTextDisplayFormat, overbar=false, visible=true, drafting=true)

方法说明

obj.getMasterProp()

绑定状态: 已绑定

Python 调用: obj.getMasterProp()

This function returns the property associated with this instPropDisplay object。

Python 示例

from oapy._oa import _design

# assume obj is a oaInstPropDisplay
obj.getMasterProp()

obj.getInst()

绑定状态: 已绑定

Python 调用: obj.getInst()

This function returns the instance associated with this instPropDisplay object。

Python 示例

from oapy._oa import _design

# assume obj is a oaInstPropDisplay
obj.getInst()

obj.isBound()

绑定状态: 已绑定

Python 调用: obj.isBound()

This function returns a boolean value that indicates if instance property display is currently bound。

Python 示例

from oapy._oa import _design

# assume obj is a oaInstPropDisplay
obj.isBound()

_design.oaInstPropDisplay.create(inst, masterProp, layerNum, purposeNum, origin, alignment, orient, font, height, format=oacNameTextDisplayFormat, overbar=false, visible=true, drafting=true)

绑定状态: 已绑定

Python 调用: _design.oaInstPropDisplay.create(inst, masterProp, layerNum, purposeNum, origin, alignment, orient, font, height, format=oacNameTextDisplayFormat, overbar=false, visible=true, drafting=true)

This function creates an instPropDisplay object for the specified prop object in the specified instance's master。

参数

  • inst: The oaInst object with which this textDisplay is associated。
  • masterProp: The property associated with this instPropDisplay object。
  • layerNum: The layer number for this textDisplay。
  • purposeNum: The purpose number for this textDisplay。
  • origin: The origin point of this textDisplay shape。
  • alignment: The alignment related to the origin。
  • orient: The orientation of this textDisplay shape。
  • font: The font used to display textDisplay shape。
  • height: The height of this display。
  • format: The format used to create the textDisplay。
  • overbar: Specifies if this textDisplay has an overbar; the default is false。
  • visible: Specifies if this textDisplay is actually displayed; the default is true。
  • drafting: Specifies the drafting of this textDisplay shape; the default is true。

异常

  • oacNoMasterForTextDisplay
  • oacPropNotOnInstanceMaster

Python 示例

from oapy._oa import _design

_design.oaInstPropDisplay.create(inst, masterProp, layerNum, purposeNum, origin, alignment, orient, font, height, format=oacNameTextDisplayFormat, overbar=false, visible=true, drafting=true)