Here is what I want to write an add-in for.
Just to give a image of why I need it. Maybe its easier to suggest a workaround, if needed.
Case:
I model up a component that will be a part of my assembly. This component is made of several different materials in the real world, and I am only interested in adding the actual mass/weight of the component. Without placing correct materialt to all bodies of the component. The weight is either given by the supplier of the product, or I just put it on a scale.
So I want to add a custom weight to the component I just modeled
Add-in:
1. type the real world total weight of the product into a dialog box.
2. Get the volume of the component in fusion 360 (physical properties in API)
3. Create a new physical material
4. Edit the existing density in the new material... result of the math. (New_density= real world weight/volume )
5. Assign the new material to the component.