Hello
After some tests, I found the issue. The code was working on some computer and not some other.
Removing the bracket make it work everywhere.
I now have :
objMeasurable.GetCOG Coords
Instead of :
objMeasurable.GetCOG (Coords)
Thanks for your help.
Hello
The "manual" measurement works well for every body at first level.
GetCOG fails for all the bodies from all the part in the product.
The macro manages switch to "design mode" and switch back to "visualization mode" for each instance of the product, this is done in the main sub which is...
Hello Cthulhu
Yes, measurement is fine with standard tool in 3D, this what I use to do to check the results from the macro.
My macro gives wrong result because it calculates with 0 when getCOG is empty
Hello
I am trying to create a VBA macro to have an analysis of assembly mass and center of gravity, by checking each part body from each part in the assembly.
The part analysis is made by a sub called from the main one which is working from the assembly.
The macro only make calculation for...