oaDerivedLayerDef
模块: oapy._oa._tech
导入: from oapy._oa import _tech
概览
oaDerivedLayerDef 在 oapy 中可用,可通过 _tech 模块访问。
本页汇总 oaDerivedLayerDef 当前在 oapy 中可用的 Python 接口。
详细说明
This class determines the number of parent layers for the corresponding derived layer。 For each of the oaLayerOpEnum items, except oacUserDefinedLayerOp, there is a built-in oaDerivedLayerDef object。 oacUserDefinedLayerOp is the oaLayerOpEnum value for any user-defined derived layer。
方法总览
| 状态 | Python 调用 |
|---|---|
| ✅ | obj.getName(name) |
| ✅ | obj.getNumLayers() |
| ✅ | obj.isBuiltIn() |
| ✅ | obj.destroy() |
| ✅ | obj.remove(tech) |
| ✅ | _tech.oaDerivedLayerDef.create(name, numLayers) |
| ✅ | _tech.oaDerivedLayerDef.get(type) |
| ✅ | _tech.oaDerivedLayerDef.find(name) |
方法说明
obj.getName(name)
绑定状态: 已绑定
Python 调用: obj.getName(name)
This function returns the name of this derived layer definition。
参数
name: A reference to the string name of this derived layer definition。
Python 示例
from oapy._oa import _tech
# assume obj is a oaDerivedLayerDef
obj.getName(name)
obj.getNumLayers()
绑定状态: 已绑定
Python 调用: obj.getNumLayers()
This function returns the number of input layers for a derived layer specified with this definiion。
Python 示例
from oapy._oa import _tech
# assume obj is a oaDerivedLayerDef
obj.getNumLayers()
obj.isBuiltIn()
绑定状态: 已绑定
Python 调用: obj.isBuiltIn()
This function returns true if this derived layer def is a built-in def。
Python 示例
from oapy._oa import _tech
# assume obj is a oaDerivedLayerDef
obj.isBuiltIn()
obj.destroy()
绑定状态: 已绑定
Python 调用: obj.destroy()
This function destroys this oaDerivedLayerDef object。 If it is a built-in definition, or there are databases referencing this definition, an exception is thrown。 An exception is also thrown if this function is called when undo is enabled on any of the current in-memory design or tech databases。
异常
oacUnableToDestroyBuiltInType。oacDerivedLayerParamDefHasReference。oacCannotDestroyDefUndo。
Python 示例
from oapy._oa import _tech
# assume obj is a oaDerivedLayerDef
obj.destroy()
obj.remove(tech)
绑定状态: 已绑定
Python 调用: obj.remove(tech)
This function removes this derived layer definition from the specified database。 All derived layers are destroyed in the database that references this definition。
参数
tech: The technology database containing the derived layer definition。
Python 示例
from oapy._oa import _tech
# assume obj is a oaDerivedLayerDef
obj.remove(tech)
_tech.oaDerivedLayerDef.create(name, numLayers)
绑定状态: 已绑定
Python 调用: _tech.oaDerivedLayerDef.create(name, numLayers)
This function creates a new, user-defined layer definition。
参数
name:numLayers:
异常
oacDerivedLayerDefExists。
Python 示例
from oapy._oa import _tech
_tech.oaDerivedLayerDef.create(name, numLayers)
_tech.oaDerivedLayerDef.get(type)
绑定状态: 已绑定
Python 调用: _tech.oaDerivedLayerDef.get(type)
This function returns the built-in layer definitions for the specified oaLayerOp object。
参数
type: The type of the layer operation。
Python 示例
from oapy._oa import _tech
_tech.oaDerivedLayerDef.get(type)
_tech.oaDerivedLayerDef.find(name)
绑定状态: 已绑定
Python 调用: _tech.oaDerivedLayerDef.find(name)
This function returns the derived layer definition with the name specified。 If no definition by that name is found, NULL is returned。
参数
name: The string name of the derived layer to find。
Python 示例
from oapy._oa import _tech
_tech.oaDerivedLayerDef.find(name)