oaAssignAssignment
模块: oapy._oa._design
导入: from oapy._oa import _design
概览
oaAssignAssignment 在 oapy 中可用,可通过 _design 模块访问。
本页汇总 oaAssignAssignment 当前在 oapy 中可用的 Python 接口。
详细说明
The oaAssignAssignment class implements a connection assignment that specifies assignment definition values to replace those specified in a corresponding oaConnectDef or a previously encountered oaAssignAssignment。 Applications interpreting the connectivity continue searching up the design hierarchy for a connection assignment with the name specified in the oaAssignAssignment。 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 oaAssignAssignment 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.oaAssignAssignment.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 oaAssignAssignment
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 oaAssignAssignment
obj.setAssignmentDef(aDef)
_design.oaAssignAssignment.create(inst, name, aDef)
绑定状态: 已绑定
Python 调用: _design.oaAssignAssignment.create(inst, name, aDef)
This function creates an oaAssignAssignment 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 oaNetConnectDef or oaTermConnectDef object。assignmentDef: Specifies the assignment definition values to replace those of a corresponding oaNetConnectDef or oaTermConnectDef object。
异常
oacInstHasAssignment。oacInvalidAssignmentDef。
Python 示例
from oapy._oa import _design
_design.oaAssignAssignment.create(inst, name, aDef)