Product(s): | WaterGEMS, WaterCAD, HAMMER, SewerGEMS, SewerCAD, StormCAD, CivilStorm, PondPack | ||
Version(s): | Varies | ||
Area: | Output and Reporting |
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.
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 Products | Storm & Sanitary Products | |||
DomainElementTypeID | Element | DomainElementTypeID | Element | |
23 | SCADA | 1 | Manhole | |
52 | Tank | 2 | Catch Basin | |
54 | Hydrant | 3 | Conduit | |
55 | Junction | 4 | Channel | |
56 | Reservoir | 5 | Outfall | |
60 | FCV | 6 | Catchment | |
61 | TCV | 7 | Pond | |
62 | GPV | 9 | Cross Section | |
64 | PRV | 10 | Gutter | |
65 | PSV | 12 | Wet Well | |
66 | PBV | 13 | Pressure Junction | |
68 | Pump | 14 | Pressure Pipe | |
69 | Pipe | 15 | Transition | |
70 | Spot Elevation | 23 | SCADA | |
71 | Isolation Valve | 24 | Lateral | |
72 | VSPB | 68 | Pump | |
300 | Turbine | 72 | Variable Speed Pump Battery | |
301 | Air Valve | 301 | Air Valve | |
302 | Hydropneumatic Tank | 701 | Low Impact Development Control | |
303 | Surge Valve | 800 | Headwall | |
305 | Discharge to Atmosphere | |||
306 | Rupture Disc | |||
307 | Orifice Between Pipes | |||
308 | Surge Tank | |||
309 | Check Valve | |||
310 | Valve With Linear Area Change | |||
321 | Periodic Head-Flow | |||
700 | Pump Station |
7. Find that DomainElementID in the GraphDefaults.xml file and edit the associated fields.
- NumberDefaultFields: Specify the number of fields you want to be checked by default.
- FieldName: Enter the value taken from Query Builder.
- ResultRecordName: This is the beginning of the FieldName (Before the "_").
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.
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.
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.
How to set the common graph fields
"Graph Series Options" Default Check Boxes
Enhancement: 72876