NodeCollection Class — NXOpen Python API Reference 12.0.0 documentation

# NodeCollection Class

class `NXOpen.Diagramming.``NodeCollection`

  Bases: `object`

  Represents a collection of Node.

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

  New in version NX10.0.0.

# Methods

Method | Description
--- | ---
CreateNodeBuilder | Creates a `NXOpen.Diagramming.NodeBuilder`.
FindObject | Finds the `NXOpen.Diagramming.Node` with the given identifier as recorded in a journal.

# Method Detail

## CreateNodeBuilder

`NodeCollection.``CreateNodeBuilder`

  Creates a `NXOpen.Diagramming.NodeBuilder`.

  Signature `CreateNodeBuilder(node)`

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

  New in version NX10.0.0.

  License requirements: None.

## FindObject

`NodeCollection.``FindObject`

  Finds the `NXOpen.Diagramming.Node` 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.Node` with this name.
  Return type: | `NXOpen.Diagramming.Node`

  New in version NX10.0.0.

  License requirements: None.