assign "save bodies"-function to a macro

Hi people.

does anyone know if it is possible to assign the save bodies function to a macro.

I have tried with the record macro, but without any luck

SolidworksApi macros