首页 / base / oaObject

oaObject

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

概览

oaObjectoapy 中可用,可通过 _base 模块访问。

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

详细说明

The oaObject class is an abstract class that is the base class for all persistent objects managed by the OpenAccess code。 All managed objects in design databases, technology databases, and library databases are derived from oaObject。 The oaObject class implements utility functions that apply generically to managed objects。 See the Managed Classes section in the Programmers Guide for more discussion。

方法总览

状态 Python 调用
obj.isValid()
obj.getType()
obj.getDomain()
obj.isTech()
obj.isDesign()
obj.isDM()
obj.isDMData()
obj.isWafer()
obj.isSession()
obj.isProp()
obj.isGroup()
obj.isGroupMember()
obj.isAppObject()
obj.isConstraint()
obj.isConstraintGroup()
obj.isConstraintGroupMem()
obj.isConstraintGroupHeader()
obj.isConstraintParam()
obj.isValue()
obj.isViaVariant()
obj.isViaVariantHeader()
obj.hasProp()
obj.inGroup()
obj.hasAppDef()
obj.hasConstraintGroup()
obj.hasAssociate()
obj.getConstraintGroup()
obj.getDatabase()
obj.getProps()
obj.getAppDefs()
obj.getGroupMems()
obj.getGroupLeaders()
obj.getGroupsOwnedBy()

方法说明

obj.isValid()

绑定状态: 已绑定

Python 调用: obj.isValid()

This function verifies that a pointer is a valid database object and that it is safe to use this pointer with other database object member functions。 NULL values and pointers that are outside of the memory used by OpenAccess return false。 Misaligned pointers return false。 A pointer to an object that is deleted might or might not return false。 If the location is re-used for another OpenAccess object, the function returns true。 If the space is still unused, this function returns false。 The isValid() function performs a hash table lookup as part of the validation process。 Although the performance is as fast as possible, applications should not call this function more than necessary。

Python 示例

from oapy._oa import _base

# assume obj is a oaObject
obj.isValid()

obj.getType()

绑定状态: 已绑定

Python 调用: obj.getType()

This function returns the detailed type of the object as an oaTypeEnum value。

Python 示例

from oapy._oa import _base

# assume obj is a oaObject
obj.getType()

obj.getDomain()

绑定状态: 已绑定

Python 调用: obj.getDomain()

This function returns the domain of the object。 For objects in Designs the domain specifies if it is part of the block, module, or occurrence hierarchies。 Other design objects and all objects in other databases return oacNoDomain。 See oaDomain for more information。 在 oaFeature、oaParasiticNetwork 和 oaReducedModel 中重新实现。

Python 示例

from oapy._oa import _base

# assume obj is a oaObject
obj.getDomain()

obj.isTech()

绑定状态: 已绑定

Python 调用: obj.isTech()

This function returns true if this object represents a technology database object; False otherwise。

Python 示例

from oapy._oa import _base

# assume obj is a oaObject
obj.isTech()

obj.isDesign()

绑定状态: 已绑定

Python 调用: obj.isDesign()

This function returns a boolean value that indicates if this object is contained in a design database (design)。

Python 示例

from oapy._oa import _base

# assume obj is a oaObject
obj.isDesign()

obj.isDM()

绑定状态: 已绑定

Python 调用: obj.isDM()

This function returns true if this object represents a design management object; False otherwise。

Python 示例

from oapy._oa import _base

# assume obj is a oaObject
obj.isDM()

obj.isDMData()

绑定状态: 已绑定

Python 调用: obj.isDMData()

This function returns a boolean indicating whether or not this object is a dmData object。

Python 示例

from oapy._oa import _base

# assume obj is a oaObject
obj.isDMData()

obj.isWafer()

绑定状态: 已绑定

Python 调用: obj.isWafer()

This function returns true if this object represents an object that belongs to the wafer database; False otherwise。

Python 示例

from oapy._oa import _base

# assume obj is a oaObject
obj.isWafer()

obj.isSession()

