oaPurposeType
模块: oapy._oa._tech
导入: from oapy._oa import _tech
概览
oaPurposeType 在 oapy 中可用,可通过 _tech 模块访问。
本页汇总 oaPurposeType 当前在 oapy 中可用的 Python 接口。
详细说明
oaPurposeType 类封装用于描述the different uses of an oaPurpose 对象的枚举值。 enum oaPurposeTypeEnum Enumeration values: oacDrawingPurposeType "drawing" oacFillPurposeType "fill" oacSlotPurposeType "slot" oacOPCSerifPurposeType "OPCSerif" oacOPCAntiSerifPurposeType "OPCAntiSerif" oacAnnotationPurposeType "annotation" oacGapFillPurposeType "gapFill" oacRedundantPurposeType "redundant" oacAnyPurposeType "oaAny" oacNoPurposeType "oaNo" oacFillOPCPurposeType "oaFillOPC"。
构造函数
_tech.oaPurposeType(valueIn)
obj = _tech.oaPurposeType(valueIn)
_tech.oaPurposeType(name)
obj = _tech.oaPurposeType(name)
方法总览
| 状态 | Python 调用 |
|---|---|
| ✅ | obj.getName() |
| ✅ | _tech.oaPurposeType.get(purposeNum) |
方法说明
obj.getName()
绑定状态: 已绑定
Python 调用: obj.getName()
This function returns the name string associated with the encapsulated oaPurposeTypeEnum object。
Python 示例
from oapy._oa import _tech
# assume obj is a oaPurposeType
obj.getName()
_tech.oaPurposeType.get(purposeNum)
绑定状态: 已绑定
Python 调用: _tech.oaPurposeType.get(purposeNum)
This utility function converts a purposeNum to a purposeType。
参数
purposeNum: input purpose number。
Python 示例
from oapy._oa import _tech
_tech.oaPurposeType.get(purposeNum)