oaTimeRangeProp
模块: oapy._oa._base
导入: from oapy._oa import _base
概览
oaTimeRangeProp 在 oapy 中可用,可通过 _base 模块访问。
本页汇总 oaTimeRangeProp 当前在 oapy 中可用的 Python 接口。
详细说明
The oaTimeRangeProp is a property that has a time-type value as well as a range of valid values that the time is allowed to take on。 The range can be used by a generic property editor to assist a user to enter a proper value。 Properties are application-defined values that can be added to any managed object in oaDesign , oaTech , and oaWafer databases except for the following paged objects: oaDevice , oaNode , oaParasiticNetwork , and oaSubNetwork 。 To create properties on DM Objects, create the corresponding oaDMData object (using oaLibDMData::open , oaCellDMData::open , oaViewDMData::open , or oaCellViewDMData::open ), then create properties on that oaDMData object。 See oaProp for a general discussion of properties。
方法总览
| 状态 | Python 调用 |
|---|---|
| ✅ | obj.getValue() |
| ✅ | obj.getLowerBound() |
| ✅ | obj.getUpperBound() |
| ✅ | obj.setValue(value) |
| ✅ | obj.set(lowerBound, value, upperBound) |
| ✅ | _base.oaTimeRangeProp.create(object, name, lowerBound, value, upperBound) |
方法说明
obj.getValue()
绑定状态: 已绑定
Python 调用: obj.getValue()
This function returns the value of this property。
Python 示例
from oapy._oa import _base
# assume obj is a oaTimeRangeProp
obj.getValue()
obj.getLowerBound()
绑定状态: 已绑定
Python 调用: obj.getLowerBound()
This function returns the lower bound of the time range。
Python 示例
from oapy._oa import _base
# assume obj is a oaTimeRangeProp
obj.getLowerBound()
obj.getUpperBound()
绑定状态: 已绑定
Python 调用: obj.getUpperBound()
This function returns the upper bound of the time range。
Python 示例
from oapy._oa import _base
# assume obj is a oaTimeRangeProp
obj.getUpperBound()
obj.setValue(value)
绑定状态: 已绑定
Python 调用: obj.setValue(value)
This function sets this property to the specified value。
异常
oacInvalidValueForIntRange。
Python 示例
from oapy._oa import _base
# assume obj is a oaTimeRangeProp
obj.setValue(value)
obj.set(lowerBound, value, upperBound)
绑定状态: 已绑定
Python 调用: obj.set(lowerBound, value, upperBound)
This function sets the attributes for this property。
异常
oacInvalidValueForIntRange。
Python 示例
from oapy._oa import _base
# assume obj is a oaTimeRangeProp
obj.set(lowerBound, value, upperBound)
_base.oaTimeRangeProp.create(object, name, lowerBound, value, upperBound)
绑定状态: 已绑定
Python 调用: _base.oaTimeRangeProp.create(object, name, lowerBound, value, upperBound)
This function creates a time property with the specified attributes。 The specified name is checked to verify it is unique for properties on the specified object。
异常
oacInvalidValueForIntRange。oacInvalidObjForProp。oacPropNameUsed。
Python 示例
from oapy._oa import _base
_base.oaTimeRangeProp.create(object, name, lowerBound, value, upperBound)