C# Linear Pattern in Assembly

Hi,

What do you  think is the problem in my code thanks.

SolidworksApi macros