PortAssociation Class¶
-
class
NXOpen.Motion.
PortAssociation
¶ Bases:
NXOpen.TaggedObject
,NXOpen.GeometricUtilities.IComponentBuilder
Represents a
Motion.PortAssociation
.This class contains the basic port information needed by InputPortAssociation and OutputPortAssociation items .. versionadded:: NX11.0.0
Properties¶
Property | Description |
---|---|
Name | Returns or sets the mechatronics port name |
Offset | Returns the offset |
ScaleFactor | Returns the scale factor |
Tag | Returns the Tag for this object. |
Methods¶
Method | Description |
---|---|
Validate | Validate whether the inputs to the component are sufficient for commit to be called. |
Property Detail¶
Name¶
-
PortAssociation.
Name
¶ Returns or sets the mechatronics port name
-------------------------------------
Getter Method
Signature
Name
Returns: Return type: str New in version NX11.0.0.
License requirements: mechanisms (“MECHANISMS”)
-------------------------------------
Setter Method
Signature
Name
Parameters: name (str) – New in version NX11.0.0.
License requirements: mechanisms (“MECHANISMS”)
Offset¶
-
PortAssociation.
Offset
¶ Returns the offset
-------------------------------------
Getter Method
Signature
Offset
Returns: Return type: NXOpen.Expression
New in version NX11.0.0.
License requirements: mechanisms (“MECHANISMS”)
ScaleFactor¶
-
PortAssociation.
ScaleFactor
¶ Returns the scale factor
-------------------------------------
Getter Method
Signature
ScaleFactor
Returns: Return type: NXOpen.Expression
New in version NX11.0.0.
License requirements: mechanisms (“MECHANISMS”)
Method Detail¶
Validate¶
-
PortAssociation.
Validate
¶ Validate whether the inputs to the component are sufficient for commit to be called.
If the component is not in a state to commit then an exception is thrown. For example, if the component requires you to set some property, this method will throw an exception if you haven’t set it. This method throws a not-yet-implemented NXException for some components.
Signature
Validate()
Returns: Was self validation successful Return type: bool New in version NX3.0.1.
License requirements: None.