oaViaDefArrayValue
模块: oapy._oa._tech
导入: from oapy._oa import _tech
概览
oaViaDefArrayValue 在 oapy 中可用,可通过 _tech 模块访问。
本页汇总 oaViaDefArrayValue 当前在 oapy 中可用的 Python 接口。
详细说明
The oaViaDefArrayValue represents a value object that contains an array of viaDefs。 See oaValue for a discussion of the usage of all of the oaValue subclasses。
方法总览
| 状态 | Python 调用 |
|---|---|
| ✅ | obj.get(value) |
| ✅ | obj.getNames(names) |
| ✅ | obj.set(value) |
| ✅ | _tech.oaViaDefArrayValue.create(database, value) |
| ✅ | _tech.oaViaDefArrayValue.create(database, value) |
方法说明
obj.get(value)
绑定状态: 已绑定
Python 调用: obj.get(value)
This function returns the viaDef array associated with this value。 Note: The returned value array may contain null object pointers if the associated viaDef cannot be bound, such as when it has been deleted or cannot be accessed。 The names of unbound viaDefs are accessed with the oaViaDefArrayValue::getNames function。
Python 示例
from oapy._oa import _tech
# assume obj is a oaViaDefArrayValue
obj.get(value)
obj.getNames(names)
绑定状态: 已绑定
Python 调用: obj.getNames(names)
This function returns an array containing the names of the viaDefs associated with this value。
参数
names: The returned value。
Python 示例
from oapy._oa import _tech
# assume obj is a oaViaDefArrayValue
obj.getNames(names)
obj.set(value)
绑定状态: 已绑定
Python 调用: obj.set(value)
This function sets the viaDef array for this value to the specified array。
参数
value: The viaDef array to set。
Python 示例
from oapy._oa import _tech
# assume obj is a oaViaDefArrayValue
obj.set(value)
_tech.oaViaDefArrayValue.create(database, value)
绑定状态: 已绑定
Python 调用: _tech.oaViaDefArrayValue.create(database, value)
This function is deprecated and is retained to ensure compatibility with previous versions of OpenAccess。 Use the create function overload that takes a const oaViaDefArray reference instead。 This function creates a viaDef array value in the database specified。
参数
database: The database in which to create the value。value: The viaDef array。
异常
oacInvalidDatabase。oacInvalidObjForValue。oacEmptyArrayValue。oacViaDefNotInReferencedTech。oacConflictingViaDefNamesInTech。
Python 示例
from oapy._oa import _tech
_tech.oaViaDefArrayValue.create(database, value)
_tech.oaViaDefArrayValue.create(database, value)
绑定状态: 已绑定
Python 调用: _tech.oaViaDefArrayValue.create(database, value)
This function creates an ViaDef array value in the specified database。
参数
database: The database in which to create the value。value: The viaDef array。
异常
oacInvalidDatabase。oacInvalidObjForValue。oacEmptyArrayValue。oacViaDefNotInReferencedTech。oacConflictingViaDefNamesInTech。
Python 示例
from oapy._oa import _tech
_tech.oaViaDefArrayValue.create(database, value)