In drawing, how do I use a macro to select all faces of every solidbody and hatch fill them?

Normally I would use a selection filter to do this but I want to know how I would do it using a macro

SolidworksApi macros