LineCollection Class

class NXOpen.LineCollection

Bases: object

Represents a collection of lines.

To obtain an instance of this class, refer to NXOpen.BasePart

New in version NX3.0.0.

Methods

Method Description
CreateFaceAxis Create a Axis line base on a Cylider, Cone, Torus or Revolve face
CreateFaceAxisNoExtension Create a Axis line base on a Cylider, Cone, Torus or Revolve face.
CreateFaceAxisNoParentLoadRequired Create a Axis line base on a Cylider, Cone, Torus or Revolve face.
FindObject Finds the NXOpen.Line with the given identifier as recorded in a journal.

Method Detail

CreateFaceAxis

LineCollection.CreateFaceAxis

Create a Axis line base on a Cylider, Cone, Torus or Revolve face

Signature CreateFaceAxis(face, updateOption)

Parameters:
Returns:

Return type:

NXOpen.Line

New in version NX4.0.0.

License requirements: solid_modeling (“SOLIDS MODELING”) OR drafting (“DRAFTING”) OR geometric_tol (“GDT”)

CreateFaceAxisNoExtension

LineCollection.CreateFaceAxisNoExtension

Create a Axis line base on a Cylider, Cone, Torus or Revolve face.

Do not extend the line.

Signature CreateFaceAxisNoExtension(face, updateOption)

Parameters:
Returns:

Return type:

NXOpen.Line

New in version NX7.5.0.

License requirements: solid_modeling (“SOLIDS MODELING”) OR drafting (“DRAFTING”) OR geometric_tol (“GDT”)

CreateFaceAxisNoParentLoadRequired

LineCollection.CreateFaceAxisNoParentLoadRequired

Create a Axis line base on a Cylider, Cone, Torus or Revolve face.

If the parent (source) part is not the same part that the axis is created in, the parent part is not fully loaded during the creation.

Signature CreateFaceAxisNoParentLoadRequired(face, updateOption)

Parameters:
Returns:

Return type:

NXOpen.Line

New in version NX6.0.0.

License requirements: solid_modeling (“SOLIDS MODELING”) OR drafting (“DRAFTING”) OR geometric_tol (“GDT”)

FindObject

LineCollection.FindObject

Finds the NXOpen.Line with the given identifier as recorded in a journal.

An object may not return the same value as its JournalIdentifier in different versions of the software. However newer versions of the software should find the same object when FindObject is passed older versions of its journal identifier. In general, this method should not be used in handwritten code and exists to support record and playback of journals.

An exception will be thrown if no object can be found with the given journal identifier.

Signature FindObject(journalIdentifier)

Parameters:journalIdentifier (str) – Journal identifier of the line
Returns:
Return type:NXOpen.Line

New in version NX3.0.0.

License requirements: None.