oaPinFig
模块: oapy._oa._design
导入: from oapy._oa import _design
概览
oaPinFig 在 oapy 中可用,可通过 _design 模块访问。
本页汇总 oaPinFig 当前在 oapy 中可用的 Python 接口。
详细说明
The oaPinFig class is an abstract class that is the base for all OpenAccess database figures that can represent pins, including instances, shapes and vias。
方法总览
| 状态 | Python 调用 |
|---|---|
| ✅ | obj.hasPin() |
| ✅ | obj.getPin() |
| ✅ | obj.addToPin(pin) |
| ✅ | obj.removeFromPin() |
方法说明
obj.hasPin()
绑定状态: 已绑定
Python 调用: obj.hasPin()
This function returns a boolean value that indicates if this figure implements a pin。
Python 示例
from oapy._oa import _design
# assume obj is a oaPinFig
obj.hasPin()
obj.getPin()
绑定状态: 已绑定
Python 调用: obj.getPin()
This function returns the pin this figure implements。 If this figure does not implement a pin, NULL is returned。
Python 示例
from oapy._oa import _design
# assume obj is a oaPinFig
obj.getPin()
obj.addToPin(pin)
绑定状态: 已绑定
Python 调用: obj.addToPin(pin)
This function adds this figure to the specified pin。 If this figure is already connected to another pin, it is detached from the other pin first。
参数
pin: The pin to attach the figure to。
异常
oacCannotAddNetFigToPin。oacCannotAddRouteFigToPin。oacPinAndFigNotInSameBlock。
Python 示例
from oapy._oa import _design
# assume obj is a oaPinFig
obj.addToPin(pin)
obj.removeFromPin()
绑定状态: 已绑定
Python 调用: obj.removeFromPin()
This function removes this figure from the pin to which it is attached。 If this figure is not attached to a pin, this function does nothing。
Python 示例
from oapy._oa import _design
# assume obj is a oaPinFig
obj.removeFromPin()