oaDerivedLayerParam
模块: oapy._oa._tech
导入: from oapy._oa import _tech
概览
oaDerivedLayerParam 在 oapy 中可用,可通过 _tech 模块访问。
本页汇总 oaDerivedLayerParam 当前在 oapy 中可用的 Python 接口。
详细说明
This class creates the parameters associated with a derived layer。
方法总览
| 状态 | Python 调用 |
|---|---|
| ✅ | obj.destroy() |
| ✅ | obj.getValue() |
| ✅ | obj.getDef() |
| ✅ | obj.isOwned() |
| ✅ | obj.setValue(value) |
| ✅ | obj.copy() |
| ✅ | obj.copyTo(database) |
| ✅ | _tech.oaDerivedLayerParam.create(def, value) |
方法说明
obj.destroy()
绑定状态: 已绑定
Python 调用: obj.destroy()
This function destroys this parameter, and all of its associated values。 If the parameter is owned by a derived layer, an error is thrown。
异常
oacCantDestroyOwnedDerivedLayerParam。
Python 示例
from oapy._oa import _tech
# assume obj is a oaDerivedLayerParam
obj.destroy()
obj.getValue()
绑定状态: 已绑定
Python 调用: obj.getValue()
This function returns the value for this derived layer parameter。
Python 示例
from oapy._oa import _tech
# assume obj is a oaDerivedLayerParam
obj.getValue()
obj.getDef()
绑定状态: 已绑定
Python 调用: obj.getDef()
This function returns the definition for this derived layer parameter。
Python 示例
from oapy._oa import _tech
# assume obj is a oaDerivedLayerParam
obj.getDef()
obj.isOwned()
绑定状态: 已绑定
Python 调用: obj.isOwned()
This function returns a boolean indicating whether this parameter is owned by a derived layer。
Python 示例
from oapy._oa import _tech
# assume obj is a oaDerivedLayerParam
obj.isOwned()
obj.setValue(value)
绑定状态: 已绑定
Python 调用: obj.setValue(value)
This function sets the value for this derived layer parameter。
参数
value: A pointer to the value to set on this derived layer parameter。
异常
oacValueAlreadyOwned。oacValueNotInSameDatabase。oacValueInvalidForDerivedLayerParamDef。
Python 示例
from oapy._oa import _tech
# assume obj is a oaDerivedLayerParam
obj.setValue(value)
obj.copy()
绑定状态: 已绑定
Python 调用: obj.copy()
This function copies this parameter and returns a pointer to the copy。
Python 示例
from oapy._oa import _tech
# assume obj is a oaDerivedLayerParam
obj.copy()
obj.copyTo(database)
绑定状态: 已绑定
Python 调用: obj.copyTo(database)
This function copies this derived layer parameter to the specified database。 A pointer to the new derived layer parameter is returned。
参数
database: A pointer to the database in which to place the copy of the derived layer parameter。
异常
oacValueInvalidForDerivedLayerParamDef。
Python 示例
from oapy._oa import _tech
# assume obj is a oaDerivedLayerParam
obj.copyTo(database)
_tech.oaDerivedLayerParam.create(def, value)
绑定状态: 已绑定
Python 调用: _tech.oaDerivedLayerParam.create(def, value)
This function creates a derived layer parameter in the same database as the specified value。
参数
def: A pointer to the derived layer parameter definition。value: A pointer to the value in the database in which to create the derived layer parameter。
异常
oacValueAlreadyOwned。oacValueInvalidForDerivedLayerParamDef。
Python 示例
from oapy._oa import _tech
_tech.oaDerivedLayerParam.create(def, value)