Associativity Class¶
-
class
NXOpen.Annotations.Associativity¶ Bases:
NXOpen.TransientObjectRepresents 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 -
NXOpen.Annotations.AssociativityLineOption.Angle-------------------------------------Getter Method
Signature
AngleReturns: Angle in radians Return type: float New in version NX4.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
AngleParameters: 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 -
NXOpen.Annotations.AssociativityLineOption.PointVector-------------------------------------Getter Method
Signature
FirstDefinitionPointReturns: Firt definition point in absolute coordinates Return type: NXOpen.Point3dNew in version NX4.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
FirstDefinitionPointParameters: 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
FirstObjectReturns: First associativity object Return type: NXOpen.NXObjectNew in version NX4.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
FirstObjectParameters: 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
LineOptionReturns: Line option Return type: NXOpen.Annotations.AssociativityLineOptionNew in version NX4.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
LineOptionParameters: 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
ObjectViewReturns: Object view Return type: NXOpen.ViewNew in version NX4.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
ObjectViewParameters: 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
PickPointReturns: Pick point in absolute coordinates Return type: NXOpen.Point3dNew in version NX4.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
PickPointParameters: 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
PointOptionReturns: Point option Return type: NXOpen.Annotations.AssociativityPointOptionNew in version NX4.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
PointOptionParameters: 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 -
NXOpen.Annotations.AssociativityLineOption.PointVector-------------------------------------Getter Method
Signature
SecondDefinitionPointReturns: Second definition point in absolute coordinates Return type: NXOpen.Point3dNew in version NX4.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
SecondDefinitionPointParameters: 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
SecondObjectReturns: Second associativity object Return type: NXOpen.NXObjectNew in version NX4.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
SecondObjectParameters: object2 ( NXOpen.NXObject) – New second associativity objectNew in version NX4.0.0.
License requirements: None.