I am trying to place parking spots on a ramp using dynamo and having a hard time.
I tried place the rectangle using translate but I dont think I am going on the right path.

Build a range from 0 to the length of the curve, with a number of steps equal to the floor of the length of your line divided by the length of your stall. Something like 0..Length..#Math.Floor(length/width);

Use a Curve.CoordinateSystemAtSegmentLength to get the coordinate system along the line at each length in your range. Dynamo Dictionary

Draw a rectangle at the origin that is the size of your spot. If you use the Rectangle.ByLengthWidth be sure to shift it by 1/2 of the length and width so that the corner is at the origin.

Use a Geometry.Transform node to move the geometry into place. Dynamo Dictionary

I tired my best to understand what you said and came up with this and tried using various steps but dint work, can you please have a look at the script thanks.Automatic parking placementâ€¦dyn (39.6 KB)

Parking_2.dyn (61.0 KB)
I got the parking placed but not able to populate in the revit model and I am trying to conncect it to the floor or a line so that I can run the parking placements in different options. I used â€śimportinstance.bygeometryâ€ť node to populate it in revit model.
I am looking for something like this.
Kindly find the attachment