首页 / base / oaLayerConstraintDef

oaLayerConstraintDef

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

概览

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

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

详细说明

A oaLayerConstraintDef object specifies a definition for a layer constraint。 The definition contains a name, a list of databases that the constraint can be created in, and a list of types of oaValues that are allowed for the constraint。 The names for all constraint definitions must be unique。

方法总览

状态 Python 调用
_base.oaLayerConstraintDef.create(name, allowedValues, allowedObjects, allowedDB)
_base.oaLayerConstraintDef.get(type)

方法说明

_base.oaLayerConstraintDef.create(name, allowedValues, allowedObjects, allowedDB)

绑定状态: 已绑定

Python 调用: _base.oaLayerConstraintDef.create(name, allowedValues, allowedObjects, allowedDB)

This function creates a new layer 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。

异常

  • oacConstraintDefExists
  • oacInvalidValueType

Python 示例

from oapy._oa import _base

_base.oaLayerConstraintDef.create(name, allowedValues, allowedObjects, allowedDB)

_base.oaLayerConstraintDef.get(type)

绑定状态: 已绑定

Python 调用: _base.oaLayerConstraintDef.get(type)

This function returns the built-in layer constraint definition of the type specified。

参数

  • type: The built-in layer constraint type to find。

Python 示例

from oapy._oa import _base

_base.oaLayerConstraintDef.get(type)