Good morning, Gentlemen:
I have a macro that to export the mass properties from an active SW assembly into Excel. We've been working on this for a while and it's been working great. However, recently I've noticed that a new set of models needs extra attention. The total weight in the macro output and the total weight in SW Mass properties tool do not match as they should. In a 10kg assembly, the difference is about .7kg (less).
I'm not certain what the cause is or where the issue is. I've tried both different ways to pull the mass properties. But I believe part of the issue may be my ignorance as to what the real difference is. Both pull the incorrect weight, and both of their weights are different. In this case massProp.Mass is worse.
I've attached the entire macro. Anyone is welcome to use it if they need it.
Also, if there is an internal tool within SW to do what I'm doing with this Macro, I'd LOVE to hear about it.
Regards,
Josh
Edit: the line is line 403.