Fusion360 Add-in code that aligns the origin of the component to the origin of the center of mass.
See the blog below for more information on how to use it.
Fusion360 center of mass
Go into the git hub below, download the code, and extract it. (Download ZIP)
Run the following command in your shell.
cd <path to fusion360_CenterOfMass-main>
Copy-Item ".\centerofmass\" -Destination "${env:APPDATA}\Autodesk\Autodesk Fusion 360\API\Scripts\" -Recurse
cd <path to fusion360_CenterOfMass-main>
cp -r ./centerofmass "$HOME/Library/Application Support/Autodesk/Autodesk Fusion 360/API/Scripts/"
Successful if added to Fusion 360 add-in as shown in the picture below
- Running on a body unit rather than on a component unit will not work
- Using Addin, hanging or moving joints and running Addin again causes problems with the center of mass origin
- Assembly does not work if there is an assembly in the assembly