The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.
I fixed the code.
the array subscript is begin in 1 not 0.