Selected FACES export to IGES for an Assembly document

Solidwork's API supports export of selected FACES to a IGES file when it's a PART document.

How to achieve same when it's an assembly document ?

SolidworksApi macros