API to save a multi-body part into individual parts

I want to save a multibody into individual parts as done through Inser-->Features-->Save bodies command. I used CreateSaveBodyFeature, but it didn't work. Can anyone please provide me the macro to save a multibody part into individual parts?

SolidworksApi macros