首页 / base / oaAppProp

oaAppProp

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

概览

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

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

详细说明

The oaAppProp class is an application-specific property whose value is an arbitrary set of bytes。 The database does not provide any interpretation of those bytes。 If the value stored on an oaAppProp instance contains multi-byte fields (such as an integer), the database cannot do byte-swapping for these fields if they are written on one type of machine and read on another type of machine。 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.getSize()
obj.getValue(value)
obj.getAppType(appType)
obj.setAppType(appType)
obj.setValue(size, value)
obj.getValue(valueArray)
obj.setValue(valueArray)
_base.oaAppProp.create(object, name, appType, size, value)
_base.oaAppProp.create(object, name, appType, valueArray)

方法说明

obj.getSize()

绑定状态: 已绑定

Python 调用: obj.getSize()

This function returns the size of this property value。

Python 示例

from oapy._oa import _base

# assume obj is a oaAppProp
obj.getSize()

obj.getValue(value)

绑定状态: 已绑定

Python 调用: obj.getValue(value)

This function returns the values of this property。

参数

  • valueArray: The array of values for the property。

Python 示例

from oapy._oa import _base

# assume obj is a oaAppProp
obj.getValue(value)

obj.getAppType(appType)

绑定状态: 已绑定

Python 调用: obj.getAppType(appType)

This function returns the application type of this property。

Python 示例

from oapy._oa import _base

# assume obj is a oaAppProp
obj.getAppType(appType)

obj.setAppType(appType)

绑定状态: 已绑定

Python 调用: obj.setAppType(appType)

This function sets the application type of this property。 The appType is interpreted by the application。 It is not interpreted by OpenAccess。

参数

  • appType: The string corresponding to the application type。

Python 示例

from oapy._oa import _base

# assume obj is a oaAppProp
obj.setAppType(appType)

obj.setValue(size, value)

绑定状态: 已绑定

Python 调用: obj.setValue(size, value)

This function sets this property to have the specified values。

参数

  • valueArray: The values for the property。

Python 示例

from oapy._oa import _base

# assume obj is a oaAppProp
obj.setValue(size, value)

obj.getValue(valueArray)

绑定状态: 已绑定

Python 调用: obj.getValue(valueArray)

This function is deprecated。 Refer to the getValue function that gets an oaByteArray value。 This function returns the value of this property。

Python 示例

from oapy._oa import _base

# assume obj is a oaAppProp
obj.getValue(valueArray)

obj.setValue(valueArray)

绑定状态: 已绑定

Python 调用: obj.setValue(valueArray)

This function is deprecated。 Refer to the setValue function that takes an oaByteArray value。 This function sets the value of this property。

Python 示例

from oapy._oa import _base

# assume obj is a oaAppProp
obj.setValue(valueArray)

_base.oaAppProp.create(object, name, appType, size, value)

绑定状态: 已绑定

Python 调用: _base.oaAppProp.create(object, name, appType, size, value)

This function creates an application property with the specified attributes。 An oacPropNameUsed exception is thrown if a property already exists on the object with the specified name。

参数

  • object: The object on which to create the property。
  • name: The name for the property。
  • appType: A string identifying the type of application。
  • valueArray: The values for the property。

异常

  • oacPropNameUsed
  • oacInvalidObjForProp

Python 示例

from oapy._oa import _base

_base.oaAppProp.create(object, name, appType, size, value)

_base.oaAppProp.create(object, name, appType, valueArray)

绑定状态: 已绑定

Python 调用: _base.oaAppProp.create(object, name, appType, valueArray)

This function is deprecated。 Refer to the create function that takes an oaByteArray value。 This function creates an application property with the specified attributes。 The specified name is checked to verify it is unique for properties on the specified object。

异常

  • oacPropNameUsed
  • oacInvalidObjForProp

Python 示例

from oapy._oa import _base

_base.oaAppProp.create(object, name, appType, valueArray)