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.

  1. The associativity at index 3 stores the following -
  1. Fold location for the folded radius dimension
  2. 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.

Methods

Method Description
Dispose Frees the object from memory.

Property Detail

Angle

Associativity.Angle

Returns or sets the angle.

Required for following line option - NXOpen.Annotations.AssociativityLineOption.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

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 - NXOpen.Annotations.AssociativityLineOption.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

Parameters:firstDefinitionPoint (NXOpen.Point3d) – New first definition point in absolute coordinates

New 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

Parameters:object (NXOpen.NXObject) – New first associativity object

New 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

Parameters:lineOption (NXOpen.Annotations.AssociativityLineOption) – New line option

New 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

Parameters:objectView (NXOpen.View) – New object view

New 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

Parameters:pickPoint (NXOpen.Point3d) – New pick point in absolute coordinates

New 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

Parameters:pointOption (NXOpen.Annotations.AssociativityPointOption) – New point option

New 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 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

Parameters:secondDefinitionPoint (NXOpen.Point3d) – New second definition point in absolute coordinates

New 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

Parameters:object2 (NXOpen.NXObject) – New second associativity object

New in version NX4.0.0.

License requirements: None.

Method Detail

Dispose

Associativity.Dispose

Frees the object from memory.

After this method is called, it is illegal to use the object. In .NET, this method is automatically called when the object is deleted by the garbage collector.

Signature Dispose()

New in version NX4.0.0.

License requirements: None.