首页 / design / oaOccDesignInst

oaOccDesignInst

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

概览

oaOccDesignInstoapy 中可用,可通过 _design 模块访问。

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

详细说明

The oaOccDesignInst class implements an occurrence of an instance of a design master。 oaOccDesignInst objects are always in the occurrence domain。

方法总览

状态 Python 调用
obj.getMaster()
obj.getHeader()
obj.getLibName(libName)
obj.getCellName(cellName)
obj.getViewName(viewName)
obj.getLibName(ns, libName)
obj.getCellName(ns, cellName)
obj.getViewName(ns, viewName)
obj.getParams(params)
obj.findParam(name, param)

方法说明

obj.getMaster()

绑定状态: 已绑定

Python 调用: obj.getMaster()

This function attempts to return the master associated with this instance。 If the instance is not previously bound, it attempts to open the master and bind this instance。 If the instance cannot be bound, NULL is returned。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccDesignInst
obj.getMaster()

obj.getHeader()

绑定状态: 已绑定

Python 调用: obj.getHeader()

This function returns the occurrence instHeader associated with this instance。 The instHeader is a collection of the attributes that are common to all instances of a particular master。

返回

  • The pointer to the instance header。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccDesignInst
obj.getHeader()

obj.getLibName(libName)

绑定状态: 已绑定

Python 调用: obj.getLibName(libName)

This function returns the library name for the master design referenced by this instance in the namespace specified。

参数

  • ns: The namespace for the library name。
  • libName: The library name for the master design。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccDesignInst
obj.getLibName(libName)

obj.getCellName(cellName)

绑定状态: 已绑定

Python 调用: obj.getCellName(cellName)

This function returns the cell name for the master design referenced by this instance in the namespace specified。

参数

  • ns: The namespace for the cell name。
  • cellName: The cell name for the master design。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccDesignInst
obj.getCellName(cellName)

obj.getViewName(viewName)

绑定状态: 已绑定

Python 调用: obj.getViewName(viewName)

This function returns the view name for the master design referenced by this instance in the namespace specified。

参数

  • ns: The namespace for the view name。
  • viewName: The view name for the master design。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccDesignInst
obj.getViewName(viewName)

obj.getLibName(ns, libName)

绑定状态: 已绑定

Python 调用: obj.getLibName(ns, libName)

This function returns the library name for the master design referenced by this instance。

参数

  • libName: The name of the library for the master design。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccDesignInst
obj.getLibName(ns, libName)

obj.getCellName(ns, cellName)

绑定状态: 已绑定

Python 调用: obj.getCellName(ns, cellName)

This function returns the cell name for the master design referenced by this instance。

参数

  • cellName: The name of the cell for the master design。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccDesignInst
obj.getCellName(ns, cellName)

obj.getViewName(ns, viewName)

绑定状态: 已绑定

Python 调用: obj.getViewName(ns, viewName)

This function returns the view name for the master design referenced by this instance。

参数

  • viewName: The name of the view for the master design。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccDesignInst
obj.getViewName(ns, viewName)

obj.getParams(params)

绑定状态: 已绑定

Python 调用: obj.getParams(params)

This function fills out params with the parameters associated with this instHeader。 This call only returns the non-default parameters that were specified during creation or through calls to setParams() on the instances。 If this instHeader is not associated with a Pcell master or uses all default parameters, params will have a numParams of zero。

Python 示例

from oapy._oa import _design

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

obj.findParam(name, param)

绑定状态: 已绑定

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

This function searches the parameter list of this instance for a parameter with the specified name。 If found, it fills out param with the appropriate attributes and returns true。 Otherwise, the function returns false。 Only Pcell instances have parameters。

参数

  • name: The parameter name to find。
  • param: The parameter class to fill out if the parameter is found。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccDesignInst
obj.findParam(name, param)