首页 / base / oaConstraintGroupHeader

oaConstraintGroupHeader

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

概览

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

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

详细说明

The oaConstraintGroupHeader class implements persistent objects that are created and destroyed automatically on an as needed basis。 The existence of an oaConstraintGroupHeader object indicates that the constraint group it represents is currently being used by a database object in some way in the design hierarchy。 oaConstraintGroupHeader objects provide direct access to the collections of constraint group members that use the constraint group they represent。

方法总览

状态 Python 调用
obj.getConstraintGroup()
obj.getName(name)
obj.getConstraintGroupMems()
obj.isBound()
_base.oaConstraintGroupHeader.find(database, name)

方法说明

obj.getConstraintGroup()

绑定状态: 已绑定

Python 调用: obj.getConstraintGroup()

This function attempts to return the constraintGroup associated with the specified ConstraintGroupHeader。 If the ConstraintGroupHeader cannot be bound NULL will be returned。 从 oaObject 重新实现。

Python 示例

from oapy._oa import _base

# assume obj is a oaConstraintGroupHeader
obj.getConstraintGroup()

obj.getName(name)

绑定状态: 已绑定

Python 调用: obj.getName(name)

This function returns the name associated with constraint group represented by this ConstraintGroupHeader。

参数

  • name: String to return name in。

Python 示例

from oapy._oa import _base

# assume obj is a oaConstraintGroupHeader
obj.getName(name)

obj.getConstraintGroupMems()

绑定状态: 已绑定

Python 调用: obj.getConstraintGroupMems()

This function returns a collection of all of the constraint group members that reference this constraint group header。

Python 示例

from oapy._oa import _base

# assume obj is a oaConstraintGroupHeader
obj.getConstraintGroupMems()

obj.isBound()

绑定状态: 已绑定

Python 调用: obj.isBound()

This function returns a boolean indicating whether or not this ConstraintGroupHeader is bound to its associated constraint group object。

Python 示例

from oapy._oa import _base

# assume obj is a oaConstraintGroupHeader
obj.isBound()

_base.oaConstraintGroupHeader.find(database, name)

绑定状态: 已绑定

Python 调用: _base.oaConstraintGroupHeader.find(database, name)

This function searches the specified database looking for a ConstraintGroupHeader with the specified constraint group name。 If the ConstraintGroupHeader is found, it is returned, otherwise NULL is returned。 NULL is always returned if the specified constraint group name is default or foundry。

参数

  • database: Database to search in。
  • name: Name of constraint group to search for。

异常

  • oacInvalidDatabase

Python 示例

from oapy._oa import _base

_base.oaConstraintGroupHeader.find(database, name)