ConnectorDeviceCollection Class — NXOpen Python API Reference 12.0.0 documentation

# ConnectorDeviceCollection Class

class `NXOpen.Routing.Electrical.``ConnectorDeviceCollection`

  Bases: `object`

  Represents a collection of `NXOpen.Routing.Electrical.ConnectorDevice` (CD) objects.

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

  New in version NX4.0.2.

# Methods

Method | Description
--- | ---
AutoAssignConnectors | Auto assignment is done using one of the three matching methods, Part Name, Component Name or Attribute.
CreateConnectorDevice | Creates a `NXOpen.Routing.Electrical.ConnectorDevice`.
GetConnectorSingleDevices | Get connectors from the work part.
GetEquipmentSingleDevices | Get equipment from the work part.

# Method Detail

## AutoAssignConnectors

`ConnectorDeviceCollection.``AutoAssignConnectors`

  Auto assignment is done using one of the three matching methods, Part Name, Component Name or Attribute.

  Signature `AutoAssignConnectors(connectors)`

  Parameters: | connectors (list of `NXOpen.Routing.Electrical.ConnectorDevice`) –

  New in version NX4.0.2.

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

## CreateConnectorDevice

`ConnectorDeviceCollection.``CreateConnectorDevice`

  Overloaded method CreateConnectorDevice

  - `CreateConnectorDevice(connectorType, componentName)`
  - `CreateConnectorDevice(harnessDevice, equipmentName, connectorName, connectorType)`

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

  Creates a `NXOpen.Routing.Electrical.ConnectorDevice`.

  Signature `CreateConnectorDevice(connectorType, componentName)`

  Parameters:

  - connectorType (`NXOpen.Routing.Electrical.ConnectorDeviceComponentType`) –
  - componentName (str) –

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

  New in version NX4.0.2.

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

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

  Finds or Creates a `NXOpen.Routing.Electrical.ConnectorDevice` for given equipmentName and or connectorName. Builds `NXOpen.Routing.Electrical.ElectricalDeviceRelationship` between equipment and connector, if equipmentName and connectorName are not None. Adds connector to harnessDevice, if connectorName and harnessDevice are not None.

  Signature `CreateConnectorDevice(harnessDevice, equipmentName, connectorName, connectorType)`

  Parameters:

  - harnessDevice (`NXOpen.Routing.Electrical.HarnessDevice`) – can be Electrical.HarnessDevice.NULL
  - equipmentName (str) – can be None if connectorName is not None
  - connectorName (str) – can be None if equipmentName is not None
  - connectorType (`NXOpen.Routing.Electrical.ConnectorDeviceComponentType`) –

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

  New in version NX5.0.0.

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

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

## GetConnectorSingleDevices

`ConnectorDeviceCollection.``GetConnectorSingleDevices`

  Get connectors from the work part.

  Signature `GetConnectorSingleDevices()`

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

  New in version NX4.0.2.

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

## GetEquipmentSingleDevices

`ConnectorDeviceCollection.``GetEquipmentSingleDevices`

  Get equipment from the work part.

  Signature `GetEquipmentSingleDevices()`

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

  New in version NX4.0.2.

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