Automatic Number Parameters In Sequence

Hi…I’m looking for a script to automatically number parameters of a family of devices. The 1st character would be the level reference and the next 3 would be a sequence. Any help would be great.

  1. Get appropriate elements.
  2. Get associated level and group by key.
  3. Create sequence from number of elements in each sublist (level).
  4. Combine level and sequence values.