Skip to main content

Bitbybit CAD Cloud API

Full endpoint reference — models, tasks, CAD operations, conversion, and files.

Drawing - draw a sheet or a set of sheets

Proprietary 2D drawing sheets from a 3D model: lays out views of the parts of an uploaded STEP file on a standard or custom sheet, lined up with a base view at a scale that fits, with hidden lines dashed, sections with their cuts hatched and a title block; when the plan asks, also dimensions, holes with a hole table, a parts list with balloons, the flat pattern of a sheet-metal part, the annotations the file stores (AP242) and a revision table. A plan is one sheet or a set: a list of sheets, or a rule that makes one from the file's product structure. Every setting has a default, so a body with only 'stepFileId' draws a default sheet; POST /api/v1/cad/pro/drawing/inspect returns the plan with every setting spelled out. A plan too large for the body is uploaded as a JSON file and named by 'planFileId'. The paper is measured in millimetres; the lengths a sheet prints are in its 'units', millimetres or decimal inches, the STEP file's own unit when the plan names none, and a set in inches is written as a DXF and an SVG in inches, while its PDF keeps the paper's millimetres. Requires the 'cad' API key scope. Returns 202 with a task ID; the sheets come in the requested formats (PDF when left out, a page for each sheet; DXF and SVG with the sheets side by side), a format that cannot be written is left out and named in the task metadata's 'outputsLeftOut' with the reason, and the DrawingSetReport (the plan with every sheet written out, each sheet's place, report and, on a continuation sheet, its pagination, the warnings) is delivered as the metadata result. The task metadata also sums what the sheets report of how they read: 'floors' (the readability floors broken), 'continued' (the continuation sheets) and 'exactEstimate' (the seconds the exact method was predicted to take on CAD Cloud for the sheets drawn by sight), each only when reported.

Drawing - read a model without drawing it

Reads the model of an uploaded STEP file as a drawing would, without drawing: how many parts it holds and its size, the first sheet's plan with every setting resolved, whether its views fit and the layout they take, the scale each standard sheet would allow, sections the model could be cut by, the views the file saved, every part with its name, and every sheet of the plan written out. The set's plan, edited or as it is, is ready to send to POST /api/v1/cad/pro/drawing/draw. Requires the 'cad' API key scope. Returns 202 with a task ID; the DrawingInspection is delivered as the metadata result.

Nesting - place flat parts on sheets or a strip

Proprietary true-shape 2D nesting: places the flat parts of uploaded STEP files onto rectangular sheets or one strip, turning and flipping them as each part's options allow, with a spacing that holds on the true curved edges and parts placed inside other parts' holes. Every part a file places is a part, with each of its solids on its own, so an unfold's output gives one part per flat pattern; 'stepFileIds' gives the full rule. Requires the 'cad' API key scope. Returns 202 with a task ID; every used sheet is one compound of its placed parts, laid in a row on the XZ plane, combined into one output per format, and the NestingReport (placements with their transforms, each part as read, what was left and why, totals) is delivered as the metadata result.

Sheet metal - unfold all solids and nest the flats on sheets

Proprietary sheet-metal unfold and true-shape nesting in one call: flattens every solid in an uploaded STEP file and nests the flat patterns on sheets straight away, without writing them to a file and reading them back. Left out, the sheets are sized for the flats and the spacing and margin are scaled to them; 'fileUnit' reads a file whose header names the wrong unit. Every length is in millimetres. Requires the 'cad' API key scope. Returns 202 with a task ID; the nested sheets come in the requested formats as on POST /api/v1/cad/pro/nesting/nest, 'flat-meshes' gives each solid's flat triangulated where it was unfolded, the NestingReport (each part naming its solid) is the metadata result, and the per-solid unfold report array is delivered in the task metadata.