首页 / tech / oaPurposeValue

oaPurposeValue

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

概览

oaPurposeValueoapy 中可用,可通过 _tech 模块访问。

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

详细说明

This is a value class for derived layer parameters that contain a purpose。

方法总览

状态 Python 调用
obj.get()
obj.set(value)
_tech.oaPurposeValue.create(database, value)

方法说明

obj.get()

绑定状态: 已绑定

Python 调用: obj.get()

This function returns the value of this oaPurpose value。

Python 示例

from oapy._oa import _tech

# assume obj is a oaPurposeValue
obj.get()

obj.set(value)

绑定状态: 已绑定

Python 调用: obj.set(value)

This function sets this value to the specified oaPurposeNum value。

参数

  • value:

Python 示例

from oapy._oa import _tech

# assume obj is a oaPurposeValue
obj.set(value)

_tech.oaPurposeValue.create(database, value)

绑定状态: 已绑定

Python 调用: _tech.oaPurposeValue.create(database, value)

This function creates an oaPurpose value in the specified database。

参数

  • database: The tech database in which the value is created。
  • value: The purpose number value。

异常

  • oacInvalidDatabaseForValue

Python 示例

from oapy._oa import _tech

_tech.oaPurposeValue.create(database, value)