How to set the default graph property


 Product(s):WaterGEMS, WaterCAD, HAMMER, SewerGEMS, SewerCAD, StormCAD, CivilStorm, PondPack
 Version(s):Varies
 Area:Output and Reporting

Introduction

When creating a graph, each element type will have a default property (or multiple) selected.

This article explains how to customize which properties will be selected by default when creating a graph of an element.

Steps to Accomplish

1. Decide what changes to make. For this example, the default pipe graph selection will be changed from Flow to Flow (Absolute) and Velocity.


2. Use Query Builder to determine the FieldName that corresponds with the property you want to be selected by default.

a. To display the Queries dialog, open the View menu and select Queries.
b. In the Queries dialog, click the New icon and select Query.
c. Select the element type and click OK.
d. Double-click on the property to paste the FieldName in the bottom pane.
e. Note the property's FieldName

3. Close the application

4. Go to the following folder:

C:\Users\[UserName]\AppData\Local\Bentley\[ProgramName]\8\

5. Open "GraphDefaults.xml" with a text editor.

6. Locate the DomainElementTypeID that corresponds with the element you want to edit using the following table.

Water Distribution ProductsStorm & Sanitary Products
DomainElementTypeIDElementDomainElementTypeIDElement
23SCADA1Manhole
52Tank2Catch Basin
54Hydrant3Conduit
55Junction4Channel
56Reservoir5Outfall
60FCV6Catchment
61TCV7Pond
62GPV9Cross Section
64PRV10Gutter
65PSV12Wet Well
66PBV13Pressure Junction
68Pump14Pressure Pipe
69Pipe15Transition
70Spot Elevation23SCADA
71Isolation Valve24Lateral
72VSPB68Pump
300Turbine72Variable Speed Pump Battery
301Air Valve301Air Valve
302Hydropneumatic Tank701Low Impact Development Control
303Surge Valve800Headwall
305Discharge to Atmosphere
306Rupture Disc
307Orifice Between Pipes
308Surge Tank
309Check Valve
310Valve With Linear Area Change
321Periodic Head-Flow
700Pump Station

7. Find that DomainElementID in the GraphDefaults.xml file and edit the associated fields.

8. To add another field, copy the line that begins with "<DefaultField…" and paste it on the line below. Then edit the FieldName and ResultRecordName.
For this example, this is what the edited section looks like:

9. Save the XML file, open the application, and create a graph to see if the changes were applied.

To Restore the Original Defaults

1. Close the program.
2. Delete the GraphDefaults.xml.
3. Open the program. A new Graphdefaults.xml file should be created with the original defaults.

Quick Graph in CONNECT Edition (Version 10.00.00.XX and later)

The CONNECT Edition release includes a new feature called "Quick Graph". This feature allows you to see a graph of a desired result that updates to display information for the selected element(s). See the article "Quick Graph" for more information.

See Also

How to set the common graph fields

Quick Graph

"Graph Series Options" Default Check Boxes

Enhancement: 72876