How to get XYZ coordinates along an arc at given spacing ?

I want to get XYZ coordinates of a selected edge in a model. Selected adge can be arc,circle , line etc...If i want to get coordinates along selected edge in 1 mm spacing, how can i create a macro for this?I have attached a sample photo showing a selected edge which i want to get coordinates along that arc in 1 mm spacing s...

Great help.

SolidworksApi macros