oaModAssignAssignment
模块: oapy._oa._design
导入: from oapy._oa import _design
概览
oaModAssignAssignment 在 oapy 中可用,可通过 _design 模块访问。
本页汇总 oaModAssignAssignment 当前在 oapy 中可用的 Python 接口。
详细说明
The oaModAssignAssignment class implements a connection assignment that specifies assignment definition values to replace those specified in a corresponding oaModConnectDef or a previously encountered oaModAssignAssignment。 Applications interpreting the connectivity continue searching up the design hierarchy for a connection assignment with the name specified in the oaModAssignAssignment。 If none is found, the assignment value is the default net name。 This type of connection assignment is useful for integrating a block of intellectual property that contain connection definition。 An oaModAssignAssignment can be used to insure that connectivity traversal applications search for connection assignments consistently in the entire design hierarchy。
方法总览
| 状态 | Python 调用 |
|---|---|
| ✅ | obj.getAssignmentDef(aDef) |
| ✅ | obj.setAssignmentDef(aDef) |
| ✅ | _design.oaModAssignAssignment.create(inst, name, aDef) |
方法说明
obj.getAssignmentDef(aDef)
绑定状态: 已绑定
Python 调用: obj.getAssignmentDef(aDef)
This function retrieves the data associated with this assignment and returns it in the assignmentDef argument。
Python 示例
from oapy._oa import _design
# assume obj is a oaModAssignAssignment
obj.getAssignmentDef(aDef)
obj.setAssignmentDef(aDef)
绑定状态: 已绑定
Python 调用: obj.setAssignmentDef(aDef)
This function sets the data for this assignment from the specified assignmentDef。
异常
oacInvalidAssignmentDef。
Python 示例
from oapy._oa import _design
# assume obj is a oaModAssignAssignment
obj.setAssignmentDef(aDef)
_design.oaModAssignAssignment.create(inst, name, aDef)
绑定状态: 已绑定
Python 调用: _design.oaModAssignAssignment.create(inst, name, aDef)
This function creates an oaModAssignAssignment with the specified attributes on the given instance。
参数
inst: The instance on which to create the connection assignment。name: The name to give to this assignment。 This name should correspond to the lookup name specified in the assignment definition of an oaModNetConnectDef or oaModTermConnectDef object。assignmentDef: Specifies the assignment definition values to replace those of a corresponding oaModNetConnectDef or oaModTermConnectDef object。
异常
oacInstHasAssignment。oacInvalidAssignmentDef。
Python 示例
from oapy._oa import _design
_design.oaModAssignAssignment.create(inst, name, aDef)