首页 / tech / oaTechViaDefHeader

oaTechViaDefHeader

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

概览

oaTechViaDefHeaderoapy 中可用,可通过 _tech 模块访问。

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

详细说明

The oaTechViaDefHeader class is responsible for managing the binding to a specific viaDef, whether that viaDef exists in the same or in a referenced technology database。

方法总览

状态 Python 调用
obj.getViaDefName(name)
obj.getViaDef()
obj.isBound()
_tech.oaTechViaDefHeader.find(tech, viaDefName)

方法说明

obj.getViaDefName(name)

绑定状态: 已绑定

Python 调用: obj.getViaDefName(name)

This function retrieves the name of the viaDef that this techViaDefHeader references。

参数

  • name: retrieved viaDef name。

Python 示例

from oapy._oa import _tech

# assume obj is a oaTechViaDefHeader
obj.getViaDefName(name)

obj.getViaDef()

绑定状态: 已绑定

Python 调用: obj.getViaDef()

This function returns a pointer to the viaDef that this techHeader references。 NULL is returned if the viaDef is unavailable; this may occur if the corresponding technology database is not bound。

Python 示例

from oapy._oa import _tech

# assume obj is a oaTechViaDefHeader
obj.getViaDef()

obj.isBound()

绑定状态: 已绑定

Python 调用: obj.isBound()

This function returns a boolean indicating whether this techViaDefHeader is bound or not。

Python 示例

from oapy._oa import _tech

# assume obj is a oaTechViaDefHeader
obj.isBound()

_tech.oaTechViaDefHeader.find(tech, viaDefName)

绑定状态: 已绑定

Python 调用: _tech.oaTechViaDefHeader.find(tech, viaDefName)

This function searches the specified technology database for a techViaDefHeader corresponding to a viaDef with the given name。

参数

  • tech: tech database to search。
  • viaDefName: name of viaDef whose techViaDefHeader is to be found。

Python 示例

from oapy._oa import _tech

_tech.oaTechViaDefHeader.find(tech, viaDefName)