Is there a macro for animations ? And can it be used to automate a simple animation for a folder containing different parts ?

Lets say I have 10 Solidworks parts. I want to make a simple rotation animation for this part. Is it possible to write a macro that can do this for all 10 parts. Basically parts IN and animations OUT, for a given batch of parts. If there is any other alternative please let me know.

Thank you in advance

SolidworksApi/macros