首页 / base / oaLayerArrayConstraintDef

oaLayerArrayConstraintDef

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

概览

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

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

详细说明

An oaLayerArrayConstraintDef object specifies a definition for a constraint between three or more layers。 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, a list of objects to which a constraint based on this definition can be applied, and the number of layers for a constraint based on this definition。 The names for constraint definitions must be unique。

方法总览

状态 Python 调用
obj.getNumLayers()
_base.oaLayerArrayConstraintDef.create(name, allowedValues, allowedObjects, allowedDB, numLayers)
_base.oaLayerArrayConstraintDef.get(type)

方法说明

obj.getNumLayers()

绑定状态: 已绑定

Python 调用: obj.getNumLayers()

This function returns the number of layers involved in the constraint definition。

Python 示例

from oapy._oa import _base

# assume obj is a oaLayerArrayConstraintDef
obj.getNumLayers()

_base.oaLayerArrayConstraintDef.create(name, allowedValues, allowedObjects, allowedDB, numLayers)

绑定状态: 已绑定

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

This function creates a new layer array constraint definition with the attributes specified。

参数

  • name: The name of the layer array definition。
  • allowedValues: The allowed types of oaValue sub classes。
  • allowedObjects: The allowed objects a constraint of this def can be applied to。
  • allowedDB: The types of databases a constraint based on this def can be created in。
  • numLayers: The number of layers for a constraint of this def。

Python 示例

from oapy._oa import _base

_base.oaLayerArrayConstraintDef.create(name, allowedValues, allowedObjects, allowedDB, numLayers)

_base.oaLayerArrayConstraintDef.get(type)

绑定状态: 已绑定

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

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

参数

  • type: An enum value that represents a built-in definition。

Python 示例

from oapy._oa import _base

_base.oaLayerArrayConstraintDef.get(type)