Copying Data Between Networks

Imagine the situation where a number of corrections are made on an original network. For example, the changes could include; changes to node positions, changes to flow direction and bends in links, removal of a duplicate link, and the extension of a catchment area.

This section of tutorial illustrates copying the modifications from one network to another one.

Note

This stage assumes that you have started InfoWorks ICM and that Master database, containing the ICM Basic Tutorial, is opened in the Explorer window, and shows the 'Langley Catchment Study' model group.

Two networks will be in the following procedure - 'Langley Data Copied (TUT)' and 'Langley to Edit (TUT)'.

To copy data between networks:

  1. Open the 'Langley Data Copied (TUT)' network. ClosedEither right-click the network in the Explorer window and select Open from the pop-up menu, or drag the network icon into the InfoWorks ICM main window. The ‘Langley Data Copied (TUT)’ network is now displayed in the GeoPlan window.
  2. Open the 'Langley to Edit (TUT)' network. ClosedThis is a modified network for which some changes have been implemented.
  1. Produce a report of the differences between the networks:
    1. Right-click the 'Langley to Edit (TUT)' network entry in the Explorer window.
    2. Select the Compare... option from the pop-up menu. The Comparison dialog is displayed showing the name of the current network at the top of the window.

      ClosedShow me

    3. Check the Differences from another network box to compare two different version controlled items. The Show pane is now enabled.
    4. Drag the 'Langley Data Copied (TUT)' network entry from the Explorer window into the Show box.
    5. Check the Select changed objects box.

      ClosedShow me

    6. Click the Show differences button. A Network differences text window is displayed listing the differences between the two networks and the changed objects are highlighted in the 'Langley to Edit (TUT)' network.

      ClosedShow me

  2. Save the selected objects to a new 'All Edited Objects' selection list. ClosedRight-click the 'Langley to Edit (TUT)' network in the GeoPlan, and select the Selection | Save selection... option from the pop-up menu. In the Save As... dialog, click the Selection List Group and then on 'All Edited Objects', and finally click the Save button.
  3. Copy the node data to the new network:
    1. Click the title bar of the 'Langley to Edit' network (to indicate that this is the network that you are working on). ClosedThe buttons on the toolbar are enabled in response to the network you are currently working on.
    2. Drag the 'All Edited Objects' selection list onto the 'Langley to Edit' network to select the edited nodes.
    3. Hold the CTRL key whilst clicking the (New nodes window) button on the Modelling Grid Windows toolbar to display the Nodes grid for the 'Langley to Edit' network. Or, alternatively, select the Grid windows | New nodes window from the Window menu.
    4. Drag the 'All Edited Objects' selection list again, but this time onto the 'Langley Data Copied' network to select these edited nodes.
    5. Display the Nodes grid for the 'Langley Data Copied' network whilst holding the CTRL key.
    6. Adjust the windows so that you can see both grids and use the Group network selections at top of grid option from the Grid menu so that the records for the selected nodes are at the top in both grids. Check that the Node IDs are in the same order.
    7. Change the column widths so that you can see the X and Y columns and freeze the Node ID columns. Some of the Y values and X values are different between networks for the selected nodes; the values that have changed (with the edited data flag) are shaded pale yellow (as set in the Editing Network Objects tutorial topic). See Working with Grids and Property Sheets for information about manipulating the grids.

      ClosedShow me

    8. On the 'Langley Data Copied (TUT)' node grid, select the X and Y column for the records with edited data flagged fields, right-click and select Copy from the pop-up menu.

      ClosedShow me

    9. On the 'Langley to Edit (TUT)' node grid, right-click the top X value and select Paste. The block of data is copied across.

      ClosedShow me

    10. Close both grids. ClosedClick the button in the top right-hand corner of each window.
  4. Make the changes to the links:
    Note

    The Links grid does not contain all the details that have been changed. Therefore, using the method described in Step 5, for copying data is not appropriate in this case. Instead, the links themselves need to be copied. However, to avoid duplicate links, the originals must be deleted first.

    1. Clear the current selection on both networks. ClosedClick the button to clear any current selection.
    2. Zoom in on link '44628901.1' on the 'Langley to Edit (TUT)' network (the link to which bends need to be added). ClosedYou can, for example, use the Find in GeoPlan option in the GeoPlan menu or click the (Find in GeoPlan) tool, to zoom onto the link. In the dialog, enter the link id, in this case, 44628901.1' and click the Find button, and the GeopPan will be centred on the specified link.

      ClosedShow me

    3. Use the (Select) tool to select only this link. ClosedRight-click the GeoPlan and choose Zoom to selection from the pop-up menu.
    4. Delete the selected link using the Selection operations | Delete all selected objects from the Selection menu.
    5. Delete link '44636401.2' (the link that was reversed). Closed Follow the instructions in Steps 6b.-6d. to delete link '44636401.2'.
    6. Use the GeoPlan tools to select the changed link on the 'Langley Data Copied (TUT)' network (links '44628901.1' and '44636401.2'). ClosedHolding the Ctrl key, select link '44636401.2'' (You may search for this link using the (Find in GeoPlan) tool first and then select both links using a combination of the (Select) tool and the Ctrl key of your keyboard).
    7. Copy the selected links using the Copy object(s) option in the Edit menu.
    8. Click the 'Langley to Edit' network and select the Paste append object(s) option in the Edit menu. The corrected links are added to the network.
  5. Produce a new report listing the differences between the networks:
    1. Right-click the 'Langley Data Copied (Tut)' network entry in the Explorer window and select the Compare... option from the pop-up menu. The Comparison dialog is then displayed.
    2. Check the Differences from another network box to compare two different version controlled items. The Show pane is now enabled.
    3. Drag the 'Langley Network (TUT)' network entry from the Explorer window into the Show box.
    4. Click the Show differences button. A Network differences text window is displayed that lists the differences between the two networks.
    5. Close the text window. ClosedClick the button in the top right-hand corner of the window.
  6. Close the 'Langley Data Copied (TUT)' GeoPlan window. ClosedClick the button in the top right-hand corner of the window.
  7. Commit the changes to the 'Langley to Edit (TUT)' in the network but do not validate it.
  8. Close the 'Langley Data Copied (TUT)' GeoPlan window. ClosedClick the button in the top right-hand corner of the window.

The original network now contains the corrections made in the edited network.

 

Back Back to flowchart

 


Using Grids

Copying Network Objects

Committing Your Changes