Associativity Class¶
-
class
NXOpen.Annotations.
Associativity
¶ Bases:
NXOpen.TransientObject
Represents an associativity object.
The associativity object describes how an annotation is attached to geometry. The associativities are specified at indices starting with 1. In most cases, the index corresponds to the order in which objects are selected to create an annotation. So, the associativity at index 1 specifies first object selectd, the associativity at index 2 specifies second object selected and so on...
Dimensions can only have associativities at indices {1, 2, 3}. Please note the following special cases for the dimension associativities -
1. For ordinate dimensions
NXOpen.Annotations.OrdinateDimension
, the associativity at index 1 stores the ordinate origin data.- The associativity at index 3 stores the following -
- Fold location for the folded radius dimension
- Margin data for the ordinate dimensions
3. Set the associativities at index 1 when creating chain and baseline dimensions. The associativity at index 2 and 3 are ignored.
To create a new instance of this class, use
NXOpen.Annotations.AnnotationManager.NewAssociativity
New in version NX4.0.0.
Properties¶
Property | Description |
---|---|
Angle | Returns or sets the angle. |
FirstDefinitionPoint | Returns or sets the first definition point. |
FirstObject | Returns or sets the first associativity object |
LineOption | Returns or sets the line option |
ObjectView | Returns or sets the object view. |
PickPoint | Returns or sets the pick point |
PointOption | Returns or sets the point option |
SecondDefinitionPoint | Returns or sets the second definition point. |
SecondObject | Returns or sets the second associativity object, if the annotation is associated to an intersection point. |
Property Detail¶
Angle¶
-
Associativity.
Angle
¶ Returns or sets the angle.
Required for following line option -
AnnotationsAssociativityLineOption.Angle
-------------------------------------
Getter Method
Signature
Angle()
Returns: Angle in radians Return type: float New in version NX4.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
Angle(angle)
Parameters: angle (float) – New angle in radians New in version NX4.0.0.
License requirements: None.
FirstDefinitionPoint¶
-
Associativity.
FirstDefinitionPoint
¶ Returns or sets the first definition point.
Required for following line options -
AnnotationsAssociativityLineOption.PointVector
-------------------------------------
Getter Method
Signature
FirstDefinitionPoint()
Returns: Firt definition point in absolute coordinates Return type: NXOpen.Point3d
New in version NX4.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
FirstDefinitionPoint(firstDefinitionPoint)
Parameters: firstDefinitionPoint ( NXOpen.Point3d
) – New first definition point in absolute coordinatesNew in version NX4.0.0.
License requirements: None.
FirstObject¶
-
Associativity.
FirstObject
¶ Returns or sets the first associativity object
-------------------------------------
Getter Method
Signature
FirstObject()
Returns: First associativity object Return type: NXOpen.NXObject
New in version NX4.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
FirstObject(object)
Parameters: object ( NXOpen.NXObject
) – New first associativity objectNew in version NX4.0.0.
License requirements: None.
LineOption¶
-
Associativity.
LineOption
¶ Returns or sets the line option
-------------------------------------
Getter Method
Signature
LineOption()
Returns: Line option Return type: NXOpen.Annotations.AssociativityLineOption
New in version NX4.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
LineOption(lineOption)
Parameters: lineOption ( NXOpen.Annotations.AssociativityLineOption
) – New line optionNew in version NX4.0.0.
License requirements: None.
ObjectView¶
-
Associativity.
ObjectView
¶ Returns or sets the object view.
Both the associativity objects must have the same view.
-------------------------------------
Getter Method
Signature
ObjectView()
Returns: Object view Return type: NXOpen.View
New in version NX4.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
ObjectView(objectView)
Parameters: objectView ( NXOpen.View
) – New object viewNew in version NX4.0.0.
License requirements: None.
PickPoint¶
-
Associativity.
PickPoint
¶ Returns or sets the pick point
-------------------------------------
Getter Method
Signature
PickPoint()
Returns: Pick point in absolute coordinates Return type: NXOpen.Point3d
New in version NX4.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
PickPoint(pickPoint)
Parameters: pickPoint ( NXOpen.Point3d
) – New pick point in absolute coordinatesNew in version NX4.0.0.
License requirements: None.
PointOption¶
-
Associativity.
PointOption
¶ Returns or sets the point option
-------------------------------------
Getter Method
Signature
PointOption()
Returns: Point option Return type: NXOpen.Annotations.AssociativityPointOption
New in version NX4.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
PointOption(pointOption)
Parameters: pointOption ( NXOpen.Annotations.AssociativityPointOption
) – New point optionNew in version NX4.0.0.
License requirements: None.
SecondDefinitionPoint¶
-
Associativity.
SecondDefinitionPoint
¶ Returns or sets the second definition point.
Required for following line options -
AnnotationsAssociativityLineOption.PointVector
-------------------------------------
Getter Method
Signature
SecondDefinitionPoint()
Returns: Second definition point in absolute coordinates Return type: NXOpen.Point3d
New in version NX4.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
SecondDefinitionPoint(secondDefinitionPoint)
Parameters: secondDefinitionPoint ( NXOpen.Point3d
) – New second definition point in absolute coordinatesNew in version NX4.0.0.
License requirements: None.
SecondObject¶
-
Associativity.
SecondObject
¶ Returns or sets the second associativity object, if the annotation is associated to an intersection point.
-------------------------------------
Getter Method
Signature
SecondObject()
Returns: Second associativity object Return type: NXOpen.NXObject
New in version NX4.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
SecondObject(object2)
Parameters: object2 ( NXOpen.NXObject
) – New second associativity objectNew in version NX4.0.0.
License requirements: None.