A macro to split all components(“line”, “arc”, “spline” into small equal pieces

I want A macro to split  all components(“line”, “arc”, “spline” into small equal pieces How can I do that or what are the possoible steps ?

SolidworksApi/macros