Exclude body from meshing analysis

Hello all,

When I right click on a body in the study manager there's an option "exclude from analysis". Clicking this prevents the body from being meshed. I'm wondering if there's a way to activate this option, or something equivalent, using the API?

SolidworksApi macros