oaDomain
模块: oapy._oa._base
导入: from oapy._oa import _base
概览
oaDomain 在 oapy 中可用,可通过 _base 模块访问。
本页汇总 oaDomain 当前在 oapy 中可用的 Python 接口。
详细说明
The oaDomain class is an enum wrapper that indicates which hierarchy domain a managed object is in。 See oaObject::getDomain for one usage。 See Enum Wrappers in the Programmers Guide for a discussion of enum wrappers。 Each database object has a domain value, which may be none (oacNoDomain)。 The domain is an inherent attribute of an object and may not be set by the user。 Objects in the design database may in the block domain (oacBlockDomain), which represents physical hierarchy, the module domain (oacModDomain), which represents logical hierarchy, the occurrence domain (oacOccDomain), which contains the occurrence hierarchy, or no domain (oacNoDomain)。 Objects belonging to databases other than the design database have no domain。 enum oaDomainEnum Enumeration values: oacFutureDomain "future" oacNoDomain "none" oacBlockDomain "block" oacOccDomain "occurrence" oacModDomain "module"。
构造函数
_base.oaDomain(valueIn)
obj = _base.oaDomain(valueIn)
_base.oaDomain(name)
obj = _base.oaDomain(name)
方法总览
| 状态 | Python 调用 |
|---|---|
| ✅ | obj.getName() |
方法说明
obj.getName()
绑定状态: 已绑定
Python 调用: obj.getName()
This function returns the name string associated with the encapsulated oaDomainEnum object。
Python 示例
from oapy._oa import _base
# assume obj is a oaDomain
obj.getName()