# alignLength(alignment,line,startstation,endstation)

**Description:**

Used to calculate the actual length along the alignment between any two stations.

**Example:**

![image-20250926-134134.png](https://openbrim.atlassian.net/wiki/download/attachments/3317268768/image-20250926-134134.png?api=v2)

```
<O N="AlignLength" T="Project" TransAlignRule="Right">
    <O N="lineObj" T="Line" Alignment="ALIGNMENT1" AlignH="Warp" AlignV="Warp">
        <O T="Point" X="0" Y="2400" Z="0" />
        <O T="Point" X="1000" Y="2400" Z="0" />
        <O T="Circle" Radius="5" />
    </O>
    <P N="alignLength" V="alignLength(ALIGNMENT1,toglobal(lineObj),0,1000)" />
    <O T="Private">
        <O N="ALIGNMENT1" T="Alignment" Station="0">
            <O T="Circular" Direction="2" Length="6360" Radius="2400" />
            <O T="ElevationPoint" />
            <O T="CrossSection" LeftEdgeToHCL="240">
                <O T="CrossSectionSegment" Width="480" Slope="-0.05" />
            </O>
            <O T="CrossSection" Station="6360" LeftEdgeToHCL="240">
                <O T="CrossSectionSegment" Width="480" Slope="-0.05" />
            </O>
        </O>
    </O>
</O>
```
