oaLayerPairConstraintDef
模块: oapy._oa._base
导入: from oapy._oa import _base
概览
oaLayerPairConstraintDef 在 oapy 中可用,可通过 _base 模块访问。
本页汇总 oaLayerPairConstraintDef 当前在 oapy 中可用的 Python 接口。
详细说明
An oaLayerPairConstraintDef object specifies a definition for a layer pair constraint。 The definition contains a name, a list of databases that the constraint can be created in, a list of types of oaValues that are allowed for the constraint, and a boolean indicating whether or not the constraint is symmetric with respect to layer order。 The names for constraint definitions must be unique。
方法总览
| 状态 | Python 调用 |
|---|---|
| ✅ | obj.isSymmetric() |
| ✅ | _base.oaLayerPairConstraintDef.create(name, allowedValues, allowedObjects, allowedDB, symmetric=false) |
| ✅ | _base.oaLayerPairConstraintDef.get(type) |
方法说明
obj.isSymmetric()
绑定状态: 已绑定
Python 调用: obj.isSymmetric()
This function returns a boolean indicating whether this definition is symmetric with respect to layer order。
Python 示例
from oapy._oa import _base
# assume obj is a oaLayerPairConstraintDef
obj.isSymmetric()
_base.oaLayerPairConstraintDef.create(name, allowedValues, allowedObjects, allowedDB, symmetric=false)
绑定状态: 已绑定
Python 调用: _base.oaLayerPairConstraintDef.create(name, allowedValues, allowedObjects, allowedDB, symmetric=false)
This function creates a new layer pair constraint definition with the specified attributes。
参数
name: The name of the new definition。allowedValues: The value types that constraints with this definition can have。allowedObjects: The objects that constraints with this definition can be attached to。allowedDB: The databases that constraints with this definition can be created in。symmetric: A boolean indicating whether or not this definition is symmetric with respect to layer order。
异常
oacConstraintDefExists。oacInvalidValueType。
Python 示例
from oapy._oa import _base
_base.oaLayerPairConstraintDef.create(name, allowedValues, allowedObjects, allowedDB, symmetric=false)
_base.oaLayerPairConstraintDef.get(type)
绑定状态: 已绑定
Python 调用: _base.oaLayerPairConstraintDef.get(type)
This function returns the built-in layer pair constraint definition of the type specified。
参数
type: The built in layer pair constraint type to get。
Python 示例
from oapy._oa import _base
_base.oaLayerPairConstraintDef.get(type)