• InfoWorks WS Pro

Updating objects with imported data

Update objects in a model with imported data.


Tutorial resources

These downloadable resources will be used to complete this tutorial:

iwsp2023M08U01_Upd_Obj_w_Imp_Dt.zip

Step-by-step Guide

The Open Data Import Centre contains many ways to control data imports. For example, it can be used to update the diameter or material of pipes in a network without adding or removing them. Users often have to work with files that have new pipes, or pipes that have changed ID.

To import a shapefile that contains pipe data from a GIS system:

  1. From the Model Group window, under BridgeTown, drag the BridgeNet network and drop it into the workspace.
  2. Select Network > Import > Open Data Import Centre (Network).

The InfoWorks WS Pro interface, with the Network menu expanded, Import selected, and in the flyout, Open Data Import Centre selected and called out; and the network GeoPlan open in the workspace.

  1. To indicate the type of data you are importing, in the open Data Import Centre dialog box, in the Table To Import Data Into group box, expand the drop-down and select Pipe.
  2. In the Data Source group box, expand the Source Type: drop-down and pick Raw Shape File.
  3. Next to the File box, click the Browse () button to open a file browser.

The Open Data Import Centre dialog box, Data Source group box, with the Browse (…) button selected and called out.

  1. Navigate to the Data folder.
  2. Open the Pipes folder.
  3. Select pipe.shp.
  4. Click Open.

In the file browser window, the Pipes folder with the pipe.shp file highlighted and Open selected.

  1. In the Flag Behaviour group box, expand the drop-down next to Otherwise, set flag on imported fields to: and pick #I. (The “I” stands for “imported”)
  2. Enable Only flag genuine changes to data values.
  3. In the Updating and Delete Options group box, make sure Overwrite is enabled, which means we will overwrite any existing values in our model, if they exist in the imported file.
  4. Select Update based on asset ID.
  5. Select Only update existing objects.

The Open Data Import centre dialog box, Updating and Delete Options configured, and under Objects Fields, Asset ID in red text, highlighted in red.

IMPORTANT: Notice that when you check Update based on Asset ID, the Asset ID row in the Field Mapping Configuration turns red. This indicates that this field is the key, which will be used to match records in the import file.

  1. Click the Auto-Map button.

The diameter and material rows in the Field Mapping Configuration are now assigned import fields, because the field names in the import file match WS Pro. However, the ID field in the import file is named something different.

  1. In the Asset ID row, under Import Fields, expand the drop-down and select UID from the import file.
  2. Click Import.

The Open Data Import Centre dialog box with UID selected in the Asset ID import field, all other options configured, and Import selected.

The notification reports that many pipes were updated, meaning that this number of pipes matched the import file, not that this number of values were changed. You will verify this information below.

  1. Click OK.
  2. Close the Open Data Import Centre dialog box.

Now that the data has been imported, compare the changes:

  1. In the Model Group window, right-click the BridgeNet network, and select Compare.

In the Model Group window, the BridgeNet shortcut menu with Compare selected.

  1. In the Compare Object dialog box, enable Select changed objects.

The Compare Object dialog box with Select changed objects enabled and Show differences highlighted.

  1. Click Show differences to open a list of changes.

The Differences window with a list of changes in pipe objects.

  1. Switch to the GeoPlan to see the pipes that were updated highlighted in red.

The GeoPlan with the updated pipes highlighted in red.

  1. Commit the changes you made to the network.