How to control save assembly as part with all components option via API ?

I can save assembly file to part file by using API function, ModelDocExtension::SaveAs.

But I am looking for a method to automatically save assembly file as solid body in the new part file.

I have tried manually to change the option "All components" via SolidWorks' user interface such as folling figure.

Is any API function available for me to save geometry as all components mode ?

By the way, I use C++ as development tool.

Thanks a lot

Joe

SolidworksApi macros