Save SMG with tree

Hi,

I would like to know if there is a way of saving a solidworks assembly to .SMG via API, including feature tree, so a anyone using Composer Player can hide objects and create dimensions.

Regards

SolidworksApi macros