LineComponent Class

class NXOpen.Annotations.LineComponent

Bases: NXOpen.TransientObject

Represents a single line in an annotation and can be queried for information about that line.

This information includes the line type, the start point in absolute coordinates, and the end point in absolute coordinates. .. versionadded:: NX6.0.2

Properties

Property Description
EndPoint Returns the line end point in absolute coordinates.
Index Returns the line index.
StartPoint Returns the line start point in absolute coordinates.
Type Returns the line type.

Methods

Method Description
Dispose Free resources associated with the line component.

Enumerations

LineComponentLineType Enumeration the line type

Property Detail

EndPoint

LineComponent.EndPoint

Returns the line end point in absolute coordinates.

If the annotation is on a drawing, the end point is returned in drawing space. If the annotation is on the model, the end point is returned in model space.

-------------------------------------

Getter Method

Signature EndPoint

Returns:the line end point in absolute coordinates
Return type:NXOpen.Point3d

New in version NX6.0.2.

License requirements: None.

Index

LineComponent.Index

Returns the line index.

-------------------------------------

Getter Method

Signature Index

Returns:the line index
Return type:int

New in version NX9.0.0.

License requirements: None.

StartPoint

LineComponent.StartPoint

Returns the line start point in absolute coordinates.

If the annotation is on a drawing, the start point is returned in drawing space. If the annotation is on the model, the start point is returned in model space.

-------------------------------------

Getter Method

Signature StartPoint

Returns:the line start point in absolute coordinates
Return type:NXOpen.Point3d

New in version NX6.0.2.

License requirements: None.

Type

LineComponent.Type

Returns the line type.

-------------------------------------

Getter Method

Signature Type

Returns:the line type
Return type:NXOpen.Annotations.LineComponentLineType

New in version NX6.0.2.

License requirements: None.

Method Detail

Dispose

LineComponent.Dispose

Free resources associated with the line component.

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 NX6.0.2.

License requirements: None.