Calculate Mass Properties
calculate_mass_propertiesMeasure volume, surface area, mass, center of mass, and moments of inertia for the active SolidWorks part or assembly to check weight and balance.
Instructions
Measure the active part or assembly's mass properties: volume, surface area, mass, centre of mass and moments of inertia.
Use it to check weight or balance. To compare a model with the values you
expect, use verify_model; get_mass_properties does the same as this tool.
Mass depends on the assigned material (set_material). Needs: an open part or
assembly. Read-only. It rebuilds first. Returns: mass_properties with volume
(mm³), surface_area (mm²), mass (kg), center_of_mass (mm),
moments_of_inertia (kg·mm², about the centre of mass) and
principal_axes.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"input_data": "<input_data>"
},
"name": "calculate_mass_properties"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_data | Yes | Nothing: it always measures the active model. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||