Accessing mass properties |
Top Previous Next |
You can access the mass properties of a Part or Assembly like this (no error checking):
CComPtr<MassProperties> pMassProps; pAssemblyCompDef->get_MassProperties(&pMassProps); double Mass; pMassProps->get_Mass(&Mass); gLogger.Printf(ekLogMsg, L"Mass = %.3f", Mass);
|
Text, images and diagrams © 2021 Owen F. Ransen. All rights reserved. (But copy the source code as much as you want!)