API → File → Get CAD file mass
Parameters
Name
Type
Req.
Possible values
lb:ft3
: Pounds per cubic feet.kg:m3
: Kilograms per cubic meter.
Possible values
g
: Grams <https://en.wikipedia.org/wiki/Gram>kg
: Kilograms <https://en.wikipedia.org/wiki/Kilogram>lb
: Pounds <https://en.wikipedia.org/wiki/Pound_(mass)>
Possible values
fbx
: Autodesk Filmbox (FBX) format. <https://en.wikipedia.org/wiki/FBX>gltf
: glTF 2.0.obj
: The OBJ file format. <https://en.wikipedia.org/wiki/Wavefront_.obj_file> It may or may not have an an attached material (mtl // mtllib) within the file, but we interact with it as if it does not.ply
: The PLY file format. <https://en.wikipedia.org/wiki/PLY_(file_format)>sldprt
: SolidWorks part (SLDPRT) format.step
: The STEP file format. <https://en.wikipedia.org/wiki/ISO_10303-21>stl
: The STL file format. <https://en.wikipedia.org/wiki/STL_(file_format)>
Returns
- 201 Created
successful creation
Name
Type
Req.
body
objectoptionalObject Properties
Possible values
lb:ft3
: Pounds per cubic feet.kg:m3
: Kilograms per cubic meter.
Possible values
g
: Grams <https://en.wikipedia.org/wiki/Gram>kg
: Kilograms <https://en.wikipedia.org/wiki/Kilogram>lb
: Pounds <https://en.wikipedia.org/wiki/Pound_(mass)>
Possible values
fbx
: Autodesk Filmbox (FBX) format. <https://en.wikipedia.org/wiki/FBX>gltf
: glTF 2.0.obj
: The OBJ file format. <https://en.wikipedia.org/wiki/Wavefront_.obj_file> It may or may not have an an attached material (mtl // mtllib) within the file, but we interact with it as if it does not.ply
: The PLY file format. <https://en.wikipedia.org/wiki/PLY_(file_format)>sldprt
: SolidWorks part (SLDPRT) format.step
: The STEP file format. <https://en.wikipedia.org/wiki/ISO_10303-21>stl
: The STL file format. <https://en.wikipedia.org/wiki/STL_(file_format)>
Possible values
queued
: The async API call is queued.uploaded
: The async API call was uploaded to be converted.in_progress
: The async API call is in progress.completed
: The async API call has completed.failed
: The async API call has failed.
post
/file/mass$ curl -X POST "https://api.zoo.dev/file/mass" \
--header "Authorization: Bearer $TOKEN" \
--header "Content-Type: application/octet-stream" \
--data-binary "@path/to/file"
201 Created
Response{
"completed_at": "2024-09-07T21:56:33.200Z",
"created_at": "2024-09-07T21:56:33.200Z",
"error": "eypwPvr8jVh791J7RYCP8xJTo9b4qi",
"id": "43aecb98-a4e1-4464-aaff-695af519d5de",
"mass": 1,
"material_density": 28,
"material_density_unit": "kg:m3",
"output_unit": "kg",
"src_format": "sldprt",
"started_at": "2024-09-07T21:56:33.201Z",
"status": "failed",
"updated_at": "2024-09-07T21:56:33.201Z",
"user_id": "059a7c3c-bfde-4d5a-8e56-07913651db25"
}