首页 / tech / oaViaVariant

oaViaVariant

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

概览

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

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

详细说明

The oaViaVariant class is an abstract base class for via variants。 An oaViaVariant object is a predefined parameterization of an oaStdVia or an oaCustomVia 。 The oaViaVariant object represents a named pairing of an oaViaDef reference and a fully specified set of via parameters。 Refer to Via Variants in the Representing Vias in OpenAccess section of the Programmers Guide for more information about via variants。 oaViaVariants can be stored in oaTech or oaDesign databases。 If the oaViaVariant should be available for any design in the technology, it must be stored in a technology database。 If the oaViaVariant is design specific, it should be stored in the design database。 Within a single database, each oaViaVariant must have: A unique name A unique pairing of an oaViaDef and a set of parameters If an oaViaVariant is stored in a technology database that is part of a set of incremental technology databases, then these rules apply across the graph of referenced technology databases。

方法总览

状态 Python 调用
obj.destroy()
obj.getName(name)
obj.getViaDef()
obj.getViaDefName(name)
_tech.oaViaVariant.find(owner, name, local=false)

方法说明

obj.destroy()

绑定状态: 已绑定

Python 调用: obj.destroy()

This function destroys this via variant and removes it from the database。

Python 示例

from oapy._oa import _tech

# assume obj is a oaViaVariant
obj.destroy()

obj.getName(name)

绑定状态: 已绑定

Python 调用: obj.getName(name)

This function returns the name of this via variant。

参数

  • name: Returned name of the via variant。

Python 示例

from oapy._oa import _tech

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

obj.getViaDef()

绑定状态: 已绑定

Python 调用: obj.getViaDef()

This function returns a pointer to the oaViaDef associated with this via variant。

Python 示例

from oapy._oa import _tech

# assume obj is a oaViaVariant
obj.getViaDef()

obj.getViaDefName(name)

绑定状态: 已绑定

Python 调用: obj.getViaDefName(name)

This function returns the name of the oaViaDef associated with this via variant。

参数

  • name: Returned name of the oaViaDef 。

Python 示例

from oapy._oa import _tech

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

_tech.oaViaVariant.find(owner, name, local=false)

绑定状态: 已绑定

Python 调用: _tech.oaViaVariant.find(owner, name, local=false)

This function searches the specified database for a via variant with the specified name。 If found, the via variant is returned。 Otherwise NULL is returned。 The oacInvalidObjForViaVariant exception is thrown if the passed-in object pointer for owner is not a pointer to a design or technology database。

参数

  • owner: Database in which to search, either an oaTech or an oaDesign database。
  • name: Name of the via variant to find。
  • local: If true, look only in this technology database; If false, search this technology database and any referenced technology databases。 If this argument is set to true and the owning database is a design database, this argument is ignored。

异常

  • oacInvalidObjForViaVariant

Python 示例

from oapy._oa import _tech

_tech.oaViaVariant.find(owner, name, local=false)