oaStdViaVariant
模块: oapy._oa._tech
导入: from oapy._oa import _tech
概览
oaStdViaVariant 在 oapy 中可用,可通过 _tech 模块访问。
本页汇总 oaStdViaVariant 当前在 oapy 中可用的 Python 接口。
详细说明
The oaStdViaVariant class implements a standard via variant, which represents a predefined standard via parameterization。 An oaStdViaVariant is comprised of A name A reference to an oaStdViaDef An oaViaParam in which all values are specified An oaStdViaVariant 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.oaStdViaVariant.create(owner, name, viaDef, params) |
| ✅ | _tech.oaStdViaVariant.find(owner, viaDef, params, local=false) |
方法说明
obj.getParams(params)
绑定状态: 已绑定
Python 调用: obj.getParams(params)
This function returns the via parameters associated with this standard via variant。
参数
params: Returned parameters。
Python 示例
from oapy._oa import _tech
# assume obj is a oaStdViaVariant
obj.getParams(params)
_tech.oaStdViaVariant.create(owner, name, viaDef, params)
绑定状态: 已绑定
Python 调用: _tech.oaStdViaVariant.create(owner, name, viaDef, params)
This function creates a standard 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 oacAllParamsNeededForViaVariant exception is thrown if all of the parameters need for the standard via variant are not explicitly specified。 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 oaDesign database。name: Name for this standard via variant。viaDef: Pointer to the oaStdViaDef to use。params: Set of via parameters in which all values are specified。
异常
oacInvalidObjForViaVariant。oacViaVariantNameExists。oacAllParamsNeededForViaVariant。oacViaVariantViaDefParamExists。
Python 示例
from oapy._oa import _tech
_tech.oaStdViaVariant.create(owner, name, viaDef, params)
_tech.oaStdViaVariant.find(owner, viaDef, params, local=false)
绑定状态: 已绑定
Python 调用: _tech.oaStdViaVariant.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: Standard via definition used by the oaStdViaVariant being searched for。params: Set of via parameters used by the oaStdViaVariant being searched for。 All parameters in the oaViaParam class are used for matching (the values of both the specified and the unspecified parameters are used)。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.oaStdViaVariant.find(owner, viaDef, params, local=false)