How to exclude all sheet metal and weldment parts in assembly from cutlist using macro?

I want to perform exclude from cutlist operation on all sheet metal and weldment part in assembly to show them in single row in BOM.

All sheet metal and weldment parts are single body parts.

So doing this operation individually for each and every part is tedious job. Hence can anyone provide macro for this operation?

Thanks and regards,

Hrishikesh

SolidworksApi macros