mass properties (COG)

I need to find the center of gravity of an assembly, but I have several hidden parts that are not needed in this assembly. Is there a way to ignore hidden parts when I run the mass properties feature?

SolidworksAssemblies