HarnessDeviceCollection Class — NXOpen Python API Reference 12.0.0 documentation

# HarnessDeviceCollection Class

class `NXOpen.Routing.Electrical.``HarnessDeviceCollection`

  Bases: `object`

  Represents a collection of `Routing.Electrical.HarnessDevice` objects.

  To obtain an instance of this class, refer to `NXOpen.Routing.RouteManager`

  New in version NX4.0.2.

# Methods

Method | Description
--- | ---
CreateHarnessDevice | Creates `Routing.Electrical.HarnessDevice`.
GetHarnessSingleDevices | Get harnesses

# Method Detail

## CreateHarnessDevice

`HarnessDeviceCollection.``CreateHarnessDevice`

  Overloaded method CreateHarnessDevice

  - `CreateHarnessDevice()`
  - `CreateHarnessDevice(harnessName)`

  `-------------------------------------`

  Creates `Routing.Electrical.HarnessDevice`.

  Signature `CreateHarnessDevice()`

  Returns: |
  Return type: | `NXOpen.Routing.Electrical.HarnessDevice`

  New in version NX4.0.2.

  License requirements: routing_advanced (“Routing Advanced”), routing_base (“Routing Basic”)

  `-------------------------------------`

  Creates `Routing.Electrical.HarnessDevice` with given name.

  Signature `CreateHarnessDevice(harnessName)`

  Parameters: | harnessName (str) –
  Returns: |
  Return type: | `NXOpen.Routing.Electrical.HarnessDevice`

  New in version NX5.0.0.

  License requirements: routing_advanced (“Routing Advanced”), routing_base (“Routing Basic”)

  `-------------------------------------`

## GetHarnessSingleDevices

`HarnessDeviceCollection.``GetHarnessSingleDevices`

  Get harnesses

  Signature `GetHarnessSingleDevices()`

  Returns: |
  Return type: | list of `NXOpen.Routing.Electrical.HarnessDevice`

  New in version NX4.0.2.

  License requirements: routing_advanced (“Routing Advanced”), routing_base (“Routing Basic”)