Why when I use the macro to insert about 90 points, there are some points can't be inserted.

When apply to less than 20 point, it works very well, but once the number is increased, some points are missed.  When I run the same macro in different time, the missing point is different. Is it the problem of the software?  One of my workmates met the same problem when he tried to insert more than 300 points.

SolidworksApi macros