Doors/Openings naming script

Got some doors and recess/openings in several rooms that I would like to start naming. DiRoots is a good one when knowing a path - I would just be happy with a clockwise, counter clockwise system or even a random number.

Any way to start tackling it?

Thanks in advance!

Look up, pyrevit and install then look for a pyrevit addon called EF tools. He has an already working python that numbers following a polyline

thanks!