首页 / base / oaConstraintGroupMem

oaConstraintGroupMem

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

概览

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

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

详细说明

The oaConstraintGroupMem class implements the members of a constraint group。 A constraint group member can be an individual constraint, or another constraint group。 A collection of all the oaConstraintGroupMems in a parent constraint group is returned by oaConstraintGroup::getMembers 。 An instance of oaConstraintGroupMem is automatically destroyed when either the object it references or the parent constraint group is destroyed。 The oaConstraintGroupMem class can be observed by deriving from oaObserver

方法总览

状态 Python 调用
obj.destroy()
obj.getConstraintGroup()
obj.getObject()
obj.isImplicit()
obj.moveAfter(member)
obj.moveToFirst()
_base.oaConstraintGroupMem.create(group, constraint, prepend=false)
_base.oaConstraintGroupMem.create(group, groupMem, prepend=false)

方法说明

obj.destroy()

绑定状态: 已绑定

Python 调用: obj.destroy()

This function destroys the constraint group member specified, removing it from the parent constraint group。 The associated object is not destroyed。

Python 示例

from oapy._oa import _base

# assume obj is a oaConstraintGroupMem
obj.destroy()

obj.getConstraintGroup()

绑定状态: 已绑定

Python 调用: obj.getConstraintGroup()

This function returns the parent constraint group for this group member。 从 oaObject 重新实现。

Python 示例

from oapy._oa import _base

# assume obj is a oaConstraintGroupMem
obj.getConstraintGroup()

obj.getObject()

绑定状态: 已绑定

Python 调用: obj.getObject()

This function returns the object (constraint, constraint group or constraint group header) that is referred by this constraint group member。 Objects that refer to constraint groups in a different database will be returned as oaConstraintGroupHeader objects。

Python 示例

from oapy._oa import _base

# assume obj is a oaConstraintGroupMem
obj.getObject()

obj.isImplicit()

绑定状态: 已绑定

Python 调用: obj.isImplicit()

This function returns a boolean indicating whether the constraint group member was implicitly created by the database。 The database creates implicit members for constraint groups such as the foundry constraint group or the default constraint group for incremental technology databases。 It is an error to attempt to move or destroy an implicit constraint group member。 For more information about incremental technology databases, refer to Using Technology Databases in the Programmers Guide。

Python 示例

from oapy._oa import _base

# assume obj is a oaConstraintGroupMem
obj.isImplicit()

obj.moveAfter(member)

绑定状态: 已绑定

Python 调用: obj.moveAfter(member)

This function moves this constraint group member to the position after the specified member in the same constraint group。

参数

  • member: The constraint group member to move this member after。

异常

  • oacInvalidConstraintGroupForMemberMove

Python 示例

from oapy._oa import _base

# assume obj is a oaConstraintGroupMem
obj.moveAfter(member)

obj.moveToFirst()

绑定状态: 已绑定

Python 调用: obj.moveToFirst()

This function attempts to move this constraint group member to the first member in its group。 The current first constraint group member is moved to the second, and subsequent members are also move down in order。

Python 示例

from oapy._oa import _base

# assume obj is a oaConstraintGroupMem
obj.moveToFirst()

_base.oaConstraintGroupMem.create(group, constraint, prepend=false)

绑定状态: 已绑定

Python 调用: _base.oaConstraintGroupMem.create(group, constraint, prepend=false)

This function creates a constraint group member that is itself a constraint group。 Typically, the constraint group and the parent constraint group are in the same database, or if the parent constraint group is in the design database, the member may be in the technology database。 A parent constraint group can also include a member that is a user-defined constraint group in a referenced technology database。 For more information about referenced technology databases, see Using Technology Databases in the Programmers Guide。 By default constraint group members are appended to the constraint group。

参数

  • group: The constraint group to which this member is to be added。
  • groupMem: The constraint group to include in the specified group。
  • prepend: A boolean indicating whether to add this member as the first member of the constraint group。

异常

  • oacConstraintGroupMemberNotInValidDB
  • oacConstraintGroupAlreadyHasObj

Python 示例

from oapy._oa import _base

_base.oaConstraintGroupMem.create(group, constraint, prepend=false)

_base.oaConstraintGroupMem.create(group, groupMem, prepend=false)

绑定状态: 已绑定

Python 调用: _base.oaConstraintGroupMem.create(group, groupMem, prepend=false)

This function creates a constraint group member that is an individual constraint。 The constraint and the parent constraint group must be in the same database。 By default constraint group members are appended to the constraint group。

参数

  • group: The constraint group to which this member is to be added。
  • constraint: The constraint to include in the specified group。
  • prepend: A boolean indicating whether to add this member as the first member of the constraint group。

异常

  • oacConstraintGroupMemberNotInValidDB
  • oacConstraintGroupAlreadyHasObj

Python 示例

from oapy._oa import _base

_base.oaConstraintGroupMem.create(group, groupMem, prepend=false)