@bitbybit-dev/cad-cloud-sdk 1.7.0 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1554,6 +1554,146 @@ export interface paths {
1554
1554
  patch?: never;
1555
1555
  trace?: never;
1556
1556
  };
1557
+ "/api/v1/cad/pro/drawing/draw": {
1558
+ parameters: {
1559
+ query?: never;
1560
+ header?: never;
1561
+ path?: never;
1562
+ cookie?: never;
1563
+ };
1564
+ get?: never;
1565
+ put?: never;
1566
+ /**
1567
+ * Drawing - draw a sheet or a set of sheets
1568
+ * @description 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.
1569
+ */
1570
+ post: {
1571
+ parameters: {
1572
+ query?: never;
1573
+ header?: never;
1574
+ path?: never;
1575
+ cookie?: never;
1576
+ };
1577
+ requestBody: {
1578
+ content: {
1579
+ "application/json": components["schemas"]["DrawingDrawBody"];
1580
+ };
1581
+ };
1582
+ responses: {
1583
+ /** @description Task accepted */
1584
+ 202: {
1585
+ headers: {
1586
+ [name: string]: unknown;
1587
+ };
1588
+ content: {
1589
+ "application/json": components["schemas"]["TaskAcceptedResponse"];
1590
+ };
1591
+ };
1592
+ /** @description Validation error */
1593
+ 400: {
1594
+ headers: {
1595
+ [name: string]: unknown;
1596
+ };
1597
+ content: {
1598
+ "application/json": components["schemas"]["ErrorResponse"];
1599
+ };
1600
+ };
1601
+ /** @description Insufficient scope */
1602
+ 403: {
1603
+ headers: {
1604
+ [name: string]: unknown;
1605
+ };
1606
+ content: {
1607
+ "application/json": components["schemas"]["ErrorResponse"];
1608
+ };
1609
+ };
1610
+ /** @description Server error */
1611
+ 500: {
1612
+ headers: {
1613
+ [name: string]: unknown;
1614
+ };
1615
+ content: {
1616
+ "application/json": components["schemas"]["ErrorResponse"];
1617
+ };
1618
+ };
1619
+ };
1620
+ };
1621
+ delete?: never;
1622
+ options?: never;
1623
+ head?: never;
1624
+ patch?: never;
1625
+ trace?: never;
1626
+ };
1627
+ "/api/v1/cad/pro/drawing/inspect": {
1628
+ parameters: {
1629
+ query?: never;
1630
+ header?: never;
1631
+ path?: never;
1632
+ cookie?: never;
1633
+ };
1634
+ get?: never;
1635
+ put?: never;
1636
+ /**
1637
+ * Drawing - read a model without drawing it
1638
+ * @description 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.
1639
+ */
1640
+ post: {
1641
+ parameters: {
1642
+ query?: never;
1643
+ header?: never;
1644
+ path?: never;
1645
+ cookie?: never;
1646
+ };
1647
+ requestBody: {
1648
+ content: {
1649
+ "application/json": components["schemas"]["DrawingInspectBody"];
1650
+ };
1651
+ };
1652
+ responses: {
1653
+ /** @description Task accepted */
1654
+ 202: {
1655
+ headers: {
1656
+ [name: string]: unknown;
1657
+ };
1658
+ content: {
1659
+ "application/json": components["schemas"]["TaskAcceptedResponse"];
1660
+ };
1661
+ };
1662
+ /** @description Validation error */
1663
+ 400: {
1664
+ headers: {
1665
+ [name: string]: unknown;
1666
+ };
1667
+ content: {
1668
+ "application/json": components["schemas"]["ErrorResponse"];
1669
+ };
1670
+ };
1671
+ /** @description Insufficient scope */
1672
+ 403: {
1673
+ headers: {
1674
+ [name: string]: unknown;
1675
+ };
1676
+ content: {
1677
+ "application/json": components["schemas"]["ErrorResponse"];
1678
+ };
1679
+ };
1680
+ /** @description Server error */
1681
+ 500: {
1682
+ headers: {
1683
+ [name: string]: unknown;
1684
+ };
1685
+ content: {
1686
+ "application/json": components["schemas"]["ErrorResponse"];
1687
+ };
1688
+ };
1689
+ };
1690
+ };
1691
+ delete?: never;
1692
+ options?: never;
1693
+ head?: never;
1694
+ patch?: never;
1695
+ trace?: never;
1696
+ };
1557
1697
  "/api/v1/files/upload": {
1558
1698
  parameters: {
1559
1699
  query?: never;
@@ -2459,7 +2599,7 @@ export interface components {
2459
2599
  meshAngle?: components["schemas"]["MeshAngle"];
2460
2600
  /** @description Use size-aware relative deflection per face. When true, meshPrecision is a fraction of each edge's length. Set to false for absolute deflection in model units. */
2461
2601
  meshRelative?: boolean;
2462
- /** @description Add interior vertices for better curved face fidelity (slower, set false for speed). */
2602
+ /** @description Mesh flat and cylindrical faces with vertices inside them, not only along their edges (default true). With false, triangles can cut straight across a wide cylindrical face such as a bore. */
2463
2603
  internalVerticesMode?: boolean;
2464
2604
  /** @description Extra post-pass refining triangles that bulge beyond the deflection (slower, set false for speed). */
2465
2605
  controlSurfaceDeflection?: boolean;
@@ -2493,7 +2633,7 @@ export interface components {
2493
2633
  meshParallel?: boolean;
2494
2634
  /** @description Use size-aware relative deflection per face. When true, meshDeflection is a fraction of each edge's length. Set to false for absolute deflection in model units. */
2495
2635
  meshRelative?: boolean;
2496
- /** @description Add interior vertices for better curved face fidelity (slower, set false for speed). */
2636
+ /** @description Mesh flat and cylindrical faces with vertices inside them, not only along their edges (default true). With false, triangles can cut straight across a wide cylindrical face such as a bore. */
2497
2637
  internalVerticesMode?: boolean;
2498
2638
  /** @description Extra post-pass refining triangles that bulge beyond the deflection (slower, set false for speed). */
2499
2639
  controlSurfaceDeflection?: boolean;
@@ -2540,7 +2680,7 @@ export interface components {
2540
2680
  meshAngle?: components["schemas"]["MeshAngle"];
2541
2681
  /** @description Use size-aware relative deflection per face. When true, meshPrecision is a fraction of each edge's length. Set to false for absolute deflection in model units. */
2542
2682
  meshRelative?: boolean;
2543
- /** @description Add interior vertices for better curved face fidelity (slower, set false for speed). */
2683
+ /** @description Mesh flat and cylindrical faces with vertices inside them, not only along their edges (default true). With false, triangles can cut straight across a wide cylindrical face such as a bore. */
2544
2684
  internalVerticesMode?: boolean;
2545
2685
  /** @description Extra post-pass refining triangles that bulge beyond the deflection (slower, set false for speed). */
2546
2686
  controlSurfaceDeflection?: boolean;
@@ -2738,7 +2878,7 @@ export interface components {
2738
2878
  /** @constant */
2739
2879
  mode: "free";
2740
2880
  };
2741
- /** @description Which formats the nested sheets and the flat patterns are written in, and their mesh quality. */
2881
+ /** @description Which formats the nested sheets and the flat patterns are written in, their mesh quality, and the unit of the DXF and SVG cut files. */
2742
2882
  UnfoldAndNestOutputOptions: {
2743
2883
  /** @description Output formats to generate; each gives a separate downloadable result. The nested sheets come in the formats of NestingOutputFormat, and 'flat-meshes' gives each solid's flat pattern triangulated where it was unfolded, tagged with its solidIndex, for showing beside the model; a flat that could not be meshed has no mesh there but is nested all the same, and its unfold report entry says why in 'meshError'. Give 'step' or 'stpz', not both. */
2744
2884
  formats: ("step" | "stpz" | "decomposed-mesh" | "gltf" | "dxf" | "svg" | "outlines" | "flat-meshes")[];
@@ -2748,6 +2888,8 @@ export interface components {
2748
2888
  gltfMeshPrecision?: components["schemas"]["MeshPrecision"];
2749
2889
  /** @description Turns the decomposed-mesh and flat-meshes outputs from Y-up, as the server models, to Z-up. It applies to those two only: a STEP output is always written Z-up, and a glTF output is always Y-up, as glTF asks. */
2750
2890
  adjustYtoZ?: boolean;
2891
+ /** @description The unit the 'dxf' and 'svg' cut files are written in: 'mm' (millimetres, the default), 'cm' (centimetres), 'm' (metres) or 'in' (inches). The drawing is scaled into it and each file states it, a DXF in its header ($INSUNITS) and an SVG in its width and height, so CAD and cutting software open it at its true size. It changes those two files only. A 'step' or 'stpz' file stays in millimetres, because a STEP file states its unit in its header and CAD programs convert it on import. 'gltf', 'decomposed-mesh' and 'flat-meshes' are written as they would be without it, holding the millimetre numbers unscaled. The 'outlines' JSON, the nesting report, the unfold report and every length of the request stay in millimetres. */
2892
+ unit?: components["schemas"]["LengthUnit"];
2751
2893
  };
2752
2894
  /** @description Nest the flat parts of uploaded STEP files onto sheets or a strip. A part is a planar face, coplanar faces such as an unfolded sheet-metal part, a plate solid, or a drawing of closed wires; 'stepFileIds' says how parts are read from a file. */
2753
2895
  NestingNestBody: {
@@ -2796,7 +2938,7 @@ export interface components {
2796
2938
  number
2797
2939
  ];
2798
2940
  };
2799
- /** @description Which formats the nested sheets are written in, and their mesh quality. */
2941
+ /** @description Which formats the nested sheets are written in, their mesh quality, and the unit of the DXF and SVG cut files. */
2800
2942
  NestingOutputOptions: {
2801
2943
  /** @description Output formats to generate; each gives a separate downloadable result. Give 'step' or 'stpz', not both. */
2802
2944
  formats: components["schemas"]["NestingOutputFormat"][];
@@ -2806,9 +2948,11 @@ export interface components {
2806
2948
  gltfMeshPrecision?: components["schemas"]["MeshPrecision"];
2807
2949
  /** @description Turns a decomposed-mesh output from Y-up, as the server models, to Z-up. It applies to decomposed-mesh only: a STEP output is always written Z-up, so a STEP sent in comes back as it went in, and a glTF output is always Y-up, as glTF asks. */
2808
2950
  adjustYtoZ?: boolean;
2951
+ /** @description The unit the 'dxf' and 'svg' cut files are written in: 'mm' (millimetres, the default), 'cm' (centimetres), 'm' (metres) or 'in' (inches). The drawing is scaled into it and each file states it, a DXF in its header ($INSUNITS) and an SVG in its width and height, so CAD and cutting software open it at its true size. It changes those two files only. A 'step' or 'stpz' file stays in millimetres, because a STEP file states its unit in its header and CAD programs convert it on import. 'gltf' and 'decomposed-mesh' are written as they would be without it, holding the millimetre numbers unscaled. The 'outlines' JSON, the nesting report and every length of the request stay in millimetres. */
2952
+ unit?: components["schemas"]["LengthUnit"];
2809
2953
  };
2810
2954
  /**
2811
- * @description The formats of the nested sheets: 'step' or 'stpz' (each sheet one part, holding its placed parts and its outline), 'gltf', 'decomposed-mesh' (the placed parts, triangulated), 'dxf' (an AutoCAD 2000 drawing in millimetres: the sheets' outlines on layer SHEETS and the parts' cut paths on layer PARTS, every arc, ellipse and spline exact), 'svg' (the same drawing as an SVG file in millimetres, each layer a group), or 'outlines' (the same cut paths as JSON, each copy in the frame of its sheet and named by its placement, for drawing the layout). A 'dxf' or 'svg' too large to write is left out while every other format is still written, and the task's metadata says why under 'outputsLeftOut' (format to reason); a caveat about a cut file that was written, such as a part whose faces could not be joined into one outline, is given under 'outputNotes' (format to note).
2955
+ * @description The formats of the nested sheets: 'step' or 'stpz' (each sheet one part, holding its placed parts and its outline), 'gltf', 'decomposed-mesh' (the placed parts, triangulated), 'dxf' (an AutoCAD 2000 drawing in millimetres, or in the unit 'outputs.unit' names: the sheets' outlines on layer SHEETS and the parts' cut paths on layer PARTS, every arc, ellipse and spline exact), 'svg' (the same drawing as an SVG file in the same unit, each layer a group), or 'outlines' (the same cut paths as JSON, each copy in the frame of its sheet and named by its placement, for drawing the layout). A 'dxf' or 'svg' too large to write is left out while every other format is still written, and the task's metadata says why under 'outputsLeftOut' (format to reason); a caveat about a cut file that was written, such as a part whose faces could not be joined into one outline, is given under 'outputNotes' (format to note).
2812
2956
  * @enum {string}
2813
2957
  */
2814
2958
  NestingOutputFormat: "step" | "stpz" | "decomposed-mesh" | "gltf" | "dxf" | "svg" | "outlines";
@@ -2840,6 +2984,369 @@ export interface components {
2840
2984
  /** @description The gap between sheets as they are laid out in a row in the output, in the parts' units (millimetres for parts read from STEP files). Defaults to a tenth of the widest sheet. */
2841
2985
  sheetGap?: number;
2842
2986
  };
2987
+ /** @description Draw a sheet, or a set of sheets, of the model in an uploaded STEP file: views laid out and aligned, hidden lines, sections with hatches, dimensions, holes, parts lists with balloons, flat patterns, the file's own annotations and a title block. A set is one PDF with a page for each sheet and one DXF and one SVG with the sheets side by side. */
2988
+ DrawingDrawBody: {
2989
+ /** @description ID of the previously uploaded STEP file (.step, .stp or gzip-compressed .stpz), at most 200 MB. Every placed part of the file is a part of the drawing, numbered from 0 in the order the file's structure gives them. */
2990
+ stepFileId: string;
2991
+ /** @description The unit a STEP file's numbers are really in, when its header states another unit or none: some exporters write a model drawn in metres under a millimetre header. Each file is scaled from it, so the model is read in millimetres, the unit every length of the request and its results is in. A header naming no unit counts as millimetres; a file whose header names a unit other than mm, cm, m or in, or several different ones, is refused, since its unit is converted already. Left out, each file's own unit is used. */
2992
+ fileUnit?: components["schemas"]["LengthUnit"];
2993
+ /** @description What to draw. The default sheet when left out. Not given with 'planFileId'. */
2994
+ plan?: components["schemas"]["DrawingPlan"];
2995
+ /** @description ID of a previously uploaded JSON file holding the plan (named .json or of type application/json), at most 32 MB, in place of 'plan': for a set written out past the 128 KB a request body takes. It is held to the same rules as 'plan', and a refusal names the field inside the file. Not given with 'plan'. */
2996
+ planFileId?: string;
2997
+ /** @description Output formats. Left out, the sheet is written as PDF. */
2998
+ outputs?: components["schemas"]["DrawingOutputOptions"];
2999
+ onlySheets?: components["schemas"]["DrawingOnlySheets"];
3000
+ /** @description The id of an earlier draw or inspection of this same uploaded file, read in the same 'fileUnit', whose model to take: the parts are taken from the model that task kept instead of being read from the file again, which on a large file is most of what an inspection or a sheet takes, and the sheets are the same, byte for byte. The task must be this account's, completed and not expired, started with an API key of the same storage as this request's, and have kept its model, which its report says under run.model.kept; a task that does not qualify refuses the request before it is queued, saying why, with the error's details naming the field 'modelFromTask'. Should the kept model turn out unusable once the task runs, the file is read instead and run.model.notReused says why. */
3001
+ modelFromTask?: string;
3002
+ };
3003
+ /** @description What to draw: one sheet, or a set of sheets. Every setting has a default, so an empty plan draws a default sheet; the inspect route returns the plan with every setting spelled out and every sheet of a set written out, ready to edit and send to the draw route. A request body takes at most 128 KB, so a set written out past that, of a model with hundreds of sheets or thousands of parts beneath every level, is uploaded as a JSON file and named in 'planFileId', or sent as its rule. */
3004
+ DrawingPlan: {
3005
+ sheet?: components["schemas"]["DrawingSheet"];
3006
+ /**
3007
+ * @description The unit every length the sheet prints is written in: 'mm', millimetres, or 'in', decimal inches. It covers the overall sizes, ordinates, diameters, radius callouts, the hole table, the bend table's radius, the flat pattern's sizes and a custom sheet's size in the title block, whose UNITS cell says MM or IN; angles stay in degrees. In inches an automatic scale comes from the inch series (1:2, 1:4, 1:8, 1:10, 1:20 and so on), and the DXF and SVG are written in inches; the PDF keeps the paper's millimetres, and the geometry, the plan's lengths and every number of the report stay in millimetres. Left out, the STEP file's own unit decides: a file in inches, by its header or by 'fileUnit', is drawn in inches, any other in millimetres.
3008
+ * @enum {string}
3009
+ */
3010
+ units?: "mm" | "in";
3011
+ /** @description The places a printed length is written to: in millimetres at most that many, 0 to 4, idle zeros and the point dropped (12.5, 12); in inches exactly that many, 1 to 4, with no zero before the point (.250, 1.500). 2 in millimetres and 3 in inches when left out. A plan that names no units and 0 places is refused when the file proves to be in inches. */
3012
+ decimals?: number;
3013
+ /** @description What the view names mean: 'front' looks along this frame and the other names turn with it. Left out, a sheet is drawn from its part's own front, square to the part's own faces (its plain faces and the axes of its round ones, the space's axes when the part is square to them), looking along the axis it shows most of with its long side across: a plate looks along its thickness and a turned part across its axis. The resolved plan writes that front into the sheet. A sheet of a list keeps the plan's front, or the space's axes, unless it says turned. 'annotations' asks for the front most of the sheet's drawn annotations read upright from, when it draws them; annotations never choose or tilt a front otherwise. */
3014
+ front?: "annotations" | components["schemas"]["DrawingFrame"];
3015
+ /** @description The parts to draw by number, each once, or 'all'. Left out or 'all', every part that holds a face when any part does: loose curves beside solids, such as the curves an AP203 file draws its notes with, are left out and counted in the report's model.faceless. */
3016
+ parts?: "all" | number[];
3017
+ /** @description The views, the first being the base the others line up with; views a plan states are kept as stated. Left out, a sheet the plan or a rule makes gets the views that describe its part: a plate its front and one edge view, a turned part its side and its end, any other part front, top and right, each with the isometric, which may take a smaller scale of its own. A view that does not fit beside them at their scale goes to a continuation sheet, and when the principal views' annotation letters would be under 2.5 mm together, each principal view whose letters would read on a sheet of its own gets one (the front stays); each continuation sheet says why in its pagination. A sheet of a list that states no views gets front, top, right and isometric. Empty only beside a flat pattern, for a sheet of the flat pattern alone, or beside shared notes, for a sheet of the general notes alone. */
3018
+ views?: components["schemas"]["DrawingView"][];
3019
+ sections?: components["schemas"]["DrawingSection"][];
3020
+ /** @description How hidden lines are found. 'auto', the default, keeps the exact method to a budget: it draws the sheet exactly when the exact method is predicted to take 10 s or less for all its views together on a native build of the kernel (about 12 s on CAD Cloud, whose kernel takes 1.2 times as long), and by sight otherwise. The prediction weighs the faces by what they cost the exact method: a freeform face (a B-spline or Bezier surface, an offset of one, or a surface turned from a B-spline or Bezier curve) weighs as 160 plain faces, more when its normals turn round more than once, as on a coil spring, and a torus up to as much as a freeform face. The report's run.chosenBy says 'budget' or 'within', and run.exactEstimate gives the predicted seconds on CAD Cloud, about, whenever a view was drawn by sight. On a sheet over the budget a view is drawn by sight even when a few faces cannot be meshed; they hide nothing, and a warning says so. 'exact' works from the geometry alone; 'sight' draws the model's own edges and decides what is hidden from a picture of its mesh, seconds where 'exact' takes minutes on a large assembly; 'mesh' draws the edges of a tessellation. */
3021
+ lines?: {
3022
+ /** @enum {string} */
3023
+ method?: "auto" | "exact" | "sight" | "mesh";
3024
+ };
3025
+ /** @description False for a sheet without a title block; true, or left out, for one with empty fields. */
3026
+ titleBlock?: boolean | components["schemas"]["DrawingTitleBlock"];
3027
+ revisions?: components["schemas"]["DrawingRevision"][];
3028
+ /** @description 'auto' sizes the first view's width and height and the one size each top, bottom, left or right view of it adds; on a sheet of one part it also sizes every distinct outside diameter once, in the first view that sees it from the side, and calls out every distinct radius of a round once, in the first view that sees it end-on. 'ordinate' gives the same, except that the first view is measured by ordinates from the lower left corner of the part's box, the corner the hole table measures from, to each hole centre it sees end-on and to the far sides. Left out, a plan without 'sheets', like a sheet a rule makes, gets 'auto', and a sheet given in a 'sheets' list draws none unless it or the plan asks for them. False draws none. */
3029
+ dimensions?: false | "auto" | "ordinate";
3030
+ /** @description 'auto' recognises the holes (through, blind, counterbored, countersunk), draws their centre marks and lines, tags those the first view sees end-on and lists them in a hole table. Left out, a plan without 'sheets', like a sheet a rule makes, gets 'auto' on a sheet of one part, and a sheet given in a 'sheets' list draws none unless it or the plan asks for them. False draws none. */
3031
+ holes?: false | "auto";
3032
+ /** @description True, the default, lists the holes 'auto' tags in a hole table; a table too long for its sheet is left out with a warning, and a set continues it on sheets of its own instead. False leaves the table out and keeps the tags and centre marks. Given as rows, the sheet is a hole table alone and takes no views, sections, dimensions, holes, flat pattern, balloons, annotations or parts list. */
3033
+ holeTable?: boolean | components["schemas"]["DrawingHoleTable"];
3034
+ /** @description True adds a sheet-metal part's flat pattern as a view, with its bend lines and a bend table; 'auto' does so only when the part unfolds cleanly with a bend that folds: a part whose unfold is not clean, such as a casting, gets none, and a warning says why. Only a sheet of one part has one. With a flat pattern, views may be empty: the sheet is the flat pattern alone. Left out, a plan without 'sheets', like a sheet a rule makes, gets 'auto' on a sheet of one part, and a sheet given in a 'sheets' list has none unless it or the plan asks for one. False leaves it out. */
3035
+ flat?: boolean | "auto" | components["schemas"]["DrawingFlat"];
3036
+ /** @description True draws the dimensions, tolerances, datums and notes the STEP file stores (AP242), each on a view that faces the plane it was made in, adding views for planes none of the plan's views faces, and turns a line of letters that would read from the top or the left to read from the bottom or the right. Only a sheet of every part draws them: the model's own where they stand and each product's once, at its first instance. Given as an object, 'product' and 'instance' name one product's annotations, drawn where that instance stands whatever parts the sheet shows (a set made by a rule names them so on the sheet of each product that has annotations), and 'addViews' and 'notes' false leave the annotations no view faces and the general notes to another sheet of the set. Annotations never turn the front unless 'front' is 'annotations'. False when left out. */
3037
+ annotations?: boolean | components["schemas"]["DrawingAnnotatedProduct"];
3038
+ /** @description What the sheet shares with the other sheets of its part. A resolved set writes it; a plan seldom needs to: send it back as the set gives it. */
3039
+ shared?: components["schemas"]["DrawingShared"];
3040
+ /** @description True gives every assembly's sheet a list of what goes directly into it (item, name, quantity, the sheet it is drawn on) and, when the list has at most 40 rows, balloons pointing at them; a list too long for the sheet takes sheets of its own after it. Not true with a hole table alone. A list given as rows is drawn on every sheet. False, the default, draws none. */
3041
+ partsList?: boolean | components["schemas"]["DrawingPartsList"];
3042
+ /** @description With a parts list of true, false leaves its balloons out. Given as items, balloons around one view of every sheet, or around one section when the plan has no rule. */
3043
+ balloons?: boolean | components["schemas"]["DrawingBalloons"];
3044
+ /** @description Several sheets: a list, each sheet stating what it changes of the plan (a sheet stating only parts is drawn with everything else as the plan says), or a rule that makes the list from the model's structure. One sheet of the plan when left out. The settings at the top of the plan are laid under every sheet. */
3045
+ sheets?: components["schemas"]["DrawingSetSheet"][] | components["schemas"]["DrawingSetRule"];
3046
+ };
3047
+ /** @description The sheet a drawing is laid out on. */
3048
+ DrawingSheet: {
3049
+ /** @description A standard sheet by name, or a custom one by its width and height in millimetres. A3 when left out. */
3050
+ size?: ("A0" | "A1" | "A2" | "A3" | "A4" | "ANSI-A" | "ANSI-B" | "ANSI-C" | "ANSI-D" | "ANSI-E") | {
3051
+ width: number;
3052
+ height: number;
3053
+ };
3054
+ /**
3055
+ * @description Landscape when left out. Not given with a custom size, which is drawn as its width and height say.
3056
+ * @enum {string}
3057
+ */
3058
+ orientation?: "landscape" | "portrait";
3059
+ /**
3060
+ * @description First-angle on ISO and custom sheets, third-angle on ANSI sheets, unless given.
3061
+ * @enum {string}
3062
+ */
3063
+ projection?: "first-angle" | "third-angle";
3064
+ /** @description The sheet's scale. 'fill', the default, takes the largest scale at which every view fits from the scales ISO 5455 recommends and those GOST 2.302 adds (1:2.5, 1:4, 1:15, 1:25, 1:40, 1:75 and the like); 'auto' keeps to the preferred 1, 2 and 5 steps. A fixed scale that does not fit is refused with the scale and the sheet that would. */
3065
+ scale?: ("fill" | "auto") | components["schemas"]["DrawingScale"];
3066
+ };
3067
+ /** @description A drawing scale, numerator to denominator: 1 to 50 is { numerator: 1, denominator: 50 }. Between 1:1000 and 100:1. */
3068
+ DrawingScale: {
3069
+ numerator: number;
3070
+ denominator: number;
3071
+ };
3072
+ /** @description A view frame in the model's space, which is Y-up as a STEP file is read: millimetres, an origin, a normal and a direction. */
3073
+ DrawingFrame: {
3074
+ /** @description A point of the view's plane; the origin of the model's space when left out. */
3075
+ origin?: [
3076
+ number,
3077
+ number,
3078
+ number
3079
+ ];
3080
+ /** @description The side the eye is on: the view looks back along it. For a section it is the side that is cut away. */
3081
+ normal: [
3082
+ number,
3083
+ number,
3084
+ number
3085
+ ];
3086
+ /** @description What runs to the right in the view. It need not be of unit length nor exactly square to the normal, but it may not be parallel to it. */
3087
+ direction: [
3088
+ number,
3089
+ number,
3090
+ number
3091
+ ];
3092
+ };
3093
+ /** @description One view of the model on the sheet. */
3094
+ DrawingView: {
3095
+ /**
3096
+ * @description A named view of the front frame. Give one of name, frame and saved.
3097
+ * @enum {string}
3098
+ */
3099
+ name?: "front" | "top" | "bottom" | "left" | "right" | "back" | "isometric";
3100
+ /** @description A view by its own frame. Give one of name, frame and saved. */
3101
+ frame?: components["schemas"]["DrawingFrame"];
3102
+ /** @description A view the STEP file saved (an AP242 model view), by its name: the sheet looks along it with its up upward, captioned with its name and without hidden lines unless told otherwise. A name the file does not hold refuses the sheet. Give one of name, frame and saved. */
3103
+ saved?: string;
3104
+ /** @description Whether hidden edges are drawn, dashed. True unless the view is the isometric one. */
3105
+ hiddenLines?: boolean;
3106
+ /** @description Whether edges where faces meet without a crease, such as the ends of a fillet, are drawn as thin lines. True when left out; seams of round faces are never drawn. */
3107
+ smoothEdges?: boolean;
3108
+ /** @description The view's own scale. A view with its own scale is placed freely instead of in line with the others. */
3109
+ scale?: components["schemas"]["DrawingScale"];
3110
+ /** @description A text under the view. */
3111
+ caption?: string;
3112
+ };
3113
+ /** @description One section through the model. */
3114
+ DrawingSection: {
3115
+ /** @description The section's letter, as in SECTION A-A. No two sections share one. */
3116
+ label: string;
3117
+ /** @description The cutting plane is the frame's plane. What lies on the normal's side is cut away and the rest is seen from there. */
3118
+ frame: components["schemas"]["DrawingFrame"];
3119
+ /** @description The index of the view that carries the cutting-plane line. 0 when left out. */
3120
+ shownOn?: number;
3121
+ /** @description False for no hatch, true or left out for the default one. */
3122
+ hatch?: boolean | components["schemas"]["DrawingHatch"];
3123
+ scale?: components["schemas"]["DrawingScale"];
3124
+ };
3125
+ /** @description The hatch on what a section's plane cuts: ansi31 at 45 degrees, 3 mm apart, when left out. */
3126
+ DrawingHatch: {
3127
+ /** @enum {string} */
3128
+ pattern?: "ansi31" | "ansi32" | "ansi37" | "solid";
3129
+ /** @description Degrees. */
3130
+ angle?: number;
3131
+ /** @description Millimetres on paper between the hatch lines. */
3132
+ spacing?: number;
3133
+ };
3134
+ /** @description The fields of the title block. Every field is empty unless given. */
3135
+ DrawingTitleBlock: {
3136
+ title?: string;
3137
+ number?: string;
3138
+ material?: string;
3139
+ revision?: string;
3140
+ /** @description A text like any other: nothing defaults to today, so the same plan draws the same sheet on any day. */
3141
+ date?: string;
3142
+ drawnBy?: string;
3143
+ checkedBy?: string;
3144
+ /** @description Who approved the drawing, one of the fields ISO 7200 makes mandatory: shown as APPROVED BY in a row of its own when given. */
3145
+ approvedBy?: string;
3146
+ /** @description What kind of document the sheet is, such as Assembly drawing or Detail drawing, one of the fields ISO 7200 makes mandatory: shown as DOCUMENT TYPE in a row of its own when given. */
3147
+ documentType?: string;
3148
+ company?: string;
3149
+ finish?: string;
3150
+ custom?: {
3151
+ caption: string;
3152
+ value?: string;
3153
+ }[];
3154
+ /** @description The sheet's number in a set, such as 2 / 7: shown as SHEET when given. A set of several sheets writes it into every title block. */
3155
+ sheet?: string;
3156
+ /** @description How many of the part are made: shown as QTY when given. A set writes the model's count of the product a sheet shows. */
3157
+ quantity?: string;
3158
+ };
3159
+ /** @description One row of the revision table. */
3160
+ DrawingRevision: {
3161
+ mark?: string;
3162
+ description?: string;
3163
+ date?: string;
3164
+ by?: string;
3165
+ };
3166
+ /** @description A hole table alone: the sheet is these rows and nothing else, in columns as a parts list alone stands. A set writes such sheets after a part's sheet whose hole table runs over it. */
3167
+ DrawingHoleTable: {
3168
+ rows: components["schemas"]["DrawingHoleTableRow"][];
3169
+ };
3170
+ /** @description One row of a hole table, as texts: the hole's tag, its X and Y from the lower left corner of the part's box in the first view, its size and its depth. A text left out is empty. */
3171
+ DrawingHoleTableRow: {
3172
+ tag?: string;
3173
+ x?: string;
3174
+ y?: string;
3175
+ size?: string;
3176
+ depth?: string;
3177
+ };
3178
+ /** @description How a sheet-metal part is unfolded for its flat pattern. */
3179
+ DrawingFlat: {
3180
+ /** @description Where the neutral fibre lies in the thickness, 0 to 1. 0.5 when left out, as the unfold route takes it. */
3181
+ kFactor?: number;
3182
+ /** @description The sheet's thickness in millimetres; 0, the default, finds it. */
3183
+ thickness?: number;
3184
+ /** @description True draws the flat pattern only when the part unfolds with at least one bend, and says nothing otherwise. */
3185
+ auto?: boolean;
3186
+ };
3187
+ /** @description Which of the annotations the STEP file stores a sheet draws, and where: one product's, moved to where one of its instances stands, or the whole model's; and whether views are added for them and the general notes drawn, or both left to another sheet of the set. */
3188
+ DrawingAnnotatedProduct: {
3189
+ /** @description The product whose annotations alone are drawn, by the number the inspection's set gives it, whatever parts the sheet shows. Left out, the whole model's annotations, as true draws them on a sheet of every part. */
3190
+ product?: number;
3191
+ /** @description Which of the product's instances they are placed at, counted from 0 in the order of the model's structure, depth first. 0 when left out; given only with a product. */
3192
+ instance?: number;
3193
+ /** @description False adds no view for annotations that none of the plan's views faces: another sheet of the set draws them, and the report counts them in annotations.elsewhere instead of warning. True when left out. */
3194
+ addViews?: boolean;
3195
+ /** @description False leaves the general notes, those that belong to no shape, to another sheet of the set, counted in annotations.elsewhere the same way. True when left out. */
3196
+ notes?: boolean;
3197
+ };
3198
+ /** @description What a sheet shares with the other sheets of its part. A resolved set writes it into the pages of a sheet it paginated, a continuation sheet for each view that did not fit or would not read beside the others, for the callouts and balloons the first sheet had no room for, and for general notes, so the set, sent back, draws the same sheets. Not given on a parts list or a hole table alone. */
3199
+ DrawingShared: {
3200
+ /** @description The views the pages of one sheet share, in their order: the automatic sizes, diameters and radius callouts of dimensions are decided over all of them, as one sheet of every view would give them, and each page draws those that fall on its own views (matched by frame), so no size is given on two pages. */
3201
+ views?: components["schemas"]["DrawingView"][];
3202
+ marks?: components["schemas"]["DrawingSharedMark"][];
3203
+ elsewhere?: components["schemas"]["DrawingLeftMark"][];
3204
+ /** @description True makes the sheet the general notes alone, laid over its whole frame, for notes the first sheet had no room for; its views are then an empty list. False when left out. */
3205
+ notes?: boolean;
3206
+ };
3207
+ /** @description A radius callout or a balloon another sheet had no room for, drawn on this sheet with a leader to the point it marks. */
3208
+ DrawingSharedMark: {
3209
+ /** @description The index of the sheet's view it stands around. */
3210
+ view: number;
3211
+ /** @description A radius callout's text, such as 4X R10, or the X0 Y0 of a hole table's origin. Give a callout or a balloon. */
3212
+ callout?: string;
3213
+ /** @description A balloon's text, a hole tag such as A12 included. Give a callout or a balloon. */
3214
+ balloon?: string;
3215
+ /** @description The point the leader points at, in the model's space. */
3216
+ at: [
3217
+ number,
3218
+ number,
3219
+ number
3220
+ ];
3221
+ /** @description A radius callout's arc centre in the model's space, which leads it along the arc's radius as on its first sheet. */
3222
+ centre?: [
3223
+ number,
3224
+ number,
3225
+ number
3226
+ ];
3227
+ };
3228
+ /** @description A radius callout or a balloon of this sheet's view that another sheet of the set carries: left out here without a warning. */
3229
+ DrawingLeftMark: {
3230
+ /** @description The index of the sheet's view it stands around. */
3231
+ view: number;
3232
+ /** @description A radius callout's text. Give a callout or a balloon. */
3233
+ callout?: string;
3234
+ /** @description A balloon's text, a hole tag included. Give a callout or a balloon. */
3235
+ balloon?: string;
3236
+ };
3237
+ /** @description A parts list drawn above the title block. */
3238
+ DrawingPartsList: {
3239
+ rows: components["schemas"]["DrawingPartsListRow"][];
3240
+ /** @description True makes the sheet the list and nothing else: it shows no part and takes no views, sections, dimensions, holes, flat pattern or balloons. */
3241
+ alone?: boolean;
3242
+ };
3243
+ /** @description One row of a parts list: as texts, the item number, the name, the quantity and the sheet the part is drawn on, and the number of the product it lists. */
3244
+ DrawingPartsListRow: {
3245
+ item?: string;
3246
+ name?: string;
3247
+ quantity?: string;
3248
+ sheet?: string;
3249
+ /** @description The product the row lists, by the number the inspection gives it. A set keeps the row's sheet true by it: resolved, the row's sheet is where that product's first sheet stands in the set, or empty when no sheet shows it, so a set whose sheets were moved or removed is put right by resolving it again. The rows a set writes name their product; a row without one is left as given. */
3250
+ product?: number;
3251
+ };
3252
+ /** @description Balloons around one view or one section, each with a leader to a part it names. */
3253
+ DrawingBalloons: {
3254
+ /** @description The index of the view the balloons stand around, sections not counted. 0 when left out. */
3255
+ view?: number;
3256
+ /** @description The label of a section of the plan: the balloons stand around that section instead of a view and point at what its cut keeps. Give a view or a section, not both. */
3257
+ section?: string;
3258
+ /** @description Each balloon's text and the parts it may point at; it points at whichever of them shows. An item none of whose parts shows gets no balloon and a warning. */
3259
+ items: {
3260
+ item: string;
3261
+ parts: number[];
3262
+ }[];
3263
+ };
3264
+ /** @description One sheet of a set: the settings it states replace the plan's, except sheet and titleBlock, whose fields are laid over the plan's one by one. */
3265
+ DrawingSetSheet: {
3266
+ sheet?: components["schemas"]["DrawingSheet"];
3267
+ /**
3268
+ * @description The unit every length the sheet prints is written in: 'mm', millimetres, or 'in', decimal inches. It covers the overall sizes, ordinates, diameters, radius callouts, the hole table, the bend table's radius, the flat pattern's sizes and a custom sheet's size in the title block, whose UNITS cell says MM or IN; angles stay in degrees. In inches an automatic scale comes from the inch series (1:2, 1:4, 1:8, 1:10, 1:20 and so on), and the DXF and SVG are written in inches; the PDF keeps the paper's millimetres, and the geometry, the plan's lengths and every number of the report stay in millimetres. Left out, the STEP file's own unit decides: a file in inches, by its header or by 'fileUnit', is drawn in inches, any other in millimetres.
3269
+ * @enum {string}
3270
+ */
3271
+ units?: "mm" | "in";
3272
+ /** @description The places a printed length is written to: in millimetres at most that many, 0 to 4, idle zeros and the point dropped (12.5, 12); in inches exactly that many, 1 to 4, with no zero before the point (.250, 1.500). 2 in millimetres and 3 in inches when left out. A plan that names no units and 0 places is refused when the file proves to be in inches. */
3273
+ decimals?: number;
3274
+ /** @description What the view names mean: 'front' looks along this frame and the other names turn with it. Left out, a sheet is drawn from its part's own front, square to the part's own faces (its plain faces and the axes of its round ones, the space's axes when the part is square to them), looking along the axis it shows most of with its long side across: a plate looks along its thickness and a turned part across its axis. The resolved plan writes that front into the sheet. A sheet of a list keeps the plan's front, or the space's axes, unless it says turned. 'annotations' asks for the front most of the sheet's drawn annotations read upright from, when it draws them; annotations never choose or tilt a front otherwise. */
3275
+ front?: "annotations" | components["schemas"]["DrawingFrame"];
3276
+ /** @description The parts to draw by number, each once, or 'all'. Left out or 'all', every part that holds a face when any part does: loose curves beside solids, such as the curves an AP203 file draws its notes with, are left out and counted in the report's model.faceless. */
3277
+ parts?: "all" | number[];
3278
+ /** @description The views, the first being the base the others line up with; views a plan states are kept as stated. Left out, a sheet the plan or a rule makes gets the views that describe its part: a plate its front and one edge view, a turned part its side and its end, any other part front, top and right, each with the isometric, which may take a smaller scale of its own. A view that does not fit beside them at their scale goes to a continuation sheet, and when the principal views' annotation letters would be under 2.5 mm together, each principal view whose letters would read on a sheet of its own gets one (the front stays); each continuation sheet says why in its pagination. A sheet of a list that states no views gets front, top, right and isometric. Empty only beside a flat pattern, for a sheet of the flat pattern alone, or beside shared notes, for a sheet of the general notes alone. */
3279
+ views?: components["schemas"]["DrawingView"][];
3280
+ sections?: components["schemas"]["DrawingSection"][];
3281
+ /** @description How hidden lines are found. 'auto', the default, keeps the exact method to a budget: it draws the sheet exactly when the exact method is predicted to take 10 s or less for all its views together on a native build of the kernel (about 12 s on CAD Cloud, whose kernel takes 1.2 times as long), and by sight otherwise. The prediction weighs the faces by what they cost the exact method: a freeform face (a B-spline or Bezier surface, an offset of one, or a surface turned from a B-spline or Bezier curve) weighs as 160 plain faces, more when its normals turn round more than once, as on a coil spring, and a torus up to as much as a freeform face. The report's run.chosenBy says 'budget' or 'within', and run.exactEstimate gives the predicted seconds on CAD Cloud, about, whenever a view was drawn by sight. On a sheet over the budget a view is drawn by sight even when a few faces cannot be meshed; they hide nothing, and a warning says so. 'exact' works from the geometry alone; 'sight' draws the model's own edges and decides what is hidden from a picture of its mesh, seconds where 'exact' takes minutes on a large assembly; 'mesh' draws the edges of a tessellation. */
3282
+ lines?: {
3283
+ /** @enum {string} */
3284
+ method?: "auto" | "exact" | "sight" | "mesh";
3285
+ };
3286
+ /** @description False for a sheet without a title block; true, or left out, for one with empty fields. */
3287
+ titleBlock?: boolean | components["schemas"]["DrawingTitleBlock"];
3288
+ revisions?: components["schemas"]["DrawingRevision"][];
3289
+ /** @description 'auto' sizes the first view's width and height and the one size each top, bottom, left or right view of it adds; on a sheet of one part it also sizes every distinct outside diameter once, in the first view that sees it from the side, and calls out every distinct radius of a round once, in the first view that sees it end-on. 'ordinate' gives the same, except that the first view is measured by ordinates from the lower left corner of the part's box, the corner the hole table measures from, to each hole centre it sees end-on and to the far sides. Left out, a plan without 'sheets', like a sheet a rule makes, gets 'auto', and a sheet given in a 'sheets' list draws none unless it or the plan asks for them. False draws none. */
3290
+ dimensions?: false | "auto" | "ordinate";
3291
+ /** @description 'auto' recognises the holes (through, blind, counterbored, countersunk), draws their centre marks and lines, tags those the first view sees end-on and lists them in a hole table. Left out, a plan without 'sheets', like a sheet a rule makes, gets 'auto' on a sheet of one part, and a sheet given in a 'sheets' list draws none unless it or the plan asks for them. False draws none. */
3292
+ holes?: false | "auto";
3293
+ /** @description True, the default, lists the holes 'auto' tags in a hole table; a table too long for its sheet is left out with a warning, and a set continues it on sheets of its own instead. False leaves the table out and keeps the tags and centre marks. Given as rows, the sheet is a hole table alone and takes no views, sections, dimensions, holes, flat pattern, balloons, annotations or parts list. */
3294
+ holeTable?: boolean | components["schemas"]["DrawingHoleTable"];
3295
+ /** @description True adds a sheet-metal part's flat pattern as a view, with its bend lines and a bend table; 'auto' does so only when the part unfolds cleanly with a bend that folds: a part whose unfold is not clean, such as a casting, gets none, and a warning says why. Only a sheet of one part has one. With a flat pattern, views may be empty: the sheet is the flat pattern alone. Left out, a plan without 'sheets', like a sheet a rule makes, gets 'auto' on a sheet of one part, and a sheet given in a 'sheets' list has none unless it or the plan asks for one. False leaves it out. */
3296
+ flat?: boolean | "auto" | components["schemas"]["DrawingFlat"];
3297
+ /** @description True draws the dimensions, tolerances, datums and notes the STEP file stores (AP242), each on a view that faces the plane it was made in, adding views for planes none of the plan's views faces, and turns a line of letters that would read from the top or the left to read from the bottom or the right. Only a sheet of every part draws them: the model's own where they stand and each product's once, at its first instance. Given as an object, 'product' and 'instance' name one product's annotations, drawn where that instance stands whatever parts the sheet shows (a set made by a rule names them so on the sheet of each product that has annotations), and 'addViews' and 'notes' false leave the annotations no view faces and the general notes to another sheet of the set. Annotations never turn the front unless 'front' is 'annotations'. False when left out. */
3298
+ annotations?: boolean | components["schemas"]["DrawingAnnotatedProduct"];
3299
+ /** @description What the sheet shares with the other sheets of its part. A resolved set writes it; a plan seldom needs to: send it back as the set gives it. */
3300
+ shared?: components["schemas"]["DrawingShared"];
3301
+ /** @description The sheet's name in the report; a sheet made for a product is named after it. */
3302
+ name?: string;
3303
+ /** @description The product of the model the sheet documents, by the number the inspection gives it: its parts list rows and its quantity come from it. */
3304
+ product?: number;
3305
+ /** @description True turns the sheet to its own part's front, square to the part's own faces, when the sheet states no front of its own: the plan's front frame is dropped for it, while a front of 'annotations' is kept. */
3306
+ turned?: boolean;
3307
+ /** @description Why the sheet continues the one before it, as a resolved set writes it on each continuation sheet: a view that did not fit beside the principal views, or principal views whose annotation letters were too small together. Sent back with the set, it marks the sheet as a continuation, so the set reads back to itself. */
3308
+ pagination?: string;
3309
+ /** @description A parts list of this sheet's own, or false for none, whatever the plan says. */
3310
+ partsList?: false | components["schemas"]["DrawingPartsList"];
3311
+ /** @description Balloons of this sheet's own, or false for none. */
3312
+ balloons?: false | components["schemas"]["DrawingBalloons"];
3313
+ };
3314
+ /** @description Sheets made from the model's product structure, each product once, its instances counted as its quantity. The plan's sections are drawn on the overview sheet alone and every sheet draws a product of the model, so a plan with a rule takes no balloons around a section and no parts list or hole table alone. */
3315
+ DrawingSetRule: {
3316
+ /**
3317
+ * @description 'structure': the whole model, then each assembly and part in the order of the model's structure, every assembly followed at once by what goes into it; 'parts': the whole model, then every distinct part; 'assemblies': the whole model and every assembly, no part.
3318
+ * @enum {string}
3319
+ */
3320
+ auto: "structure" | "parts" | "assemblies";
3321
+ /** @description Whether the first sheet shows the whole model, with 'parts'. True when left out; 'structure' and 'assemblies' always start with it. */
3322
+ overview?: boolean;
3323
+ /** @description Whether every sheet the rule makes, the overview included, is turned to its own part's front; every sheet but the overview drops the plan's front frame, and a front of 'annotations' is kept by all. True when left out; false keeps every sheet on the plan's front, or the space's axes. */
3324
+ turned?: boolean;
3325
+ /** @description The most sheets to make; a model that takes more is refused, saying how many it would take. 500 when left out. */
3326
+ most?: number;
3327
+ /** @description How many levels of assemblies are opened: an assembly below it is drawn as one part and gets no sheets of its own. 64 when left out, the deepest a model is read to. */
3328
+ depth?: number;
3329
+ };
3330
+ /** @description Which formats the drawing sheet is written in. */
3331
+ DrawingOutputOptions: {
3332
+ /** @description The files to write the sheet as; each gives a separate downloadable result. Left out, the sheet is written as PDF. */
3333
+ formats: ("svg" | "dxf" | "pdf")[];
3334
+ };
3335
+ /** @description The sheets of the set to draw, by their index in it counting from 0, as the inspection's 'set' and a drawn set's report list them; the others are not drawn. Each sheet is drawn and written as it is in the whole set, its title block numbering it among all of them (SHEET 2 / 5) and its DXF and SVG in the unit the whole set's are, that of its first sheet, and the files hold only the sheets named, in the set's order, laid out as a set of their own; each sheet of the report gives its 'index' and the report gives 'setSheets', how many the whole set has. An index past the set's last sheet fails the task. Left out, every sheet is drawn. With the 'fingerprint' every sheet of an inspection's set and of a drawing carries, an app that keeps the sheets it drew asks only for those whose fingerprint it does not hold. */
3336
+ DrawingOnlySheets: number[];
3337
+ /** @description Read the model in an uploaded STEP file for a drawing without drawing it: its parts and size, the plan with every setting resolved, the layout that plan gives, the sections it could have, the views the file saved ('savedViews'), every part with the name of its product ('parts') and every sheet of the plan written out ('set'). */
3338
+ DrawingInspectBody: {
3339
+ /** @description ID of the previously uploaded STEP file (.step, .stp or gzip-compressed .stpz), at most 200 MB. Every placed part of the file is a part of the drawing, numbered from 0 in the order the file's structure gives them. */
3340
+ stepFileId: string;
3341
+ /** @description The unit a STEP file's numbers are really in, when its header states another unit or none: some exporters write a model drawn in metres under a millimetre header. Each file is scaled from it, so the model is read in millimetres, the unit every length of the request and its results is in. A header naming no unit counts as millimetres; a file whose header names a unit other than mm, cm, m or in, or several different ones, is refused, since its unit is converted already. Left out, each file's own unit is used. */
3342
+ fileUnit?: components["schemas"]["LengthUnit"];
3343
+ /** @description A plan to resolve. The default sheet when left out. Not given with 'planFileId'. */
3344
+ plan?: components["schemas"]["DrawingPlan"];
3345
+ /** @description ID of a previously uploaded JSON file holding the plan (named .json or of type application/json), at most 32 MB, in place of 'plan': for a set written out past the 128 KB a request body takes. It is held to the same rules as 'plan', and a refusal names the field inside the file. Not given with 'plan'. */
3346
+ planFileId?: string;
3347
+ /** @description The id of an earlier draw or inspection of this same uploaded file, read in the same 'fileUnit', whose model to take: the parts are taken from the model that task kept instead of being read from the file again, which on a large file is most of what an inspection or a sheet takes, and the sheets are the same, byte for byte. The task must be this account's, completed and not expired, started with an API key of the same storage as this request's, and have kept its model, which its report says under run.model.kept; a task that does not qualify refuses the request before it is queued, saying why, with the error's details naming the field 'modelFromTask'. Should the kept model turn out unusable once the task runs, the file is read instead and run.model.notReused says why. */
3348
+ modelFromTask?: string;
3349
+ };
2843
3350
  /** @description Request a pre-signed upload URL. After receiving the URL, PUT the raw file bytes to it within the expiration window. */
2844
3351
  FileUploadBody: {
2845
3352
  /** @description Original filename including extension (e.g. 'part.step', 'model.obj'). Used for display and format detection. */
@@ -2899,6 +3406,24 @@ export interface components {
2899
3406
  number,
2900
3407
  number
2901
3408
  ];
3409
+ /** @description Where the bend's centre line starts on the returned flat pattern, in the flat's own frame: the middle of the bend zone, as long as bendLineLength. A sharp fold's is the edge its flanges share. Absent for a bend the layout cut, and for a 0-degree join of two coplanar panels, which draws no bend line. */
3410
+ flatLineStart?: [
3411
+ number,
3412
+ number,
3413
+ number
3414
+ ];
3415
+ /** @description Where the bend's centre line ends on the returned flat pattern. */
3416
+ flatLineEnd?: [
3417
+ number,
3418
+ number,
3419
+ number
3420
+ ];
3421
+ /** @description The middle of the bend's centre line on the returned flat pattern, where a bend tag stands. */
3422
+ flatLineMid?: [
3423
+ number,
3424
+ number,
3425
+ number
3426
+ ];
2902
3427
  bendLineLength: number;
2903
3428
  angleDeg: number;
2904
3429
  innerRadius: number;
@@ -2915,7 +3440,10 @@ export interface components {
2915
3440
  outsideSetback: number;
2916
3441
  innerArcLength: number;
2917
3442
  outerArcLength: number;
2918
- /** @enum {string} */
3443
+ /**
3444
+ * @description 'up' when the flanges fold towards the side the returned flat faces (+Y of its frame), 'down' when they fold away from it. A 0-degree join, which does not fold, reads 'up'.
3445
+ * @enum {string}
3446
+ */
2919
3447
  direction: "up" | "down";
2920
3448
  /**
2921
3449
  * @description 'cyl' and 'cone' fold through a bend face of that surface; 'sharp' folds along a shared edge with no bend face (faceIndex -1, inner radius 0), and a 0 degree 'sharp' fold joins two coplanar panels.
@@ -3133,6 +3661,442 @@ export interface components {
3133
3661
  weights?: number[];
3134
3662
  };
3135
3663
  };
3664
+ /** @description One sheet as drawn: what the set says of it, where it lies beside the others, its fingerprint and its report. */
3665
+ DrawnSetSheet: {
3666
+ name: string;
3667
+ product: number;
3668
+ quantity: number;
3669
+ isAssembly: boolean;
3670
+ isTurned: boolean;
3671
+ isList: boolean;
3672
+ rows: components["schemas"]["DrawingResolvedRow"][];
3673
+ /** @description On a continuation sheet, why it continues the sheet before it: a view that did not fit beside the principal views at their scale, or principal views whose annotation letters were too small together. */
3674
+ pagination?: string;
3675
+ /** @description The sheet's lower left corner in the DXF and SVG that hold every sheet, in millimetres, y up. */
3676
+ place: [
3677
+ number,
3678
+ number
3679
+ ];
3680
+ report: {
3681
+ /** @constant */
3682
+ ok: true;
3683
+ version: number;
3684
+ plan: {
3685
+ [key: string]: unknown;
3686
+ };
3687
+ sheet: components["schemas"]["DrawingSheetUsed"];
3688
+ model: {
3689
+ parts: number;
3690
+ drawn: number;
3691
+ /** @description The parts left out of a sheet of every part because they hold no face, such as the curves an AP203 file draws its notes with, when other parts have faces. */
3692
+ faceless?: number;
3693
+ } & {
3694
+ [key: string]: unknown;
3695
+ };
3696
+ views: components["schemas"]["DrawingViewUsed"][];
3697
+ sections: {
3698
+ [key: string]: unknown;
3699
+ }[];
3700
+ groups: components["schemas"]["DrawingGroup"][];
3701
+ hatches: components["schemas"]["DrawingHatchUsed"][];
3702
+ texts: components["schemas"]["DrawingText"][];
3703
+ fills: components["schemas"]["DrawingFill"][];
3704
+ dimensions?: components["schemas"]["DrawingDimensionUsed"][];
3705
+ tables?: {
3706
+ [key: string]: unknown;
3707
+ };
3708
+ annotations?: components["schemas"]["DrawingAnnotationsUsed"];
3709
+ quality?: components["schemas"]["DrawingQuality"];
3710
+ warnings: string[];
3711
+ run: components["schemas"]["DrawingRun"];
3712
+ } & {
3713
+ [key: string]: unknown;
3714
+ };
3715
+ /** @description The sheet's index in the whole set, counting from 0; given when the draw named 'onlySheets'. */
3716
+ index?: number;
3717
+ fingerprint?: components["schemas"]["DrawingSheetFingerprint"];
3718
+ } & {
3719
+ [key: string]: unknown;
3720
+ };
3721
+ /** @description One row of an assembly's parts list: its item number from 1, the product's name, how many go directly into the assembly, the product, the index of the sheet that shows it (-1 when none does) and the parts of all its instances. */
3722
+ DrawingResolvedRow: {
3723
+ item: number;
3724
+ name: string;
3725
+ quantity: number;
3726
+ product: number;
3727
+ sheet: number;
3728
+ parts: number[];
3729
+ } & {
3730
+ [key: string]: unknown;
3731
+ };
3732
+ /** @description The sheet as drawn: its size in millimetres, the frame inside its border, the unit and places its lengths are printed in, the scale used and the series it comes from. */
3733
+ DrawingSheetUsed: {
3734
+ size: string;
3735
+ width: number;
3736
+ height: number;
3737
+ frame: [
3738
+ number,
3739
+ number,
3740
+ number,
3741
+ number
3742
+ ];
3743
+ projection: string;
3744
+ /**
3745
+ * @description The unit the sheet's printed lengths are written in, 'mm' or 'in'. The report's own numbers stay in millimetres.
3746
+ * @enum {string}
3747
+ */
3748
+ units?: "mm" | "in";
3749
+ /** @description The places the sheet's printed lengths are written to. */
3750
+ decimals?: number;
3751
+ scale: {
3752
+ numerator: number;
3753
+ denominator: number;
3754
+ label: string;
3755
+ } & {
3756
+ [key: string]: unknown;
3757
+ };
3758
+ /**
3759
+ * @description The list the sheet's scale is a step of, one of 'ISO 5455', 'GOST 2.302', 'inch', 'none': 'ISO 5455' for its recommended scales, 'GOST 2.302' for a step of the wider metric series that ISO 5455 does not recommend (1:2.5, 1:4, 1:15, 1:25, 1:40 and the like), 'inch' for the inch series, and 'none' for a scale a plan states that is in no series.
3760
+ * @enum {string}
3761
+ */
3762
+ scaleSeries?: "ISO 5455" | "GOST 2.302" | "inch" | "none";
3763
+ } & {
3764
+ [key: string]: unknown;
3765
+ };
3766
+ /** @description One view as drawn: its place on the sheet, its scale and whether it is in line with the base view. */
3767
+ DrawingViewUsed: {
3768
+ index: number;
3769
+ kind: string;
3770
+ name?: string;
3771
+ label?: string;
3772
+ frame?: {
3773
+ [key: string]: unknown;
3774
+ };
3775
+ extent?: [
3776
+ number,
3777
+ number,
3778
+ number,
3779
+ number
3780
+ ];
3781
+ scale: {
3782
+ numerator: number;
3783
+ denominator: number;
3784
+ label: string;
3785
+ } & {
3786
+ [key: string]: unknown;
3787
+ };
3788
+ origin: [
3789
+ number,
3790
+ number
3791
+ ];
3792
+ box: [
3793
+ number,
3794
+ number,
3795
+ number,
3796
+ number
3797
+ ];
3798
+ slot?: string;
3799
+ aligned: boolean;
3800
+ caption?: string;
3801
+ lines?: {
3802
+ [key: string]: unknown;
3803
+ };
3804
+ } & {
3805
+ [key: string]: unknown;
3806
+ };
3807
+ /** @description One group of paths on the sheet: the view it belongs to (-1 for the sheet's own marks), what it is, its layer, line type, line weight in millimetres and how many paths it holds. */
3808
+ DrawingGroup: {
3809
+ view: number;
3810
+ /** @description What the paths are: 'frame' for the frame and, in the margin outside it, an ISO sheet's centring marks and grid reference or an ANSI C, D or E sheet's zones; the model's edges ('sharp', 'outline', 'smooth' and their hidden forms), 'hatch', 'table', 'symbol', 'cut', 'balloon', 'centre', 'dimension', 'note' and 'bend' otherwise. */
3811
+ role: string;
3812
+ layer: string;
3813
+ /** @description 'solid', 'dashed', 'chain', or 'none' for regions to fill rather than lines to draw: a hatch's cut, filled letters, and the dot that ends a balloon's leader on a part. */
3814
+ line: string;
3815
+ weight: number;
3816
+ paths: number;
3817
+ } & {
3818
+ [key: string]: unknown;
3819
+ };
3820
+ /** @description A hatched cut: the group whose closed paths bound it, the view, the part and the hatch's pattern, angle and spacing. */
3821
+ DrawingHatchUsed: {
3822
+ group: number;
3823
+ view: number;
3824
+ part: number;
3825
+ pattern: string;
3826
+ angle: number;
3827
+ spacing: number;
3828
+ } & {
3829
+ [key: string]: unknown;
3830
+ };
3831
+ /** @description One text on the sheet: where its baseline starts, its height in millimetres, how far it was narrowed to fit and which end it is anchored by. */
3832
+ DrawingText: {
3833
+ value: string;
3834
+ x: number;
3835
+ y: number;
3836
+ height: number;
3837
+ squeeze: number;
3838
+ anchor: string;
3839
+ /** @description What the text is: 'frame' for the letters and numbers of an ISO sheet's grid reference or an ANSI sheet's zones, which stand in the margin outside the frame; 'table', 'symbol', 'cut', 'balloon', 'centre', 'dimension', 'note' or 'bend' for the text of that ink; 'caption' for any other. */
3840
+ role: string;
3841
+ layer: string;
3842
+ view: number;
3843
+ box: [
3844
+ number,
3845
+ number,
3846
+ number,
3847
+ number
3848
+ ];
3849
+ } & {
3850
+ [key: string]: unknown;
3851
+ };
3852
+ /** @description A filled triangle, an arrowhead: its three corners as six numbers. */
3853
+ DrawingFill: {
3854
+ points: number[];
3855
+ role: string;
3856
+ layer: string;
3857
+ view: number;
3858
+ } & {
3859
+ [key: string]: unknown;
3860
+ };
3861
+ /** @description One dimension drawn on the sheet: its kind, view, text and line, in millimetres on paper. */
3862
+ DrawingDimensionUsed: {
3863
+ /**
3864
+ * @description 'across' or 'upright' for a size, 'radius' for a radius callout, 'origin' for the X0 Y0 mark of the hole table's origin, 'ordinateX' or 'ordinateY' for an ordinate.
3865
+ * @enum {string}
3866
+ */
3867
+ kind: "across" | "upright" | "radius" | "origin" | "ordinateX" | "ordinateY";
3868
+ view: number;
3869
+ text: string;
3870
+ /** @description Two points on the sheet: a size's dimension line; a radius callout's leader from its arrowhead on the arc to where its shoulder starts; an ordinate's extension line from the part to its text. */
3871
+ line: number[];
3872
+ /** @description For a radius callout led along its radius, the arc's centre on the sheet; for the origin mark, the middle of the view's box it is led from. */
3873
+ centre?: [
3874
+ number,
3875
+ number
3876
+ ];
3877
+ } & {
3878
+ [key: string]: unknown;
3879
+ };
3880
+ /** @description What became of the annotations the STEP file stores. */
3881
+ DrawingAnnotationsUsed: {
3882
+ /** @description The annotations the sheet draws: all of them, or the named product's. */
3883
+ given?: number;
3884
+ drawn?: number;
3885
+ viewsAdded?: number;
3886
+ viewsTurned?: number;
3887
+ /** @description How many stand in the notes area above the title block. */
3888
+ notes?: number;
3889
+ /** @description How many are drawn reading upside down or from the left. */
3890
+ turned?: number;
3891
+ turnedInPlace?: number;
3892
+ /** @description Whether they chose the sheet's front, which they do only when the plan's front is 'annotations'. */
3893
+ frontChosen?: boolean;
3894
+ /** @description Annotations no view faces on a sheet whose annotations say addViews false, and general notes of a sheet whose annotations say notes false: another sheet of the set draws them. */
3895
+ elsewhere?: number;
3896
+ } & {
3897
+ [key: string]: unknown;
3898
+ };
3899
+ /** @description How the sheet reads, measured on paper: the height of its own text, the smallest annotation letter, how full the frame is, each view's ink, and the floors it breaks with the reason. A setting the plan states is kept even where it breaks a floor, and the floor is named here. */
3900
+ DrawingQuality: {
3901
+ scale?: {
3902
+ numerator: number;
3903
+ denominator: number;
3904
+ label: string;
3905
+ } & {
3906
+ [key: string]: unknown;
3907
+ };
3908
+ /** @description The height of the sheet's own text, in millimetres: 2.5 on A4 and A3, 3.5 on A2 and larger, 3 on every ANSI size. */
3909
+ textHeight: number;
3910
+ /** @description The smallest annotation letter on the sheet, in millimetres on paper; 0 for none. */
3911
+ letters: number;
3912
+ /** @description The share of the frame the views take, their sizes and captions included. */
3913
+ fill: number;
3914
+ views: components["schemas"]["DrawingViewQuality"][];
3915
+ /** @description Every floor the sheet breaks, view by view; empty when it reads. */
3916
+ floors: components["schemas"]["DrawingFloor"][];
3917
+ } & {
3918
+ [key: string]: unknown;
3919
+ };
3920
+ /** @description How one view reads: its smallest annotation letter, how much of it is ink, and what was done to a view too dense to read. */
3921
+ DrawingViewQuality: {
3922
+ view: number;
3923
+ /** @description The smallest annotation letter on the view, in millimetres on paper; 0 for none. */
3924
+ letters: number;
3925
+ /** @description The share of the view's box its lines cover, as drawn. */
3926
+ density: number;
3927
+ /** @description The same share at the standard line widths, 0.5 and 0.25 mm. */
3928
+ plain: number;
3929
+ /** @description The thick and thin line widths the view is drawn at, in millimetres: 0.35 and 0.18 for a view too dense at the standard ones. */
3930
+ lines: [
3931
+ number,
3932
+ number
3933
+ ];
3934
+ /** @description Whether the view's smooth edges were left out to thin it. */
3935
+ smoothLeftOut: boolean;
3936
+ /** @description How many edges too short to read were left out to thin it. */
3937
+ detailLeftOut: number;
3938
+ } & {
3939
+ [key: string]: unknown;
3940
+ };
3941
+ /** @description A floor of readability the sheet breaks, and why. */
3942
+ DrawingFloor: {
3943
+ /** @description 'letters' for annotation letters under the standard height on paper, 2.5 mm (3 mm on ANSI sheets); 'density' for a view whose lines still cover more than a quarter of its box after thinning; 'notes' for general notes that the notes area above the title block holds only with letters under that standard height. */
3944
+ floor: string;
3945
+ /** @description The view the floor is broken in; -1 for 'notes', which belong to the sheet. */
3946
+ view: number;
3947
+ value: number;
3948
+ /** @description The floor it is held to: 2.5 mm for letters (3 mm on ANSI sheets), or 1.8 mm when they are under even that, the standard height for notes, and 0.25 for density. */
3949
+ limit: number;
3950
+ /** @description 'constraint' when a setting the plan states keeps the sheet so, 'scale' when no scale of the series reaches the floor on this sheet size. */
3951
+ reason: string;
3952
+ /** @description With 'constraint', the setting that keeps it so: 'sheet.scale', 'views[n].scale', 'views' when the view alone on the sheet would reach the floor, or 'annotations.notes' for the notes, which a set hands to a sheet of their own when they have no room; empty with 'scale'. */
3953
+ setting: string;
3954
+ } & {
3955
+ [key: string]: unknown;
3956
+ };
3957
+ /** @description How the drawing was made: the hidden-line method, the method each view was drawn by and the rule that chose it, the seconds each view took and, when a view was drawn by sight, what the exact method would have taken. */
3958
+ DrawingRun: {
3959
+ method: string;
3960
+ /** @description The method each view was drawn by: 'exact', 'sight' or 'mesh'. */
3961
+ methods?: string[];
3962
+ /** @description For each view, the rule that chose its method, one of 'plan', 'budget', 'within': 'plan' when the plan named the method; with 'auto', 'budget' when the exact method was predicted to take longer than the budget for the sheet, so the view was drawn by sight, and 'within' when it was not, so it was drawn exactly. */
3963
+ chosenBy?: string[];
3964
+ seconds: number;
3965
+ views: number[];
3966
+ exactEstimate?: components["schemas"]["DrawingExactEstimate"];
3967
+ } & {
3968
+ [key: string]: unknown;
3969
+ };
3970
+ /** @description What the exact method was predicted to take on CAD Cloud, given whenever a view was drawn by sight: the drawing kernel predicts the seconds a native build takes, and CAD Cloud's kernel was measured to take 1.2 times as long, so the prediction is given times 1.2. An order of magnitude, not a promise: a single model may take from a tenth to several times it. */
3971
+ DrawingExactEstimate: {
3972
+ /** @description For each view, the seconds the exact method was predicted to take on CAD Cloud. */
3973
+ views: number[];
3974
+ /** @description Their sum: what drawing the sheet again with lines.method 'exact' would take on CAD Cloud, about. */
3975
+ sheet: number;
3976
+ } & {
3977
+ [key: string]: unknown;
3978
+ };
3979
+ /** @description The sheet's fingerprint, 64 hexadecimal digits: a SHA-256 over all a sheet is drawn from - the checksum of the STEP file and the unit it is read in, how its parts are read, the sheet's plan as the drawing kernel takes it, the file's annotations it is drawn with, the build of the drawing kernel and the build of the CAD Cloud server that reads the file and writes the sheet's files. Drawing is deterministic: a sheet with the same fingerprint is drawn again the same, written byte for byte as before in its files, with the same report but for 'run', which says how long it took. A deploy of the server gives every sheet a new fingerprint. An app can keep a sheet it drew under its fingerprint, and a sheet whose fingerprint changed is stale. */
3980
+ DrawingSheetFingerprint: string;
3981
+ /** @description Where the model the sheets were drawn from came from, and whether this task kept it. */
3982
+ DrawingModelRun: {
3983
+ /** @description Whether the parts were taken from the model the task named in 'modelFromTask' kept, rather than read from the file. */
3984
+ reused: boolean;
3985
+ /** @description Whether this task kept its model, so that a later draw or inspection of the same file in the same unit can name this task in 'modelFromTask'. Every draw and inspection keeps the model it drew from, one it took from another task included; it is false only when the model could not be kept, and 'notKept' then says why. A kept model is deleted with the task's results when the task expires. */
3986
+ kept: boolean;
3987
+ /** @description The seconds it took to have the model: to read the file, or to read the kept model. */
3988
+ seconds: number;
3989
+ /** @description Given when 'modelFromTask' named a task whose kept model could not be used: why. The file was read instead, and the sheets are the same. */
3990
+ notReused?: string;
3991
+ /** @description Given when 'kept' is false: why the model could not be kept, such as a model of more than 200 MB or storage that would not take it. The task's results are not affected. */
3992
+ notKept?: string;
3993
+ } & {
3994
+ [key: string]: unknown;
3995
+ };
3996
+ /** @description A standard sheet, whether the plan's views fit it, and the scale an automatic scale would take on it. */
3997
+ DrawingSheetFit: {
3998
+ size: string;
3999
+ fits: boolean;
4000
+ scale?: {
4001
+ numerator: number;
4002
+ denominator: number;
4003
+ label: string;
4004
+ } & {
4005
+ [key: string]: unknown;
4006
+ };
4007
+ } & {
4008
+ [key: string]: unknown;
4009
+ };
4010
+ /** @description A section the model could be cut by: what it runs through, its frame, the view that sees it edge-on (-1 when none does), how many parts it cuts and the area cut. Adding its frame to a plan's sections draws it. */
4011
+ DrawingSectionCandidate: {
4012
+ through: string;
4013
+ frame: {
4014
+ origin: [
4015
+ number,
4016
+ number,
4017
+ number
4018
+ ];
4019
+ normal: [
4020
+ number,
4021
+ number,
4022
+ number
4023
+ ];
4024
+ direction: [
4025
+ number,
4026
+ number,
4027
+ number
4028
+ ];
4029
+ } & {
4030
+ [key: string]: unknown;
4031
+ };
4032
+ shownOn: number;
4033
+ parts: number;
4034
+ area: number;
4035
+ } & {
4036
+ [key: string]: unknown;
4037
+ };
4038
+ /** @description Every sheet of a set written out, each with its fingerprint, the set as a plan with a list of sheets (sent back, it draws the same sheets, with the same fingerprints), and every part with the product it is drawn as. */
4039
+ DrawingInspectedSet: {
4040
+ /** @constant */
4041
+ ok: true;
4042
+ sheets: components["schemas"]["DrawingInspectedSheet"][];
4043
+ plan: {
4044
+ [key: string]: unknown;
4045
+ };
4046
+ /** @description Every part the sheets draw, in the order of its number, under the product the set draws it as: an unnamed product that holds a single part is merged into the product that places it, so a file of one part below a named product lists the part under that name. A part the set draws under no product, such as loose curves beside solids, is not listed. */
4047
+ parts?: components["schemas"]["DrawingSetPart"][];
4048
+ } & {
4049
+ [key: string]: unknown;
4050
+ };
4051
+ /** @description One sheet of the set an inspection writes out: as the set will draw it, with the fingerprint the sheet will have when the plan of the set is drawn. */
4052
+ DrawingInspectedSheet: {
4053
+ name: string;
4054
+ product: number;
4055
+ quantity: number;
4056
+ isAssembly: boolean;
4057
+ isTurned: boolean;
4058
+ isList: boolean;
4059
+ plan: {
4060
+ [key: string]: unknown;
4061
+ };
4062
+ rows: components["schemas"]["DrawingResolvedRow"][];
4063
+ /** @description On a continuation sheet, why it continues the sheet before it: a view that did not fit beside the principal views at their scale, or principal views whose annotation letters were too small together. */
4064
+ pagination?: string;
4065
+ fingerprint?: components["schemas"]["DrawingSheetFingerprint"];
4066
+ } & {
4067
+ [key: string]: unknown;
4068
+ };
4069
+ /** @description A part as the set draws it: its number, the product it is drawn as and that product's name as the sheets give it, and which of the product's instances it belongs to, counted from 0 in the order of the model's structure, depth first. */
4070
+ DrawingSetPart: {
4071
+ part: number;
4072
+ product: number;
4073
+ name: string;
4074
+ instance: number;
4075
+ } & {
4076
+ [key: string]: unknown;
4077
+ };
4078
+ /** @description A view the STEP file saved (an AP242 model view): its name, which a plan's view gives as 'saved', and how many of the file's annotations it shows. */
4079
+ DrawingSavedView: {
4080
+ name: string;
4081
+ annotations: number;
4082
+ } & {
4083
+ [key: string]: unknown;
4084
+ };
4085
+ /** @description One part of the model: its number, as a plan's parts name it; the name of the product the set draws it as, as the sheets of a set name it ('Part n' for a part the file left unnamed, the uploaded file's name for a file whose root the file left unnamed; an unnamed product holding a single part is merged into the product that places it); the product, by the number a sheet's product takes; and which of the product's instances it belongs to, counted from 0 in the order of the model's structure, depth first, as a plan's annotations count them. A part the set draws under no product, such as loose curves beside solids, has an empty name and neither product nor instance. */
4086
+ DrawingModelPart: {
4087
+ part: number;
4088
+ name: string;
4089
+ product?: number;
4090
+ instance?: number;
4091
+ } & {
4092
+ [key: string]: unknown;
4093
+ };
4094
+ /** @description The drawing kernel's own answer when it refuses the plan or cannot draw. No result carries it: the API fails the task with its error instead. */
4095
+ DrawingReportError: {
4096
+ /** @constant */
4097
+ ok: false;
4098
+ error: string;
4099
+ };
3136
4100
  /** @description Success envelope for health check */
3137
4101
  HealthResponse: {
3138
4102
  /** @constant */
@@ -3598,6 +4562,24 @@ export interface components {
3598
4562
  number,
3599
4563
  number
3600
4564
  ];
4565
+ /** @description Where the bend's centre line starts on the returned flat pattern, in the flat's own frame: the middle of the bend zone, as long as bendLineLength. A sharp fold's is the edge its flanges share. Absent for a bend the layout cut, and for a 0-degree join of two coplanar panels, which draws no bend line. */
4566
+ flatLineStart?: [
4567
+ number,
4568
+ number,
4569
+ number
4570
+ ];
4571
+ /** @description Where the bend's centre line ends on the returned flat pattern. */
4572
+ flatLineEnd?: [
4573
+ number,
4574
+ number,
4575
+ number
4576
+ ];
4577
+ /** @description The middle of the bend's centre line on the returned flat pattern, where a bend tag stands. */
4578
+ flatLineMid?: [
4579
+ number,
4580
+ number,
4581
+ number
4582
+ ];
3601
4583
  bendLineLength: number;
3602
4584
  angleDeg: number;
3603
4585
  innerRadius: number;
@@ -3614,7 +4596,10 @@ export interface components {
3614
4596
  outsideSetback: number;
3615
4597
  innerArcLength: number;
3616
4598
  outerArcLength: number;
3617
- /** @enum {string} */
4599
+ /**
4600
+ * @description 'up' when the flanges fold towards the side the returned flat faces (+Y of its frame), 'down' when they fold away from it. A 0-degree join, which does not fold, reads 'up'.
4601
+ * @enum {string}
4602
+ */
3618
4603
  direction: "up" | "down";
3619
4604
  /**
3620
4605
  * @description 'cyl' and 'cone' fold through a bend face of that surface; 'sharp' folds along a shared edge with no bend face (faceIndex -1, inner radius 0), and a 0 degree 'sharp' fold joins two coplanar panels.
@@ -3832,6 +4817,12 @@ export interface components {
3832
4817
  weights?: number[];
3833
4818
  };
3834
4819
  };
4820
+ /** @description The drawing kernel's own answer when it refuses the plan or cannot draw. No result carries it: the API fails the task with its error instead. */
4821
+ DrawingReportErrorOutput: {
4822
+ /** @constant */
4823
+ ok: false;
4824
+ error: string;
4825
+ };
3835
4826
  /** @description Sheet-metal unfold metrics for a single face (surface type, developability, area before/after). */
3836
4827
  UnfoldFaceReport: {
3837
4828
  /** @constant */
@@ -3889,6 +4880,93 @@ export interface components {
3889
4880
  }[];
3890
4881
  }[];
3891
4882
  };
4883
+ /** @description What was drawn: the set as a plan with every sheet written out (sending it back draws the same sheets), the space the sheets take side by side, and each sheet with its place and its report. A PDF has the sheets as pages in this order. Warnings name their sheet when there are several. */
4884
+ DrawingSetReport: {
4885
+ /** @constant */
4886
+ ok: true;
4887
+ version: number;
4888
+ plan: {
4889
+ [key: string]: unknown;
4890
+ };
4891
+ /** @description The width and height of the DXF and SVG that hold every sheet, in millimetres. */
4892
+ extent: [
4893
+ number,
4894
+ number
4895
+ ];
4896
+ sheets: components["schemas"]["DrawnSetSheet"][];
4897
+ warnings: string[];
4898
+ run: {
4899
+ seconds: number;
4900
+ sheets: number[];
4901
+ model?: components["schemas"]["DrawingModelRun"];
4902
+ } & {
4903
+ [key: string]: unknown;
4904
+ };
4905
+ /** @description How many sheets the whole set has; given when the draw named 'onlySheets', whose report lists only the sheets it drew. */
4906
+ setSheets?: number;
4907
+ /** @description The fingerprint of every sheet of the whole set, in the set's order; given when the draw named 'onlySheets', so an app learns which sheets of the set changed without drawing them. */
4908
+ setFingerprints?: components["schemas"]["DrawingSheetFingerprint"][];
4909
+ } & {
4910
+ [key: string]: unknown;
4911
+ };
4912
+ /** @description The model as a drawing would read it, without drawing: how many parts it holds, its size, the plan of the first sheet with every setting resolved, the layout that plan gives, 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, ready to edit and send to the draw route. A report delivered as a result always has ok true: when the kernel refuses a run, the task fails with the kernel's reason instead. */
4913
+ DrawingInspection: ({
4914
+ /** @constant */
4915
+ ok: true;
4916
+ version: number;
4917
+ model: {
4918
+ parts: number;
4919
+ drawn: number;
4920
+ /** @description The parts left out of a sheet of every part because they hold no face, such as the curves an AP203 file draws its notes with, when other parts have faces. */
4921
+ faceless?: number;
4922
+ min: [
4923
+ number,
4924
+ number,
4925
+ number
4926
+ ];
4927
+ max: [
4928
+ number,
4929
+ number,
4930
+ number
4931
+ ];
4932
+ extent: [
4933
+ number,
4934
+ number,
4935
+ number
4936
+ ];
4937
+ } & {
4938
+ [key: string]: unknown;
4939
+ };
4940
+ plan: {
4941
+ [key: string]: unknown;
4942
+ };
4943
+ layout: {
4944
+ fits: boolean;
4945
+ reason: string;
4946
+ } & {
4947
+ [key: string]: unknown;
4948
+ };
4949
+ alternatives: {
4950
+ sheets: components["schemas"]["DrawingSheetFit"][];
4951
+ } & {
4952
+ [key: string]: unknown;
4953
+ };
4954
+ sectionCandidates: components["schemas"]["DrawingSectionCandidate"][];
4955
+ warnings: string[];
4956
+ set?: components["schemas"]["DrawingInspectedSet"];
4957
+ /** @description Where the model came from and whether this inspection kept it, so that a draw of the same file can name it in 'modelFromTask'. */
4958
+ run?: {
4959
+ model: components["schemas"]["DrawingModelRun"];
4960
+ } & {
4961
+ [key: string]: unknown;
4962
+ };
4963
+ /** @description The views the STEP file saved that a plan can name, as a drawing finds them: among the first 5000 views the drawing reads (those with a direction and an up), each name once, at the first view of it whose direction and up are not along each other, in the file's order. Empty for a file without saved views; a warning says how many views the file saved past those the drawing reads. */
4964
+ savedViews: components["schemas"]["DrawingSavedView"][];
4965
+ /** @description Every part of the model, in the order of its number, with the name its product has on the sheets of a set. */
4966
+ parts: components["schemas"]["DrawingModelPart"][];
4967
+ } & {
4968
+ [key: string]: unknown;
4969
+ }) | components["schemas"]["DrawingReportErrorOutput"];
3892
4970
  };
3893
4971
  responses: never;
3894
4972
  parameters: never;