# TUN File Format Reference TunnelCAD's native file format is an XML-based format referred to as IQML. Files use the `.tun` extension and are human-readable plain text. ## Document structure The root element is `` with `version` and `name` attributes: ```text ... ... ... ``` ### Top-level elements `` : Project-wide unit settings including angular unit mode, coordinate decimal places, and display preferences. ```text ``` `` : Shared library of section line display styles. Each style is a `` element defining color, line weight, and other visual properties. These styles are shared across all tunnels in the project. ```text ``` `` : Shared library of alignment display styles. ```text ``` `` : Container for all tunnel alignments. The `active` attribute names the currently selected tunnel. ## Tunnel element Each `` element is a self-contained tunnel alignment with all its associated data: ```xml ... ... ... ... ... ... ... ``` ### Tunnel sub-elements `` : Horizontal and vertical alignment geometry (lines, arcs, spirals, PVIs). `` : Definitions of section line types used in this tunnel. Each `` specifies a name, style reference, and behavior. `` : Definitions of template line types. Each `` maps a template line to its display properties. `` : Design profile templates. Each `