Adaptive family or mass with a divided path, associate the number of nodes with a parameter, another adaptive family hosted on a node, repeater to populate along the path on each note.
an example of how Railing works...
object on curve array | Revit 2022 | Autodesk Knowledge Network
Constantin Stroescu
Another approach: Railing.
FWIW.