绑定状态: 已绑定

Python 调用: obj.isSession()

This function returns true if this object represents an object that belongs to the session database; False otherwise。

Python 示例

from oapy._oa import _base

# assume obj is a oaObject
obj.isSession()

obj.isProp()

绑定状态: 已绑定

Python 调用: obj.isProp()

This function returns a boolean value that indicates if this object is a property object。

Python 示例

from oapy._oa import _base

# assume obj is a oaObject
obj.isProp()

obj.isGroup()

绑定状态: 已绑定

Python 调用: obj.isGroup()

This function returns a boolean value that indicates if this object is a group object。

Python 示例

from oapy._oa import _base

# assume obj is a oaObject
obj.isGroup()

obj.isGroupMember()

绑定状态: 已绑定

Python 调用: obj.isGroupMember()

This function returns a boolean value that indicates if this object is a group member object。

Python 示例

from oapy._oa import _base

# assume obj is a oaObject
obj.isGroupMember()

obj.isAppObject()

绑定状态: 已绑定

Python 调用: obj.isAppObject()

This function returns a boolean value that indicates if this object is an extension object。

Python 示例

from oapy._oa import _base

# assume obj is a oaObject
obj.isAppObject()

obj.isConstraint()

绑定状态: 已绑定

Python 调用: obj.isConstraint()

This function returns a boolean indicating whether or not this object is a constraint。

Python 示例

from oapy._oa import _base

# assume obj is a oaObject
obj.isConstraint()

obj.isConstraintGroup()

绑定状态: 已绑定

Python 调用: obj.isConstraintGroup()

This function returns a boolean indicating whether or not this object is a constraint group。

Python 示例

from oapy._oa import _base

# assume obj is a oaObject
obj.isConstraintGroup()

obj.isConstraintGroupMem()

绑定状态: 已绑定

Python 调用: obj.isConstraintGroupMem()

This function returns a boolean indicating whether or not this object is a constraint group member。

Python 示例

from oapy._oa import _base

# assume obj is a oaObject
obj.isConstraintGroupMem()

obj.isConstraintGroupHeader()

绑定状态: 已绑定

Python 调用: obj.isConstraintGroupHeader()

This function returns a boolean indicating whether or not this object is a constraint group header。

Python 示例

from oapy._oa import _base

# assume obj is a oaObject
obj.isConstraintGroupHeader()

obj.isConstraintParam()

绑定状态: 已绑定

Python 调用: obj.isConstraintParam()

This function returns a boolean indicating whether or not this object is a constraint parameter。

Python 示例

from oapy._oa import _base

# assume obj is a oaObject
obj.isConstraintParam()

obj.isValue()

绑定状态: 已绑定

Python 调用: obj.isValue()

This function returns true if this object is a value; False otherwise。

Python 示例

from oapy._oa import _base

# assume obj is a oaObject
obj.isValue()

obj.isViaVariant()

绑定状态: 已绑定

Python 调用: obj.isViaVariant()

This function returns true if the object is of type oaStdViaVariant or oaCustomViaVariant ; Otherwise false is returned。

Python 示例

from oapy._oa import _base

# assume obj is a oaObject
obj.isViaVariant()

obj.isViaVariantHeader()

绑定状态: 已绑定

Python 调用: obj.isViaVariantHeader()

This function returns true if this object is an oaViaVariantHeader ; False otherwise。

Python 示例

from oapy._oa import _base

# assume obj is a oaObject
obj.isViaVariantHeader()

obj.hasProp()

绑定状态: 已绑定

Python 调用: obj.hasProp()

This function returns a Boolean indicating whether or not this object has any properties attached to it。

Python 示例

from oapy._oa import _base

# assume obj is a oaObject
obj.hasProp()

obj.inGroup()

绑定状态: 已绑定

Python 调用: obj.inGroup()

This function returns a boolean value that indicates if this object is in any group。

Python 示例

from oapy._oa import _base

# assume obj is a oaObject
obj.inGroup()

obj.hasAppDef()

