Calculate part mass from material density and part volume.

Use when the user provides a part volume and material to calculate mass or weight. Returns mass in grams and kilograms. Example: 'How heavy is a 100cm³ aluminum 6061 part?'

post/tools/calculate_part_mass

Request

  • Base URL: https://api.mechanofab.com/v1
  • URL: https://api.mechanofab.com/v1/tools/calculate_part_mass
  • Auth: HTTP bearer

Request body

material_idstring required

Material_ID from the materials dictionary

volume_cm3number required

Part volume in cubic centimeters

Response

Tool result

material_namestring required
density_g_cm3number required
volume_cm3number required

Input volume echoed back (pass-through). Use this value for downstream tools like quote_3dp.

mass_gnumber required
mass_kgnumber required
source_tagstring required

Changes

No recorded changes to this operation across all 1 revision of this API.