oaStdVia
模块: oapy._oa._design
导入: from oapy._oa import _design
概览
oaStdVia 在 oapy 中可用,可通过 _design 模块访问。
本页汇总 oaStdVia 当前在 oapy 中可用的 Python 接口。
详细说明
The oaStdVia class implements an object that represents a standard via。 A standard via is an instance of a standard via definition which is implemented by the oaStdViaDef object。 There are a fixed number of parameters whose values can be customized。 These parameters are specified through an oaViaParam object。 A standard via may be used as object associated with an oaRoute 。 A discussion of the creation of oaStdVia objects can be found in the Representing Vias in OpenAccess section of the Programmers Guide。
方法总览
| 状态 | Python 调用 |
|---|---|
| ✅ | obj.getHeader() |
| ✅ | obj.getViaParams(params) |
| ✅ | obj.setViaParams(params) |
| ✅ | _design.oaStdVia.create(block, viaDef, xform, params=NULL) |
方法说明
obj.getHeader()
绑定状态: 已绑定
Python 调用: obj.getHeader()
This function returns the standard via header associated with this standard via。 从 oaVia 重新实现。
Python 示例
from oapy._oa import _design
# assume obj is a oaStdVia
obj.getHeader()
obj.getViaParams(params)
绑定状态: 已绑定
Python 调用: obj.getViaParams(params)
This function returns the standard via parameters associated with this standard via in the given params argument。
Python 示例
from oapy._oa import _design
# assume obj is a oaStdVia
obj.getViaParams(params)
obj.setViaParams(params)
绑定状态: 已绑定
Python 调用: obj.setViaParams(params)
This function changes the values of the standard via parameters associated with this standard via。 Only the non-default values from params are applied。 If the default flag bit for a parameter is set, the baseline default parameter value from the oaStdViaDef object used to create the oaStdVia object is applied。
Python 示例
from oapy._oa import _design
# assume obj is a oaStdVia
obj.setViaParams(params)
_design.oaStdVia.create(block, viaDef, xform, params=NULL)
绑定状态: 已绑定
Python 调用: _design.oaStdVia.create(block, viaDef, xform, params=NULL)
This function creates a standard via with the specified attributes。 The non-default parameter values from params override the baseline set of parameters associated with viaDef。 An exception is thrown if the via to be created uses an oaViaDef from a technology database that is not included in the referenced graph of technology databases for the technology database bound to the design containing the via。 An exception is thrown if the via to be created uses an oaStdViaDef with the same name as an existing customViaHeader。
参数
block: The block in which to create the standard via。viaDef: The oaStdViaDef to reference; the standard via parameters related to the oaStdViaDef (those used to create the oaStdViaDef ) establish a baseline default set of parameter values used to create the standard via。xform: The transform to apply to the standard via。params: A set of via parameter settings to override the baseline default parameters from the oaStdViaDef 。 A NULL value specifies that the default values are to be used。 If params is not NULL, only non-default values will be applied。 If the default flag bit for a parameter from params is set, the corresponding parameter from the oaStdViaDef is used in the creation of the via。
异常
oacViaDefNotInTechAssociatedWithDesign。oacStdViaDefSameNameAsCustomViaDef。
Python 示例
from oapy._oa import _design
_design.oaStdVia.create(block, viaDef, xform, params=NULL)