绑定状态: 已绑定

Python 调用: obj.hasAppDef()

This function returns a Boolean indicating whether or not this object has any appDef values associated with it。

Python 示例

from oapy._oa import _base

# assume obj is a oaObject
obj.hasAppDef()

obj.hasConstraintGroup()

绑定状态: 已绑定

Python 调用: obj.hasConstraintGroup()

This function returns a boolean indicating whether or not there are constraints associated with this object。

Python 示例

from oapy._oa import _base

# assume obj is a oaObject
obj.hasConstraintGroup()

obj.hasAssociate()

绑定状态: 已绑定

Python 调用: obj.hasAssociate()

This function returns a boolean value that indicates if this object is associated with a textDisplay object。

Python 示例

from oapy._oa import _base

# assume obj is a oaObject
obj.hasAssociate()

obj.getConstraintGroup()

绑定状态: 已绑定

Python 调用: obj.getConstraintGroup()

This function returns the built-in constraint group for this object。 If no constraint group previously existed, one will be created by this call。 If the application is only reading existing constraints, it is more efficient to call hasConstraintGroup() first to determine whether a group exists before making this call。 This constraint group is used to hold constraints that are applied directly to the given object。 Constraints are applied by putting them in this group with oaConstraintGroupMem::create() 。 Both individual constraints and constraint groups may be placed in this constraint group。 Objects in design, tech, and wafer databases have built-in constraint groups except that parasitic objects do not support them。 DM and Session objects cannot have them。 在 oaConstraintGroupMem 和 oaConstraintGroupHeader 中重新实现。

Python 示例

from oapy._oa import _base

# assume obj is a oaObject
obj.getConstraintGroup()

obj.getDatabase()

绑定状态: 已绑定

Python 调用: obj.getDatabase()

This function returns a pointer to the database containing this object。 The returned object will belong to one of the following classes: oaDesign , oaTech , oaWafer , oaLib or oaSession 。 When called on one of these database classes, getDatabase() will return a pointer to the object it is called on。

异常

  • oacNoObjectDB

Python 示例

from oapy._oa import _base

# assume obj is a oaObject
obj.getDatabase()

obj.getProps()

绑定状态: 已绑定

Python 调用: obj.getProps()

This function returns a collection of properties on this object。

Python 示例

from oapy._oa import _base

# assume obj is a oaObject
obj.getProps()

obj.getAppDefs()

绑定状态: 已绑定

Python 调用: obj.getAppDefs()

This function returns the collection of oaAppDef extensions defined on this object。

Python 示例

from oapy._oa import _base

# assume obj is a oaObject
obj.getAppDefs()

obj.getGroupMems()

绑定状态: 已绑定

Python 调用: obj.getGroupMems()

This function returns a collection of the oaGroupMember objects that represent the relationship between this object and each of the groups to which this object belongs。

异常

  • oacInvalidGroupObject: If called for an oaObject that is a database class because a database cannot belong to a group。

Python 示例

from oapy._oa import _base

# assume obj is a oaObject
obj.getGroupMems()

obj.getGroupLeaders()

绑定状态: 已绑定

Python 调用: obj.getGroupLeaders()

This function returns a collection of oaGroupMember objects that represent the relationship between this object and each of the groups of which this object is a leader。

Python 示例

from oapy._oa import _base

# assume obj is a oaObject
obj.getGroupLeaders()

obj.getGroupsOwnedBy()

绑定状态: 已绑定

Python 调用: obj.getGroupsOwnedBy()

This function returns a collection of the oaGroups to which this object belongs。 In other words, it may be helpful to think of the name of this function as "get the Groups this object is Owned By." Since the database classes cannot belong to groups, it is illegal to call this on an oaDesign , oaTech , oaWafer or oaLib 。

异常

  • oacInvalidGroupObject: If called for an oaObject that is a database class because a database cannot belong to a group。

Python 示例

from oapy._oa import _base

# assume obj is a oaObject
obj.getGroupsOwnedBy()