• No results found

Creating a Model with ModelBuilder

In document WaterGEMS V8i User's Guide (Page 192-199)

Creating a Bentley WaterGEMS V8i Model from GIS Data

Step 1: Creating a Model with ModelBuilder

1. Start ArcCatalog and click the ModelBuilder button.

2. In the ModelBuilder Manager dialog box, click the New button. This starts the ModelBuilder Wizard.

3. Leave the Build New Model button selected. Click the Browse button and browse to the Program Files\Bentley\WaterGEMS\Lesson folder, then enter MyLesson 10_1 as the file name. Click Save. Click Next in the ModelBuilder Wizard.

4. Click the Select a Data Source type menu and select Shapefiles.

5. Click the Browse button, next to the Select your Data Source field, to open a Browse dialog box from which you can select the shapefiles.

6. Browse to the Program Files\Haestad\wtg\Lesson\Lesson Shapefiles folder.

7. Press <Ctrl> on your keyboard and click the Junction, Pipes, Pumps, Reserv, and Tanks shapefiles. All five shapefiles should now be highlighted, and the file-names should be displayed in the Name field of the Browse dialog box.

8. Click the Open button.

9. Select the Show Preview check box. The preview lets you look at the data that is contained within the shapefiles in a tabular format.

10. Click each of the tables displayed in the pane on the left side of the dialog box to change the actively displayed shapefile. After you finish reviewing the data, click the Next button.

11. Leave the setting in the Specify the Coordinate Unit of your data source drop-down list box at its default value of ft.

12. Select the Establish connectivity using spatial data check box. This sets Model-Builder to connect the pipes to the nodes that fall within the specified distance from the pipe endpoints.

This distance is determined by the value in the Tolerance field. Leave this value at the default of 1.00 ft.

13. Click the Next button.

14. For ModelBuilder, set what type of element is represented by each of the shape-files that were specified as data sources.

a. Highlight the Junction table in the pane on the left side of the dialog box.

b. On the right side of the dialog box, change the value in the Table Type drop-down list box to Pressure Junction. This selection activates the remainder of the controls that are applicable to the selected element type.

15. In the Key/Label field, select Label.

Since you are using shapefiles in this example, the X and Y fields are automati-cally set, because shapefiles inherently store spatial (coordinate) data. The bottom half of the Settings tab contains the Field Mapping table.

As you can see, none of the data contained within the shapefile relates to Bentley WaterGEMS V8i attributes (apart from Label, which will automatically be trans-ferred), so no field mappings should be set.

16. Repeat the preceding steps for the Pumps, Reserv, and Tanks tables (not Pipes).

Make sure you specify the appropriate element type for each connection in the Table Type field. Leave the Downstream Edge field for the Pump table set to

<none>.

17. Highlight Pipes in the pane on the left side of the dialog box.

18. On the right side of the dialog box, change the value in the Table Type drop-down list to Pressure Pipe.

19. In the Key/Label field, select Label. Since you previously chose to establish connectivity using spatial data, the Start and Stop nodes do not need to be defined.

20. In the Field Mapping table at the bottom of the dialog box, click the Diameter field to highlight it.

21. Click the Attribute drop-down list and select Diameter. This assigns the values contained within the Diameter column of the shapefile data source to the Diameter attribute of the pipes that will be created in the Bentley WaterGEMS V8i model.

22. Allow the default value of in. for the Unit field.

23. Click Next.

24. Now you are ready to create the new model. Click the Yes button under Would you like to forge a model now.

25. Click the Forge New Model button, then click the Finish button.

26. A dialog box will open, displaying ModelBuilder’s progress as it creates the model. When the model is finished, a Summary dialog box opens, detailing important statistics regarding the new model.

When you are finished reviewing the outcome of the ModelBuilder process, close the Summary and ModelBuilder Manager dialog boxes.

27. In the directory view on the left side of the ArcCatalog dialog box, highlight the WaterGEMS datastore you just created in ModelBuilder (MyLesson 8_1).

28. Click the WaterGEMS Modeler button.

29. WaterGEMS Modeler will start and automatically open the project that was highlighted in ArcCatalog. After the project loads, click the Zoom Extents button to center the model in the drawing pane.

30. It is a good idea to review the drawing for errors after creating a new model in ModelBuilder. Click Edit > Review Drawing.

31. In the Drawing Review dialog box, click the Select button and choose Nodes in Close Proximity.

32. In the dialog box that opens, accept the Tolerance default value of 3.00 ft. by clicking the OK button. A list of three elements should open. These elements are nodes that are 3 feet or less away from another node, which can be an indication that these are duplicated elements.

33. Click the Zoom drop-down list and select 100%.

34. Highlight J-151 and click the Go To button. This action centers the view on the highlighted element. As you can see, two nodes occupy nearly the same point.

35. Click and hold the left mouse button on one of these overlapping nodes and drag the mouse to move the node and the attached pipes (if you have clicked the node that is connected); in this way, you can determine which of the close-proximity nodes is actually connected to the network.

a. If you click and drag the junction that is connected, select File > Undo Move J-151.

b. Then, highlight J-800 and press Delete on your keyboard to remove the dupli-cated node.

36. Repeat these steps for the other nodes in the drawing review list, J-360 and J-441.

37. In the Drawing Review dialog box, click the Select button and choose Orphaned Nodes. The list will now display all of the nodes that are not connected to a pipe.

In this case, you see that J-796, J-797, and J-798 fall into this category.

38. Highlight J-796 in the Drawing Review element list and click the Go To button.

39. Click on J-796 and press the Delete key on your keyboard to remove this discon-nected node. Repeat this step for J-797 and J-798.

40. Click File > Save As.

41. The dialog box should already be open in the Program

Files\Haestad\wtg\Lesson folder. If not, browse to the correct folder and save the file as MyLesson 8_2.

See Step 2: Removing Unnecessary Model Elements Using Skelebrator on page 2-177.

In document WaterGEMS V8i User's Guide (Page 192-199)

Related documents