oaDesignObject
模块: oapy._oa._design
导入: from oapy._oa import _design
概览
oaDesignObject 在 oapy 中可用,可通过 _design 模块访问。
本页汇总 oaDesignObject 当前在 oapy 中可用的 Python 接口。
详细说明
This is the abstract base class for all managed objects that are specific to oaDesigns。 There is a substantial tree of classes derived from oaDesignObject。 For most of these classes, an oaDesignObject can be classified using its oaType value。 See oaObject::getType for more information。 For the classes derived from oaDesignObject that are base classes, oaDesignObject has functions to test for membership in that base class。 Note that oaProp , oaGroup , and oaAppObject instances can be stored in an oaDesign even though they are not oaDesignObjects。 These classes may appear in every database, so they are classified only as oaObjects。 Note that a number of classes that were direct descendants of oaDesignObject before OpenAccess version 2.1 are now descended from oaBlockObject 。
方法总览
| 状态 | Python 调用 |
|---|---|
| ✅ | obj.isNode() |
| ✅ | obj.isDevice() |
| ✅ | obj.isStdDevice() |
| ✅ | obj.isReducedModel() |
| ✅ | obj.isBlockObject() |
| ✅ | obj.isModObject() |
| ✅ | obj.isOccObject() |
| ✅ | obj.getDesign() |
方法说明
obj.isNode()
绑定状态: 已绑定
Python 调用: obj.isNode()
This function determines if this object is an instance of one of the classes derived from the oaNode class。 The function returns a boolean value of true if the oaDesignObject is a parasitic node。
Python 示例
from oapy._oa import _design
# assume obj is a oaDesignObject
obj.isNode()
obj.isDevice()
绑定状态: 已绑定
Python 调用: obj.isDevice()
This function determines if this object is an instance of one of the classes derived from the oaDevice class。 The function returns a boolean value of true if the oaDesignObject is a parasitic device。
Python 示例
from oapy._oa import _design
# assume obj is a oaDesignObject
obj.isDevice()
obj.isStdDevice()
绑定状态: 已绑定
Python 调用: obj.isStdDevice()
This function determines if this object is an instance of one of the classes derived from the oaStdDevice class。 The function returns a boolean value of true if the oaDesignObject is a standard parasitic device。
Python 示例
from oapy._oa import _design
# assume obj is a oaDesignObject
obj.isStdDevice()
obj.isReducedModel()
绑定状态: 已绑定
Python 调用: obj.isReducedModel()
This function determines if this object is an instance of one of the classes derived from the oaReducedModel class。 The function returns a boolean value of true if the oaDesignObject is a reduced parasitic model。
Python 示例
from oapy._oa import _design
# assume obj is a oaDesignObject
obj.isReducedModel()
obj.isBlockObject()
绑定状态: 已绑定
Python 调用: obj.isBlockObject()
This function determines if this object lives in the block domain。 All objects that describe the physical hierarchy are block objects。 See oaBlockObject for more。
Python 示例
from oapy._oa import _design
# assume obj is a oaDesignObject
obj.isBlockObject()
obj.isModObject()
绑定状态: 已绑定
Python 调用: obj.isModObject()
This function determines if this object lives in the module domain。 All objects that describe the purely logical hierarchy are module objects。 See oaModObject for more。
Python 示例
from oapy._oa import _design
# assume obj is a oaDesignObject
obj.isModObject()
obj.isOccObject()
绑定状态: 已绑定
Python 调用: obj.isOccObject()
This function determines if this object lives in the occurrence domain。 All instance, net and terminal related objects in either the module domain or the block domain are reflected as corresponding objects in the occurrence domain。 The occurrence objects are unfolded so that there are distinct instances of them for every path thru the hierarchy to the object。 See oaOccObject for more。
Python 示例
from oapy._oa import _design
# assume obj is a oaDesignObject
obj.isOccObject()
obj.getDesign()
绑定状态: 已绑定
Python 调用: obj.getDesign()
This function returns the design that contains the oaDesignObject。 This returns the same value as oaObject::getDatabase , but this is more convenient where the object is known to be an oaDesignObject。
Python 示例
from oapy._oa import _design
# assume obj is a oaDesignObject
obj.getDesign()