首页 / tech / oaCustomViaVariant

oaCustomViaVariant

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

概览

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

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

详细说明

The oaCustomViaVariant class implements a custom via variant, which represents a predefined custom via parameterization。 An oaCustomViaVariant is comprised of A name A reference to an oaCustomViaDef An oaParamArray , which specifies the values for the custom via variant An oaCustomViaVariant can be created in a design database if it applies to specific design, or in a technology database if it should be available to multiple designs。

方法总览

状态 Python 调用
obj.getParams(params)
_tech.oaCustomViaVariant.create(owner, name, viaDef, params)
_tech.oaCustomViaVariant.find(owner, viaDef, params, local=false)

方法说明

obj.getParams(params)

绑定状态: 已绑定

Python 调用: obj.getParams(params)

This function returns the array of via parameters for this custom via variant。

参数

  • params: Returned array of via parameters。

Python 示例

from oapy._oa import _tech

# assume obj is a oaCustomViaVariant
obj.getParams(params)

_tech.oaCustomViaVariant.create(owner, name, viaDef, params)

绑定状态: 已绑定

Python 调用: _tech.oaCustomViaVariant.create(owner, name, viaDef, params)

This function creates a custom via variant with the specified attributes。 The oacInvalidObjForViaVariant exception is thrown if the passed-in object pointer for owner is not a pointer to a design or technology database。 An oacViaVariantNameExists exception is thrown if the specified name is already used by an existing via variant。 An oacViaVariantViaDefParamExists exception is thrown if the database already contains a via variant which matches the specified viaDef/params combination。

参数

  • owner: Database in which to create the standard via variant, either an oaTech or an oaDesign database。
  • name: Name for this custom via variant。
  • viaDef: Pointer to the oaCustomViaDef to use。
  • params: Array of parameters for the custom via variant。

异常

  • oacInvalidObjForViaVariant
  • oacViaVariantNameExists
  • oacViaVariantViaDefParamExists

Python 示例

from oapy._oa import _tech

_tech.oaCustomViaVariant.create(owner, name, viaDef, params)

_tech.oaCustomViaVariant.find(owner, viaDef, params, local=false)

绑定状态: 已绑定

Python 调用: _tech.oaCustomViaVariant.find(owner, viaDef, params, local=false)

This function searches the specified database for a via variant with the specified oaViaDef and parameter combination。 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: Pointer to the owning database in which to search。
  • viaDef: Custom via definition used by the oaCustomViaVariant being searched for。
  • params: Array of parameters for the custom via variant。 All parameters must be specified for the find() to succeed。 This function does not assume that unspecified parameters match existing parameters。
  • local: If true, look only in the specified database; If false, search the specified database and any referenced 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.oaCustomViaVariant.find(owner, viaDef, params, local=false)