LeaderLineCollection Class — NXOpen Python API Reference 12.0.0 documentation

# LeaderLineCollection Class

class `NXOpen.Diagramming.``LeaderLineCollection`

  Bases: `object`

  Represents a collection of leader line.

  To obtain an instance of this class, refer to `NXOpen.Diagramming.DiagrammingManager`

  New in version NX10.0.0.

# Methods

Method | Description
--- | ---
CreateLeaderLineBuilder | Creates a `NXOpen.Diagramming.LeaderLineBuilder`.
FindObject | Finds the `NXOpen.Diagramming.LeaderLine` with the given identifier as recorded in a journal.

# Method Detail

## CreateLeaderLineBuilder

`LeaderLineCollection.``CreateLeaderLineBuilder`

  Creates a `NXOpen.Diagramming.LeaderLineBuilder`.

  Signature `CreateLeaderLineBuilder(leaderLine)`

  Parameters: | leaderLine (`NXOpen.Diagramming.LeaderLine`) – `NXOpen.Diagramming.LeaderLine` to be edited, if None then create a new one
  Returns: |
  Return type: | `NXOpen.Diagramming.LeaderLineBuilder`

  New in version NX10.0.0.

  License requirements: None.

## FindObject

`LeaderLineCollection.``FindObject`

  Finds the `NXOpen.Diagramming.LeaderLine` with the given identifier as recorded in a journal.

  An exception will be thrown if no object can be found with given name.

  Signature `FindObject(journalIdentifier)`

  Parameters: | journalIdentifier (str) – Identifier to be found
  Returns: | `NXOpen.Diagramming.LeaderLine` with this name.
  Return type: | `NXOpen.Diagramming.LeaderLine`

  New in version NX10.0.0.

  License requirements: None.