Creating parametric curbs

I’m looking for a way to create a curb like in the picture I added in Revit. I would like to be able to define the length of the elements and of the gaps, and to assign it to 3 dimensional curves.

 

How would you tackle this in Dynamo?

 

 

images

You could refer to this older discussion.

There should also be some other related discussions on this forum.