Macro to split entities

Does exist a macro that is able to split entities of a sketch?

For example, if I want to split a segment in 10 parts, can I do it into a macro?

Thanks

SolidworksApi macros