Overview
/
Developer Tools
/
API Reference
/
File
/
Get CAD file center of mass.

Get CAD file center of mass

Query string parameters

  • ?src_format=

    "acis"+12
    • //ACIS part format.
      "acis"
    • //CATIA part format.
      "catia"
    • //PTC Creo part format.
      "creo"
    • //Autodesk Filmbox (FBX) format. <https://en.wikipedia.org/wiki/FBX>
      "fbx"
    • //glTF 2.0.
      "gltf"
    • //Autodesk Inventor part format.
      "inventor"
    • //Siemens NX part format.
      "nx"
    • //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.
      "obj"
    • //Parasolid part format.
      "parasolid"
    • //The PLY file format. <https://en.wikipedia.org/wiki/PLY_(file_format)>
      "ply"
    • //SolidWorks part (SLDPRT) format.
      "sldprt"
    • //The STEP file format. <https://en.wikipedia.org/wiki/ISO_10303-21>
      "step"
    • //The STL file format. <https://en.wikipedia.org/wiki/STL_(file_format)>
      "stl"
    //
  • &output_unit=

    "cm"+5
    • //Centimeters <https://en.wikipedia.org/wiki/Centimeter>
      "cm"
    • //Feet <https://en.wikipedia.org/wiki/Foot_(unit)>
      "ft"
    • //Inches <https://en.wikipedia.org/wiki/Inch>
      "in"
    • //Meters <https://en.wikipedia.org/wiki/Meter>
      "m"
    • //Millimeters <https://en.wikipedia.org/wiki/Millimeter>
      "mm"
    • //Yards <https://en.wikipedia.org/wiki/Yard>
      "yd"
    //

HTTP Request

  • HTTP BodyBinary

    Content-Type:application/octet

Response

  • 201 Created
    • //
      • completed_at:

        stringISO-8601,
        //
      • created_at:

        stringISO-8601,
        //
      • error:

        string,
        //
      • id:

        stringUUID,
        //
      • started_at:

        stringISO-8601,
        //
      • updated_at:

        stringISO-8601,
        //
      • user_id:

        stringUUID,
        //
      • :

        {{ ... },
        //
        • x:

          numberfloat,
        • y:

          numberfloat,
        • z:

          numberfloat
        }
      • output_unit:

        "cm"+5
        • //Centimeters <https://en.wikipedia.org/wiki/Centimeter>
          "cm"
        • //Feet <https://en.wikipedia.org/wiki/Foot_(unit)>
          "ft"
        • //Inches <https://en.wikipedia.org/wiki/Inch>
          "in"
        • //Meters <https://en.wikipedia.org/wiki/Meter>
          "m"
        • //Millimeters <https://en.wikipedia.org/wiki/Millimeter>
          "mm"
        • //Yards <https://en.wikipedia.org/wiki/Yard>
          "yd"
        ,
        //
      • src_format:

        "acis"+12
        • //ACIS part format.
          "acis"
        • //CATIA part format.
          "catia"
        • //PTC Creo part format.
          "creo"
        • //Autodesk Filmbox (FBX) format. <https://en.wikipedia.org/wiki/FBX>
          "fbx"
        • //glTF 2.0.
          "gltf"
        • //Autodesk Inventor part format.
          "inventor"
        • //Siemens NX part format.
          "nx"
        • //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.
          "obj"
        • //Parasolid part format.
          "parasolid"
        • //The PLY file format. <https://en.wikipedia.org/wiki/PLY_(file_format)>
          "ply"
        • //SolidWorks part (SLDPRT) format.
          "sldprt"
        • //The STEP file format. <https://en.wikipedia.org/wiki/ISO_10303-21>
          "step"
        • //The STL file format. <https://en.wikipedia.org/wiki/STL_(file_format)>
          "stl"
        ,
        //
      • status:

        "queued"+4
        • //The async API call is queued.
          "queued"
        • //The async API call was uploaded to be converted.
          "uploaded"
        • //The async API call is in progress.
          "in_progress"
        • //The async API call has completed.
          "completed"
        • //The async API call has failed.
          "failed"
        //
      }

Examples

post
/file/center-of-mass
201 Created
Response