首页 / base / oaParamArray

oaParamArray

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

概览

oaParamArrayoapy 中可用,可通过 _base 模块访问。

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

详细说明

The oaParamArray class implements an array of oaParam objects。 Arrays of parameters are typically used to set or retrieve the data for parameterized designs (pCells) and instances。

构造函数

_base.oaParamArray(sizeIn=0)

obj = _base.oaParamArray(sizeIn=0)

_base.oaParamArray(paramsIn)

obj = _base.oaParamArray(paramsIn)

方法总览

状态 Python 调用
obj.find(param)
obj.find(name, param)
obj.operator==(p)

方法说明

obj.find(param)

绑定状态: 已绑定

Python 调用: obj.find(param)

This function searches the parameters of this oaParamArray for a parameter with the specified name。 If found, the specified param is filled and true is returned。 Otherwise, false is returned。

参数

  • nameIn: A reference to an oaString object that represents the name of the oaParam object being searched in this oaParamArray object。
  • param: A reference to an oaParam object to be populated if an oaParam object with the specified name is found in this array。

Python 示例

from oapy._oa import _base

# assume obj is a oaParamArray
obj.find(param)

obj.find(name, param)

绑定状态: 已绑定

Python 调用: obj.find(name, param)

This function searches the parameters of this paramArray looking for the specified parameter param。 If found, the index of the matching param is returned as an unsigned integer, otherwise the oacNullIndex value is returned。 从 oaArray 重新实现。

参数

  • param: input parameter to look for in this paramArray。

Python 示例

from oapy._oa import _base

# assume obj is a oaParamArray
obj.find(name, param)

obj.operator==(p)

绑定状态: 已绑定

Python 调用: obj.operator==(p)

Python 示例

from oapy._oa import _base

# assume obj is a oaParamArray
obj.operator==(p)