I have an assembly with many sub-assemblies. I have been able to get the Mass Properties of every sub-assembly and part withing the master assembly. I use the ModelDocExtension interface to do this which has the IncludeMassPropertiesOfHiddenBodies flag to set, and it works. I am able to compute mass properties without including Hidden Bodies. Now I am trying to take two or more random components (parts or subassemblies or mixed) and find their mass properties using a MassProperty interface. Whenever I do this, I always get the mass of the hidden bodies included. How can I prevent the Hidden Bodies from being included? I am trying to have the functionality of the Mass Property Dialog Box where I can add as many parts/assemblies I want to.
Thank you.
SolidworksApi macros