The easiest way I’ve found to do HL numbering is to use a global variable inside of a map and increment it for every HL segment you need to produce.

Here’s an example:

This is the 2nd HL segment, so here I’m needing an incrementing HL01 and the previous HL number in the HL02.

The inline C# script for the HL01 would be:

int HL01;
public int increaseHL01()
{
HL01++;
return HL01;
}

The inline C# script for the HL02 would be:

public int HL02()
{
return HL01 -1;
}