Splitting a line

Discussion created by Kaspatoo on Jul 12, 2011
Latest reply on Feb 25, 2013 by tribeca83

I want to split a line into many lines.
Every 500m I want to make a split.

I found this description for 9:
and this for 10:

in 9's solution i can split it into only two parts or CREATE points along the line in equivalent distances
but i need a combination of both and performance is important, so I ant to solve it in one turn not in two

in 10's solution the line is also onloy splittet by points

an other solution could be to use this:
I could read the lines lenght, divide it into approximately  500m pieces and split the line into the divide-count
but I cant find anything like this function in the sdk....

does anybody know a better and faster way?
thanks for ideas and help