首页 / base / oaBooleanProp

oaBooleanProp

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

概览

oaBooleanPropoapy 中可用,可通过 _base 模块访问。

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

详细说明

The oaBooleanProp is a property that has a boolean (true or false) value。 Properties are application-defined values that can be added to any managed object in oaDesign , oaTech , and oaWafer databases except for the following paged objects: oaDevice , oaNode , oaParasiticNetwork , and oaSubNetwork 。 To create properties on DM Objects, create the corresponding oaDMData object (using oaLibDMData::open , oaCellDMData::open , oaViewDMData::open , or oaCellViewDMData::open ), then create properties on that oaDMData object。 See oaProp for a general discussion of properties。

方法总览

状态 Python 调用
obj.getValue()
obj.setValue(value)
_base.oaBooleanProp.create(object, name, value)

方法说明

obj.getValue()

绑定状态: 已绑定

Python 调用: obj.getValue()

This function returns the value of the property。

Python 示例

from oapy._oa import _base

# assume obj is a oaBooleanProp
obj.getValue()

obj.setValue(value)

绑定状态: 已绑定

Python 调用: obj.setValue(value)

This function sets this property to the specified value。

参数

  • value: The property value to set。

Python 示例

from oapy._oa import _base

# assume obj is a oaBooleanProp
obj.setValue(value)

_base.oaBooleanProp.create(object, name, value)

绑定状态: 已绑定

Python 调用: _base.oaBooleanProp.create(object, name, value)

This function creates a boolean property with the specified attributes。

参数

  • object: The object to which to attach the property。
  • name: The property name。
  • value: The property value。

返回

  • A pointer to the oaBooleanProp。

异常

  • oacPropNameUsed
  • oacInvalidObjForProp

Python 示例

from oapy._oa import _base

_base.oaBooleanProp.create(object, name, value)