# To add templates

A template defines a cross section of the tunnel at a point across the tunnel to define how wide it is at different points. Add a template for each change in width. The template may consist of any number of surfaces.

Templates must be defined in a clockwise direction. Surfaces can be open or closed.

To define a template for the selected tunnel definition:

1. Tap Templates.
2. To add a new template:
   1. Tap Add.
   2. Enter the template name.

   3. In the Copy from field, select whether to copy an existing definition from a tunnel or another template, into the template.

      To create a template library, define a tunnel that only contains templates.

   4. Tap Add.

3. To define a new surface:
   1. Tap Add.
   2. Enter the surface name.
   3. In the Copy from field, select whether to define the surface by offsetting an existing surface.
   4. Tap Add.
4. To define the start point for the surface:
   1. Tap New.
   2. In the Horizontal offset and Vertical offset fields, enter the values that define the Start point.
   3. Tap Store.

   The element appears in the graphical view.

   If you have started a survey, you can tap Measure to measure positions within a tunnel to define elements in a surface. If no surface elements have been defined, tap Measure to define the Start point. If the surface consists of one or more elements, tap Measure to define the end point of a line element.

5. To add further elements to the surface:
   1. Tap Add.

   2. Select the Element and enter the required information. The information required depends on the selected element:

      Line elements

      Arc elements

   3. Tap Store.

   If you have started a survey, you can tap Measure to measure positions to define further elements in the surface.

6. Continue adding elements as required.

   Each element is added after the selected element.

   Use the Start, Prev, Next and End softkeys to view other elements in the template.

7. To save the template and return to the Surfaces screen, tap Accept.

8. Add or select a different surface to edit, or tap Accept to return to the list of templates.
9. Add or select a different template to edit, or tap Accept to return to the list of components for the selected tunnel definition.
10. Enter the other tunnel components, or tap Store to store the tunnel definition.

Line elements

To add a line to the template definition, select Line in the Element field and then select the method to construct the line.

If you select... | Then...
--- | ---
Cross slope and offset | Enter the Cross slope and Offset values to define the line. To change the way a cross slope value is expressed, tap Options and then change the Grade field as required.
Delta elevation and offset | Enter the Delta elevation and Offset values to define the line.
End point | Enter the Horizontal offset and Vertical offset values to define the end point of the line.

Arc elements

To add an arc to the template definition, select Arc in the Element field and then select the method to construct the arc.

If you select... | Then...
--- | ---
End point and Radius | Enter the Horizontal offset and Vertical offset values to define the end point of the arc. Enter the Radius. Select Large arc, if required. By default the arc is created in a clockwise direction between the start and end point. To change the direction of the arc to anti-clockwise, select the Inverted check box.
Alignment and Delta angle | Enter the Delta angle for the arc. The center point for the arc is defined by the horizontal and vertical alignments.
Center point and delta angle | Enter the Horizontal offset and Vertical offset values to define the center point of the arc. Enter the Delta angle for the arc. By default the arc is created in a clockwise direction between the start and end point. To change the direction of the arc to anti-clockwise, select the Inverted check box.