RouteManagerImportMode Enumeration — NXOpen Python API Reference 12.0.0 documentation

# RouteManagerImportMode Enumeration

NXOpen.Routing.RouteManager.ImportMode is an alias for NXOpen.Routing.RouteManagerImportMode

class `NXOpen.Routing.``RouteManagerImportMode`

  Bases: `object`

  Route List import modes

  The following tables describes the effects of the various modes depending on the type (XML, HRN, CMP) of import.

  ++————–+—————+—————–+ +————+————++ Deletes | Replaces data | Preserves | | | Import || unmatched | in matching | existing | | ImportMode | File Type || elements | elements | connectors | +============+============++==============+===============+=================+ | Update | XML || Yes | Yes | No | | | Legacy CMP || No | Yes | Yes | | | Legacy HRN || Yes(1) | Yes(2) | Yes | +————+————++————–+—————+—————–+ | Merge | XML || No | Yes | Yes | | | Legacy CMP || No | Yes | Yes | | | Legacy HRN || No | Yes(2) | Yes | +————+————++————–+—————+—————–+ | Append | XML || No | No | Yes | | | Legacy CMP || No | No | Yes | | | Legacy HRN || No | No | Yes | +————+————++————–+—————+—————–+

  ++————–+—————+—————–+——————+ +————+————++ May add new | May add new | May create | May create | | | Import || connectors | connections | duplicate | duplicate | | ImportMode | File Type || | | connector names | connection names | +============+============++==============+===============+=================+==================+ | Update | XML || Yes | Yes | Yes(3) | Yes(3) | | | Legacy CMP || Yes | No | No | No | | | Legacy HRN || Yes | Yes | No | No | +————+————++————–+—————+—————–+——————+ | Merge | XML || Yes | Yes | Yes(3) | Yes(3) | | | Legacy CMP || Yes | No | No | No | | | Legacy HRN || Yes | Yes | No | No | +————+————++————–+—————+—————–+——————+ | Append | XML || Yes | Yes | Yes | Yes | | | Legacy CMP || Yes | No | Yes | No | | | Legacy HRN || Yes | Yes | No | Yes | +————+————++————–+—————+—————–+——————+

  ++————–+—————+—————–+ || Maintains | Maintains | Elements | || assignment | routing | matching | +————+————++ information | information | criterion | | | Import || for matching | for matching | | | ImportMode | File Type || connectors | connections | | +============+============++==============+===============+=================+ | Update | XML || Yes | Yes | GUID | | | Legacy CMP || Yes | Yes | Names(4) | | | Legacy HRN || Yes | Yes | Names(4) | +————+————++————–+—————+—————–+ | Merge | XML || Yes | Yes | GUID | | | Legacy CMP || Yes | Yes | Names(4) | | | Legacy HRN || Yes | Yes | Names(4) | +————+————++————–+—————+—————–+ | Append | XML || No | No | N/A | | | Legacy CMP || No | No | N/A | | | Legacy HRN || No | No | N/A | +————+————++————–+—————+—————–+

  > 1. Connection list data only (no connectors)
  > 2. Connector data is not updated
  > 3. Since matches are made using GUIDs only, no attempt is made to prevent duplicate names
  > 4. Technically, legacy import does check GUIDs as well but using GUID is not practical with legacy import

  Enum Members

  Enum Member | Enum Member Description
  --- | ---
  Update | Update existing objects with data from the imported objects.
  Merge | Update existing objects with data from the imported objects.
  Append | Create the imported objects as new objects.

  `ValueOf`()

    Returns enum member equivalent to the value passed. Useful for bit operations of enum members.

    Signature `ValueOf(value)`

    Parameters: | value – Any integer value or bit operation result of enum members:type value: int:returns: Enum member equivalent to the value passed.
    Return type: | Enum Member type.

    New in version NX9.0.1.

    License requirements: None.