Place blocks in a curve, in the direction of the normal (or Normal.Reverse)

Thanks Kulkul, I see that it is easier to work with BlockReferenceByCS than with BlockReferenceCreate.
I have also seen that in my case I used Document.Blocks and it did not work well, the correct thing is to use Document.ModelSpace.
Thanks, teacher!