Need help working from home with your Bentley software? We're here to help - click here
Automatically assign ground elevation data to nodes using the TRex Terrain Extractor tool.
The Terrain Extractor (TRex) tool can automatically assign elevations to any nodes based on the nearest elevations from a contour DXF, shapefile, LandXML file, or spot elevations. If you are working in WaterGEMS, SewerGEMS, or HAMMER in the ArcGIS environment, there is the additional ability to assign elevation data based on TIN, DEM or Raster (such as TIF / TIFF) files. Nodes can include junction, hydrants, pumps, tanks, reservoirs, and valves. NOTE: Tank elevation or level range will not be included with TRex, only the ground elevation.
You can access TRex from the Tools menu. Most options are self explanatory, but the most important thing is that the contour must line up with the elements in the model. Meaning, the contour must spatially overlap the model, with both the model elements and the contours in the correct X:Y coordinates.
If you want to apply elevation data for a selection of nodes instead of the whole system, choose the Selection or Selection Set radials in the section "Nodes to Update". For Selection, it will apply data to elements you have already selected in the drawing. For Selection Set, you can choose a selection set of elements to apply the data.
ESRI ArcMap integrated mode:
Note: When using TRex, it is necessary that the model and the DEM be in the same coordinate system. Usually the USGS DEMs are in the UTM (Universal Transverse Mercator) with North American Datum 1983 (NAD83) in meters, although some may use NAD27. Models are often constructed using a state plane coordinate system in feet. Either the model or DEM must be converted so that the two are in the same coordinate system for TRex to work. Similarly, the vertical datum for USGS is based on national Vertical Geodetic Datum of 1929. If the utility has used some other datum for vertical control, then these differences need to be reconciled.
In some cases you may have survey elevation readings with higher accuracy, which should be protected from Trex updates. Here are two approaches to consider:
1) Use ModelBuilder. Maintain a spreadsheet for your survey GPS elevations, linked to the element name and set up a ModelBuilder run for it. After doing a Trex update, click the "build model" button in ModelBuilder for the run you created, to update the Elevation field with the survey GPS elevations (that override the Trex imported ones). You can also create a User Data Extension to flag a node as having a survey-based Elevation, for reference. (see Help topic on User Data Extensions / UDX)
2) Maintain a selection set of elements that exclude the ones that have their elevations from GPS, and use that in the Trex Wizard. One option is to create a query-based selection set, based on a UDX flag field (for example a true/false "From GPS?" field, to only list elements that do NOT have higher-accuracy survey elevations.) Then, select that selection set in the Trex Wizard, so that Trex only updates elevations that do not have the more accurate survey elevations. As you get new survey/GPS elevations, you would update the elevation and toggle the "flag" UDX field, then re-run the query and re-open the selection set to refresh it, so that the Trex Wizard picks up on that change - see related article here.
If you're using the Terrain Model feature instead of Trex (see more on Terrain model below), then you would instead set the node field "Update Ground Elevation from Terrain Model?" to "false" for nodes that have higher accuracy survey/GPS elevations. That way, the elevations for those nodes will keep the higher accuracy values and the terrain model contour will not override.
The Bentley Civil products can create a terrain model from Google Earth data. If you have access to InRoads or Power Civil for example, you can create the terrain model using that product, as detailed here:
Create an InRoads DTM from Google EarthThis will create a .dtm file, which the Terrain Extractor tool can read, if you choose the Bentley DTM File option as the source data.
If you do not have access to terrain data but want to populate missing elevations from surrounding nodes that do have elevations, see the following article:
Inferring ground elevation from surrounding elements
Starting with the SELECTseries 5 release of the Storm and Sewer products, a new Terrain Model feature has been added, which allows you to activate a terrain model file in the model at all times. Elevations of nodes will then update automatically per the active terrain model, when the nodes are added or moved. For more on this, see the Help topic or the following articles:
What's new in SewerGEMS V8i SELECTseries 5?
What's new in SewerCAD V8i SELECTseries 5?
What's new in StormCAD V8i SELECTseries 5?
What's new in CivilStorm V8i SELECTseries 5?
Please refer to this article:
Interpolation Method Used by Terrain Extractor (Trex)
Consuming ContextCapture production files within your hydraulic model
If your LiDAR data is not already in one of the supported formats (see above - note the additional formats supported in the ArcMap integrated mode), it may need to be processed externally first. For example if it is raw LiDAR data, it may need to be processed into a TIN/DEM, which Trex can then use to assign node elevations. If it is available in raster/image format (for example see here or here), you should be able to use the "ArcGIS Raster" data source type when integrating with ArcMap (available with WaterGEMS, SewerGEMS and HAMMER).
If unsure, contact Technical Support with an example of the data you have, or the file type(s) or any other information about what you have.
Trex error: "The data source file must contain at least three unclipped points in order to create an elevation map"
Error using TRex - Circular list error clockwise
Error using TREX with LandXML file: "Object reference not set to an instance of an object."