首页 / design / oaPropDisplay

oaPropDisplay

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

概览

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

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

详细说明

The oaPropDisplay class creates a shape similar to an oaText object, except that it presents a string that is the value of the specified oaProp object。 Whenever the value of the oaProp changes, calling the getText function on this display object returns the updated text string that represents the oaProp value。 The oaPropDisplay object is contained in the design database that contains the oaProp object。

方法总览

状态 Python 调用
obj.getProp()
_design.oaPropDisplay.create(prop, layerNum, purposeNum, origin, alignment, orient, font, height, format=oacNameTextDisplayFormat, overbar=false, visible=true, drafting=true)

方法说明

obj.getProp()

绑定状态: 已绑定

Python 调用: obj.getProp()

This function returns the owner oaProp object of this oaPropDisplay。

Python 示例

from oapy._oa import _design

# assume obj is a oaPropDisplay
obj.getProp()

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

绑定状态: 已绑定

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

This function creates a propDisplay object with the specified attributes。

参数

  • prop: The oaProp object with which this textDisplay is associated。
  • layerNum: The number of the layer for this textDisplay。
  • purposeNum: The number of the purpose 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。

异常

  • oacNonDesignTextDisplay

Python 示例

from oapy._oa import _design

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