API → File → Get CAD file surface area
Parameters
Name
Type
Req.
Possible values
cm2
: Square centimeters <https://en.wikipedia.org/wiki/Square_centimeter>dm2
: Square decimeters <https://en.wikipedia.org/wiki/Square_decimeter>ft2
: Square feet <https://en.wikipedia.org/wiki/Square_foot>in2
: Square inches <https://en.wikipedia.org/wiki/Square_inch>km2
: Square kilometers <https://en.wikipedia.org/wiki/Square_kilometer>m2
: Square meters <https://en.wikipedia.org/wiki/Square_meter>mm2
: Square millimeters <https://en.wikipedia.org/wiki/Square_millimeter>yd2
: Square yards <https://en.wikipedia.org/wiki/Square_mile>
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
cm2
: Square centimeters <https://en.wikipedia.org/wiki/Square_centimeter>dm2
: Square decimeters <https://en.wikipedia.org/wiki/Square_decimeter>ft2
: Square feet <https://en.wikipedia.org/wiki/Square_foot>in2
: Square inches <https://en.wikipedia.org/wiki/Square_inch>km2
: Square kilometers <https://en.wikipedia.org/wiki/Square_kilometer>m2
: Square meters <https://en.wikipedia.org/wiki/Square_meter>mm2
: Square millimeters <https://en.wikipedia.org/wiki/Square_millimeter>yd2
: Square yards <https://en.wikipedia.org/wiki/Square_mile>
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/surface-area$ curl -X POST "https://api.zoo.dev/file/surface-area" \
--header "Authorization: Bearer $TOKEN" \
--header "Content-Type: application/octet-stream" \
--data-binary "@path/to/file"
201 Created
Response{
"completed_at": "2024-11-20T19:29:21.250Z",
"created_at": "2024-11-20T19:29:21.250Z",
"error": "CER4NSMDAYV1SqXQjmdJM",
"id": "f4511129-3eb4-4d4f-8816-299a9b2fdaf9",
"output_unit": "in2",
"src_format": "step",
"started_at": "2024-11-20T19:29:21.250Z",
"status": "completed",
"surface_area": 13,
"updated_at": "2024-11-20T19:29:21.250Z",
"user_id": "af647ae3-fe56-40a5-af11-449d9fd5cb7c"
}