@bitbybit-dev/cad-cloud-sdk 1.6.2 → 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.
@@ -1145,7 +1145,7 @@ export interface paths {
1145
1145
  put?: never;
1146
1146
  /**
1147
1147
  * Sheet metal - unfold all solids to flat geometry
1148
- * @description Proprietary sheet-metal unfold: loads every solid in an uploaded STEP file and flattens each to a flat pattern. Requires the 'cad' API key scope. Returns 202 with a task ID; all flats are combined into one compound output per format.
1148
+ * @description Proprietary sheet-metal unfold: loads every solid in an uploaded STEP file and flattens each to a flat pattern. Requires the 'cad' API key scope. Returns 202 with a task ID; every flat is one part of a single output per format, named after its solid, so a nesting call reads one part per flat.
1149
1149
  */
1150
1150
  post: {
1151
1151
  parameters: {
@@ -1285,7 +1285,7 @@ export interface paths {
1285
1285
  put?: never;
1286
1286
  /**
1287
1287
  * Sheet metal - unfold all solids, geometry + report
1288
- * @description Proprietary sheet-metal unfold, full workflow: flattens every solid in an uploaded STEP file AND returns per-solid metrics in one call. Requires the 'cad' API key scope. Returns 202 with a task ID; flats are combined into one compound output per format and the per-solid report array is delivered in the task metadata.
1288
+ * @description Proprietary sheet-metal unfold, full workflow: flattens every solid in an uploaded STEP file AND returns per-solid metrics in one call. Requires the 'cad' API key scope. Returns 202 with a task ID; every flat is one part of a single output per format, named after its solid, and the per-solid report array is delivered in the task metadata.
1289
1289
  */
1290
1290
  post: {
1291
1291
  parameters: {
@@ -1344,6 +1344,356 @@ export interface paths {
1344
1344
  patch?: never;
1345
1345
  trace?: never;
1346
1346
  };
1347
+ "/api/v1/cad/pro/unfold/solid-and-nest": {
1348
+ parameters: {
1349
+ query?: never;
1350
+ header?: never;
1351
+ path?: never;
1352
+ cookie?: never;
1353
+ };
1354
+ get?: never;
1355
+ put?: never;
1356
+ /**
1357
+ * Sheet metal - unfold all solids and nest the flats on sheets
1358
+ * @description 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.
1359
+ */
1360
+ post: {
1361
+ parameters: {
1362
+ query?: never;
1363
+ header?: never;
1364
+ path?: never;
1365
+ cookie?: never;
1366
+ };
1367
+ requestBody: {
1368
+ content: {
1369
+ "application/json": components["schemas"]["UnfoldAndNestBody"];
1370
+ };
1371
+ };
1372
+ responses: {
1373
+ /** @description Task accepted */
1374
+ 202: {
1375
+ headers: {
1376
+ [name: string]: unknown;
1377
+ };
1378
+ content: {
1379
+ "application/json": components["schemas"]["TaskAcceptedResponse"];
1380
+ };
1381
+ };
1382
+ /** @description Validation error */
1383
+ 400: {
1384
+ headers: {
1385
+ [name: string]: unknown;
1386
+ };
1387
+ content: {
1388
+ "application/json": components["schemas"]["ErrorResponse"];
1389
+ };
1390
+ };
1391
+ /** @description Insufficient scope */
1392
+ 403: {
1393
+ headers: {
1394
+ [name: string]: unknown;
1395
+ };
1396
+ content: {
1397
+ "application/json": components["schemas"]["ErrorResponse"];
1398
+ };
1399
+ };
1400
+ /** @description Server error */
1401
+ 500: {
1402
+ headers: {
1403
+ [name: string]: unknown;
1404
+ };
1405
+ content: {
1406
+ "application/json": components["schemas"]["ErrorResponse"];
1407
+ };
1408
+ };
1409
+ };
1410
+ };
1411
+ delete?: never;
1412
+ options?: never;
1413
+ head?: never;
1414
+ patch?: never;
1415
+ trace?: never;
1416
+ };
1417
+ "/api/v1/cad/pro/nesting/nest": {
1418
+ parameters: {
1419
+ query?: never;
1420
+ header?: never;
1421
+ path?: never;
1422
+ cookie?: never;
1423
+ };
1424
+ get?: never;
1425
+ put?: never;
1426
+ /**
1427
+ * Nesting - place flat parts on sheets or a strip
1428
+ * @description 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.
1429
+ */
1430
+ post: {
1431
+ parameters: {
1432
+ query?: never;
1433
+ header?: never;
1434
+ path?: never;
1435
+ cookie?: never;
1436
+ };
1437
+ requestBody: {
1438
+ content: {
1439
+ "application/json": components["schemas"]["NestingNestBody"];
1440
+ };
1441
+ };
1442
+ responses: {
1443
+ /** @description Task accepted */
1444
+ 202: {
1445
+ headers: {
1446
+ [name: string]: unknown;
1447
+ };
1448
+ content: {
1449
+ "application/json": components["schemas"]["TaskAcceptedResponse"];
1450
+ };
1451
+ };
1452
+ /** @description Validation error */
1453
+ 400: {
1454
+ headers: {
1455
+ [name: string]: unknown;
1456
+ };
1457
+ content: {
1458
+ "application/json": components["schemas"]["ErrorResponse"];
1459
+ };
1460
+ };
1461
+ /** @description Insufficient scope */
1462
+ 403: {
1463
+ headers: {
1464
+ [name: string]: unknown;
1465
+ };
1466
+ content: {
1467
+ "application/json": components["schemas"]["ErrorResponse"];
1468
+ };
1469
+ };
1470
+ /** @description Server error */
1471
+ 500: {
1472
+ headers: {
1473
+ [name: string]: unknown;
1474
+ };
1475
+ content: {
1476
+ "application/json": components["schemas"]["ErrorResponse"];
1477
+ };
1478
+ };
1479
+ };
1480
+ };
1481
+ delete?: never;
1482
+ options?: never;
1483
+ head?: never;
1484
+ patch?: never;
1485
+ trace?: never;
1486
+ };
1487
+ "/api/v1/cad/pro/nesting/inspect": {
1488
+ parameters: {
1489
+ query?: never;
1490
+ header?: never;
1491
+ path?: never;
1492
+ cookie?: never;
1493
+ };
1494
+ get?: never;
1495
+ put?: never;
1496
+ /**
1497
+ * Nesting - read parts without nesting them
1498
+ * @description Reads the parts of uploaded STEP files as nesting would and reports each one's file, kind, outline size, area and cut length, or why it cannot be nested. Requires the 'cad' API key scope. Returns 202 with a task ID; the NestingInspection is delivered as the metadata result.
1499
+ */
1500
+ post: {
1501
+ parameters: {
1502
+ query?: never;
1503
+ header?: never;
1504
+ path?: never;
1505
+ cookie?: never;
1506
+ };
1507
+ requestBody: {
1508
+ content: {
1509
+ "application/json": components["schemas"]["NestingInspectBody"];
1510
+ };
1511
+ };
1512
+ responses: {
1513
+ /** @description Task accepted */
1514
+ 202: {
1515
+ headers: {
1516
+ [name: string]: unknown;
1517
+ };
1518
+ content: {
1519
+ "application/json": components["schemas"]["TaskAcceptedResponse"];
1520
+ };
1521
+ };
1522
+ /** @description Validation error */
1523
+ 400: {
1524
+ headers: {
1525
+ [name: string]: unknown;
1526
+ };
1527
+ content: {
1528
+ "application/json": components["schemas"]["ErrorResponse"];
1529
+ };
1530
+ };
1531
+ /** @description Insufficient scope */
1532
+ 403: {
1533
+ headers: {
1534
+ [name: string]: unknown;
1535
+ };
1536
+ content: {
1537
+ "application/json": components["schemas"]["ErrorResponse"];
1538
+ };
1539
+ };
1540
+ /** @description Server error */
1541
+ 500: {
1542
+ headers: {
1543
+ [name: string]: unknown;
1544
+ };
1545
+ content: {
1546
+ "application/json": components["schemas"]["ErrorResponse"];
1547
+ };
1548
+ };
1549
+ };
1550
+ };
1551
+ delete?: never;
1552
+ options?: never;
1553
+ head?: never;
1554
+ patch?: never;
1555
+ trace?: never;
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
+ };
1347
1697
  "/api/v1/files/upload": {
1348
1698
  parameters: {
1349
1699
  query?: never;
@@ -2056,7 +2406,7 @@ export interface components {
2056
2406
  meshPrecision?: components["schemas"]["MeshPrecision"];
2057
2407
  /** @description Override tessellation precision specifically for glTF output. When set, takes precedence over meshPrecision for glTF only. */
2058
2408
  gltfMeshPrecision?: components["schemas"]["MeshPrecision"];
2059
- /** @description Convert from Y-up to Z-up coordinate system in the output. Useful for software that expects Z-up. */
2409
+ /** @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, a glTF output is always Y-up, as glTF asks, and a BREP output keeps the frame the shapes were modelled in, as occt.io.loadBrep reads it back. */
2060
2410
  adjustYtoZ?: boolean;
2061
2411
  /** @description Include the full pipeline definition in metadata.json. Defaults to true. Set to false to exclude it for smaller metadata. */
2062
2412
  includePipelineInMetadata?: boolean;
@@ -2064,7 +2414,7 @@ export interface components {
2064
2414
  unit?: components["schemas"]["LengthUnit"];
2065
2415
  };
2066
2416
  /**
2067
- * @description Pipeline output file format. Includes all standard formats plus: 'json' (JSON data), 'csv' (CSV text), 'stl' (binary STL mesh - Manifold/JSCAD only), '3mf' (3MF mesh package - Manifold/JSCAD only), 'brep' (OpenCascade BREP as text, which OCCT-based tools such as FreeCAD read) and 'brep-binary' (OpenCascade binary BREP, the smallest and fastest exact form, which keeps the numbering of faces and edges; read back with occt.io.loadBrepBinary) - both OCCT only, without triangulation.
2417
+ * @description Pipeline output file format. Includes all standard formats plus: 'json' (JSON data), 'csv' (CSV text), 'stl' (binary STL mesh - Manifold/JSCAD only), '3mf' (3MF mesh package - Manifold/JSCAD only), 'brep' (OpenCascade BREP as text) and 'brep-binary' (OpenCascade binary BREP, the smallest and fastest exact form, which keeps the numbering of faces and edges) - both OCCT only, without triangulation, and both in the frame the pipeline modelled the shape in (Y up), so occt.io.loadBrep and occt.io.loadBrepBinary read them back exactly as they were; a Z-up tool such as FreeCAD shows them lying on their backs, where a 'step' output stands upright.
2068
2418
  * @enum {string}
2069
2419
  */
2070
2420
  PipelineOutputFormat: "step" | "stpz" | "decomposed-mesh" | "gltf" | "json" | "csv" | "stl" | "3mf" | "brep" | "brep-binary";
@@ -2120,7 +2470,7 @@ export interface components {
2120
2470
  meshPrecision?: components["schemas"]["MeshPrecision"];
2121
2471
  /** @description Override tessellation precision specifically for glTF output. When set, takes precedence over meshPrecision for glTF only. */
2122
2472
  gltfMeshPrecision?: components["schemas"]["MeshPrecision"];
2123
- /** @description Convert from Y-up to Z-up coordinate system in the output. Useful for software that expects Z-up. */
2473
+ /** @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. */
2124
2474
  adjustYtoZ?: boolean;
2125
2475
  };
2126
2476
  /**
@@ -2249,7 +2599,7 @@ export interface components {
2249
2599
  meshAngle?: components["schemas"]["MeshAngle"];
2250
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. */
2251
2601
  meshRelative?: boolean;
2252
- /** @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. */
2253
2603
  internalVerticesMode?: boolean;
2254
2604
  /** @description Extra post-pass refining triangles that bulge beyond the deflection (slower, set false for speed). */
2255
2605
  controlSurfaceDeflection?: boolean;
@@ -2283,7 +2633,7 @@ export interface components {
2283
2633
  meshParallel?: boolean;
2284
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. */
2285
2635
  meshRelative?: boolean;
2286
- /** @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. */
2287
2637
  internalVerticesMode?: boolean;
2288
2638
  /** @description Extra post-pass refining triangles that bulge beyond the deflection (slower, set false for speed). */
2289
2639
  controlSurfaceDeflection?: boolean;
@@ -2330,7 +2680,7 @@ export interface components {
2330
2680
  meshAngle?: components["schemas"]["MeshAngle"];
2331
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. */
2332
2682
  meshRelative?: boolean;
2333
- /** @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. */
2334
2684
  internalVerticesMode?: boolean;
2335
2685
  /** @description Extra post-pass refining triangles that bulge beyond the deflection (slower, set false for speed). */
2336
2686
  controlSurfaceDeflection?: boolean;
@@ -2369,6 +2719,8 @@ export interface components {
2369
2719
  UnfoldFaceToFlatBody: {
2370
2720
  /** @description ID of the previously uploaded STEP file (returned by the file upload endpoint). Both plain STEP (.step/.stp) and gzip-compressed STEP (.stpz) uploads are accepted - compression is detected automatically. */
2371
2721
  stepFileId: string;
2722
+ /** @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. */
2723
+ fileUnit?: components["schemas"]["LengthUnit"];
2372
2724
  /**
2373
2725
  * @description 0-based index of the developable face (in the shape's BRepGraph face array) to unfold.
2374
2726
  * @default 0
@@ -2381,6 +2733,8 @@ export interface components {
2381
2733
  UnfoldFaceReportBody: {
2382
2734
  /** @description ID of the previously uploaded STEP file (returned by the file upload endpoint). Both plain STEP (.step/.stp) and gzip-compressed STEP (.stpz) uploads are accepted - compression is detected automatically. */
2383
2735
  stepFileId: string;
2736
+ /** @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. */
2737
+ fileUnit?: components["schemas"]["LengthUnit"];
2384
2738
  /**
2385
2739
  * @description 0-based index of the face to analyze.
2386
2740
  * @default 0
@@ -2391,50 +2745,607 @@ export interface components {
2391
2745
  UnfoldSolidToFlatBody: {
2392
2746
  /** @description ID of the previously uploaded STEP file (returned by the file upload endpoint). Both plain STEP (.step/.stp) and gzip-compressed STEP (.stpz) uploads are accepted - compression is detected automatically. */
2393
2747
  stepFileId: string;
2748
+ /** @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. */
2749
+ fileUnit?: components["schemas"]["LengthUnit"];
2394
2750
  /**
2395
2751
  * @description Sheet-metal K-factor (neutral-axis position), typically ~0.5.
2396
2752
  * @default 0.5
2397
2753
  */
2398
2754
  kFactor: number;
2399
2755
  /**
2400
- * @description Sheet thickness override in model units; 0 auto-detects thickness from face pairs.
2756
+ * @description Sheet thickness override in millimetres; 0 auto-detects thickness from face pairs.
2401
2757
  * @default 0
2402
2758
  */
2403
2759
  thicknessOverride: number;
2404
- /** @description Output formats for the flattened patterns. Every solid's flat is combined into one compound output per format. Defaults to glTF. */
2760
+ /** @description Output formats for the flattened patterns. Every solid's flat is one part, named flat-1, flat-2 and so on after the solid it came from, and all of them make one output per format. Defaults to glTF. */
2405
2761
  outputs?: components["schemas"]["OutputOptions"];
2406
2762
  };
2407
- /** @description Compute per-solid sheet-metal unfold metrics for every solid in an uploaded STEP file. */
2408
- UnfoldSolidReportBody: {
2409
- /** @description ID of the previously uploaded STEP file (returned by the file upload endpoint). Both plain STEP (.step/.stp) and gzip-compressed STEP (.stpz) uploads are accepted - compression is detected automatically. */
2410
- stepFileId: string;
2411
- /**
2412
- * @description Sheet-metal K-factor (neutral-axis position), typically ~0.5.
2413
- * @default 0.5
2414
- */
2415
- kFactor: number;
2763
+ /** @description Compute per-solid sheet-metal unfold metrics for every solid in an uploaded STEP file. */
2764
+ UnfoldSolidReportBody: {
2765
+ /** @description ID of the previously uploaded STEP file (returned by the file upload endpoint). Both plain STEP (.step/.stp) and gzip-compressed STEP (.stpz) uploads are accepted - compression is detected automatically. */
2766
+ stepFileId: string;
2767
+ /** @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. */
2768
+ fileUnit?: components["schemas"]["LengthUnit"];
2769
+ /**
2770
+ * @description Sheet-metal K-factor (neutral-axis position), typically ~0.5.
2771
+ * @default 0.5
2772
+ */
2773
+ kFactor: number;
2774
+ /**
2775
+ * @description Sheet thickness override in millimetres; 0 auto-detects thickness from face pairs.
2776
+ * @default 0
2777
+ */
2778
+ thicknessOverride: number;
2779
+ };
2780
+ /** @description Flatten every constant-thickness sheet-metal solid in an uploaded STEP file AND return the per-solid metrics report - both in one call. */
2781
+ UnfoldSolidBody: {
2782
+ /** @description ID of the previously uploaded STEP file (returned by the file upload endpoint). Both plain STEP (.step/.stp) and gzip-compressed STEP (.stpz) uploads are accepted - compression is detected automatically. */
2783
+ stepFileId: string;
2784
+ /** @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. */
2785
+ fileUnit?: components["schemas"]["LengthUnit"];
2786
+ /**
2787
+ * @description Sheet-metal K-factor (neutral-axis position), typically ~0.5.
2788
+ * @default 0.5
2789
+ */
2790
+ kFactor: number;
2791
+ /**
2792
+ * @description Sheet thickness override in millimetres; 0 auto-detects thickness from face pairs.
2793
+ * @default 0
2794
+ */
2795
+ thicknessOverride: number;
2796
+ /** @description Output formats for the flattened patterns. For 'gltf'/'step'/'stpz', every solid's flat is one part, named flat-1, flat-2 and so on after the solid it came from, and all of them make one output per format. The 'decomposed-mesh' format instead returns one mesh per solid whose flat meshed (each tagged with its 'solidIndex'), an empty list when none did; a flat that could not be meshed is still in the other formats, and its report entry says why in 'meshError'. Defaults to glTF. */
2797
+ outputs?: components["schemas"]["OutputOptions"];
2798
+ };
2799
+ /** @description Flatten every constant-thickness sheet-metal solid in an uploaded STEP file and nest the flat patterns on sheets in the same call: the per-solid unfold report, the nesting report and the nested sheets, without writing the flats to a file and reading them back. */
2800
+ UnfoldAndNestBody: {
2801
+ /** @description ID of the previously uploaded STEP file (returned by the file upload endpoint). Both plain STEP (.step/.stp) and gzip-compressed STEP (.stpz) uploads are accepted - compression is detected automatically. */
2802
+ stepFileId: string;
2803
+ /** @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. */
2804
+ fileUnit?: components["schemas"]["LengthUnit"];
2805
+ /**
2806
+ * @description Sheet-metal K-factor (neutral-axis position), typically ~0.5.
2807
+ * @default 0.5
2808
+ */
2809
+ kFactor: number;
2810
+ /**
2811
+ * @description Sheet thickness override in millimetres; 0 auto-detects thickness from face pairs.
2812
+ * @default 0
2813
+ */
2814
+ thicknessOverride: number;
2815
+ /** @description How the flat patterns are nested. Left out, every flat is placed once on sheets sized for them, turning in quarter turns. */
2816
+ nesting?: components["schemas"]["UnfoldNestingOptions"];
2817
+ /** @description Output formats for the nested sheets and the flat patterns. Defaults to glTF of the nested sheets. */
2818
+ outputs?: components["schemas"]["UnfoldAndNestOutputOptions"];
2819
+ };
2820
+ /** @description How the flat patterns of an unfold are nested: the stock, the copies, how each flat may turn, and the search settings. Every length is in millimetres. */
2821
+ UnfoldNestingOptions: {
2822
+ /** @description The stock to nest onto: kinds of rectangular sheets, or one strip. Left out, one kind of sheet is sized for the flat patterns: at least twice as long as it is wide, holding the largest flat with its margins, large enough that all the flats fill about half of it, its sides rounded up. When every flat fits on standard 3000 x 1500 stock and that sheet would be larger, the standard stock is used instead. */
2823
+ sheets?: (components["schemas"]["NestingStrip"] | components["schemas"]["NestingSheet"])[];
2824
+ /** @description How many copies of every flat pattern to place: the number of models to make. Defaults to 1. All copies together, this number times the number of flat patterns, stay within 100000. */
2825
+ quantity?: number;
2826
+ rotations?: components["schemas"]["NestingRotations"];
2827
+ /** @description Whether every flat pattern may be turned over (a half turn about an axis in its plane, never a mirror). Defaults to false. */
2828
+ allowFlip?: boolean;
2829
+ /** @description The least distance kept between any two flat patterns, in millimetres, measured on their true shapes. Defaults to a gap sized to the flats: a fiftieth of the square root of their area, rounded to 1, 2 or 5 of its decade. */
2830
+ spacing?: number;
2831
+ /** @description The band along each sheet's edges that no flat pattern enters, in millimetres. Defaults to the gap sized to the flats, the same one the spacing takes when it is left out; a spacing that is given does not change it. */
2832
+ margin?: number;
2833
+ /** @description How long the nesting may search; the best layout found by then is returned. Defaults to 5 seconds, at most 120. */
2834
+ timeBudgetSeconds?: number;
2835
+ /** @description How far the straight chords that stand in for curved edges may stray from them, in the parts' units (millimetres for parts read from STEP files); the spacing still holds on the true curves. Defaults to 0.1. */
2836
+ tolerance?: number;
2837
+ /** @description Stop after this many placements are tried, which makes a run repeatable for one seed; the time budget still applies. 0 means no limit. */
2838
+ evaluationBudget?: number;
2839
+ /** @description The seed of the search's random choices. Defaults to 1. */
2840
+ seed?: number;
2841
+ /** @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. */
2842
+ sheetGap?: number;
2843
+ };
2844
+ /** @description One strip of open length; it stands alone, never beside other stock. */
2845
+ NestingStrip: {
2846
+ /** @constant */
2847
+ strip: true;
2848
+ /** @description The strip's width across, along y, in the parts' units (millimetres for parts read from STEP files). Its length along x is open and is what the nesting makes as short as it can. */
2849
+ height: number;
2850
+ /** @description What the strip costs: one amount, added to the totals' cost whatever length the nesting uses. Defaults to 1. */
2851
+ cost?: number;
2852
+ };
2853
+ /** @description One kind of rectangular stock. */
2854
+ NestingSheet: {
2855
+ /** @description The sheet's side along x, in the parts' units (millimetres for parts read from STEP files). */
2856
+ width: number;
2857
+ /** @description The sheet's side along y, in the parts' units (millimetres for parts read from STEP files). */
2858
+ height: number;
2859
+ /** @description How many sheets of this stock there are. Without it, as many as needed. */
2860
+ quantity?: number;
2861
+ /** @description What one sheet of this stock costs. Without costs, the stock that wastes least is opened first (each sheet costs its area). */
2862
+ cost?: number;
2863
+ /** @constant */
2864
+ strip?: false;
2865
+ };
2866
+ /** @description How a part may turn on the sheet: a fixed list of angles, steps that divide a full turn, or any angle. Without it a part turns in steps of 90 degrees. */
2867
+ NestingRotations: {
2868
+ /** @constant */
2869
+ mode: "fixed";
2870
+ /** @description The turns a part may take, in degrees, such as [0, 180] for a grain direction; at most 720. */
2871
+ angles: number[];
2872
+ } | {
2873
+ /** @constant */
2874
+ mode: "step";
2875
+ /** @description Turn in steps of this many degrees; it must divide 360 evenly (90 gives 0, 90, 180 and 270). */
2876
+ step: number;
2877
+ } | {
2878
+ /** @constant */
2879
+ mode: "free";
2880
+ };
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. */
2882
+ UnfoldAndNestOutputOptions: {
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. */
2884
+ formats: ("step" | "stpz" | "decomposed-mesh" | "gltf" | "dxf" | "svg" | "outlines" | "flat-meshes")[];
2885
+ /** @description Tessellation precision for mesh-based outputs (decomposed-mesh and gltf). Lower values produce denser meshes. Only ignored when output is limited to step/stpz formats. */
2886
+ meshPrecision?: components["schemas"]["MeshPrecision"];
2887
+ /** @description Override tessellation precision specifically for glTF output. When set, takes precedence over meshPrecision for glTF only. */
2888
+ gltfMeshPrecision?: components["schemas"]["MeshPrecision"];
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. */
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"];
2893
+ };
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. */
2895
+ NestingNestBody: {
2896
+ /** @description IDs of previously uploaded STEP files (.step, .stp or gzip-compressed .stpz), at most 50 and 200 MB together. Parts are read file after file, as each file's product structure gives them: every placement of a part (a product) is a part, and a file with no assembly is its one part. Within a part, every solid is a part of its own, in the order they sit, and whatever else it holds stays one part after them (an unfolded flat pattern with its bend lines, a drawing's outline with its holes); a part with no edge is skipped, and a request whose files give no part at all is refused. Parts are read into the Y-up working space the report uses. options.parts[i] pairs with the i-th part over all files, at most 5000, and the report names each part's file. */
2897
+ stepFileIds: string[];
2898
+ /** @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. */
2899
+ fileUnit?: components["schemas"]["LengthUnit"];
2900
+ options: components["schemas"]["NestingOptions"];
2901
+ /** @description Output formats for the nested sheets: every used sheet is one part, holding its placed parts and its outline, and all sheets are combined into one output per format. Defaults to glTF. */
2902
+ outputs?: components["schemas"]["NestingOutputOptions"];
2903
+ };
2904
+ /** @description The stock, the per-part options and the settings of a nesting run. Every length is in the parts' units: millimetres on the nesting routes, which read their STEP files in millimetres, and the unit a pipeline models its shapes in for an occtPro.nesting step. */
2905
+ NestingOptions: {
2906
+ /** @description The stock to nest onto: kinds of rectangular sheets, or one strip. */
2907
+ sheets: (components["schemas"]["NestingStrip"] | components["schemas"]["NestingSheet"])[];
2908
+ /** @description The options of each part, in the order of the parts; the list may not be longer than the parts there are. A null entry, and every part past the end of the list, takes the defaults. All copies together stay within 100000, every part counting its quantity, or 1 when it has no entry or its entry gives none: the entries given are checked when the request arrives, and the total over every part once the parts are read. The request body may grow by 256 bytes for each of the 5000 parts nesting takes, so the options of every part fit, each with its quantity, a few fixed angles, a flip, a priority and an x direction. */
2909
+ parts?: (components["schemas"]["NestingPartOptions"] | null)[];
2910
+ /** @description The least distance kept between any two parts, in the parts' units (millimetres for parts read from STEP files), measured on their true shapes. Defaults to 0, where parts that tile exactly may touch. */
2911
+ spacing?: number;
2912
+ /** @description The band along each sheet's edges that no part enters, in the parts' units (millimetres for parts read from STEP files). Defaults to 0. */
2913
+ margin?: number;
2914
+ /** @description How long the search may run; the best layout found by then is returned. Defaults to 10 seconds, at most 120. */
2915
+ timeBudgetSeconds?: number;
2916
+ /** @description How far the straight chords that stand in for curved edges may stray from them, in the parts' units (millimetres for parts read from STEP files); the spacing still holds on the true curves. Defaults to 0.1. */
2917
+ tolerance?: number;
2918
+ /** @description Stop after this many placements are tried, which makes a run repeatable for one seed; the time budget still applies. 0 means no limit. */
2919
+ evaluationBudget?: number;
2920
+ /** @description The seed of the search's random choices. Defaults to 1. */
2921
+ seed?: number;
2922
+ /** @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. */
2923
+ sheetGap?: number;
2924
+ };
2925
+ /** @description The options of one part, paired with the part of the same index. */
2926
+ NestingPartOptions: {
2927
+ /** @description How many copies of the part to place. Defaults to 1; 0 leaves the part out. */
2928
+ quantity?: number;
2929
+ rotations?: components["schemas"]["NestingRotations"];
2930
+ /** @description Whether the part may be turned over (a half turn about an axis in its plane, never a mirror). Defaults to false. */
2931
+ allowFlip?: boolean;
2932
+ /** @description Parts of higher priority are placed first, so they are the last to be left off when stock runs out. Defaults to 0. */
2933
+ priority?: number;
2934
+ /** @description The direction in the part's plane that a rotation of 0 lays along the sheet's x axis, in the Y-up working space the parts are read into (a STEP file's Z-up numbers are turned a quarter about X first, so the file's +Y is -Z here). A part lying flat keeps its drawn direction without it; one lying askew is squared up to its smallest box. */
2935
+ xDirection?: [
2936
+ number,
2937
+ number,
2938
+ number
2939
+ ];
2940
+ };
2941
+ /** @description Which formats the nested sheets are written in, their mesh quality, and the unit of the DXF and SVG cut files. */
2942
+ NestingOutputOptions: {
2943
+ /** @description Output formats to generate; each gives a separate downloadable result. Give 'step' or 'stpz', not both. */
2944
+ formats: components["schemas"]["NestingOutputFormat"][];
2945
+ /** @description Tessellation precision for mesh-based outputs (decomposed-mesh and gltf). Lower values produce denser meshes. Only ignored when output is limited to step/stpz formats. */
2946
+ meshPrecision?: components["schemas"]["MeshPrecision"];
2947
+ /** @description Override tessellation precision specifically for glTF output. When set, takes precedence over meshPrecision for glTF only. */
2948
+ gltfMeshPrecision?: components["schemas"]["MeshPrecision"];
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. */
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"];
2953
+ };
2954
+ /**
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).
2956
+ * @enum {string}
2957
+ */
2958
+ NestingOutputFormat: "step" | "stpz" | "decomposed-mesh" | "gltf" | "dxf" | "svg" | "outlines";
2959
+ /** @description Read the parts of uploaded STEP files as nesting would, without nesting them: each part's file, kind, outline size, area and cut length, or why it cannot be nested. */
2960
+ NestingInspectBody: {
2961
+ /** @description IDs of previously uploaded STEP files (.step, .stp or gzip-compressed .stpz), at most 50 and 200 MB together. Parts are read file after file, as each file's product structure gives them: every placement of a part (a product) is a part, and a file with no assembly is its one part. Within a part, every solid is a part of its own, in the order they sit, and whatever else it holds stays one part after them (an unfolded flat pattern with its bend lines, a drawing's outline with its holes); a part with no edge is skipped, and a request whose files give no part at all is refused. Parts are read into the Y-up working space the report uses. options.parts[i] pairs with the i-th part over all files, at most 5000, and the report names each part's file. */
2962
+ stepFileIds: string[];
2963
+ /** @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. */
2964
+ fileUnit?: components["schemas"]["LengthUnit"];
2965
+ options?: components["schemas"]["NestingInspectOptions"];
2966
+ };
2967
+ /** @description The settings that change how parts are read (tolerance, xDirection); no stock is needed. Every length is in the parts' units: millimetres on the nesting routes, which read their STEP files in millimetres, and the unit a pipeline models its shapes in for an occtPro.nesting step. */
2968
+ NestingInspectOptions: {
2969
+ sheets?: (components["schemas"]["NestingStrip"] | components["schemas"]["NestingSheet"])[];
2970
+ /** @description The options of each part, in the order of the parts; the list may not be longer than the parts there are. A null entry, and every part past the end of the list, takes the defaults. All copies together stay within 100000, every part counting its quantity, or 1 when it has no entry or its entry gives none: the entries given are checked when the request arrives, and the total over every part once the parts are read. The request body may grow by 256 bytes for each of the 5000 parts nesting takes, so the options of every part fit, each with its quantity, a few fixed angles, a flip, a priority and an x direction. */
2971
+ parts?: (components["schemas"]["NestingPartOptions"] | null)[];
2972
+ /** @description The least distance kept between any two parts, in the parts' units (millimetres for parts read from STEP files), measured on their true shapes. Defaults to 0, where parts that tile exactly may touch. */
2973
+ spacing?: number;
2974
+ /** @description The band along each sheet's edges that no part enters, in the parts' units (millimetres for parts read from STEP files). Defaults to 0. */
2975
+ margin?: number;
2976
+ /** @description How long the search may run; the best layout found by then is returned. Defaults to 10 seconds, at most 120. */
2977
+ timeBudgetSeconds?: number;
2978
+ /** @description How far the straight chords that stand in for curved edges may stray from them, in the parts' units (millimetres for parts read from STEP files); the spacing still holds on the true curves. Defaults to 0.1. */
2979
+ tolerance?: number;
2980
+ /** @description Stop after this many placements are tried, which makes a run repeatable for one seed; the time budget still applies. 0 means no limit. */
2981
+ evaluationBudget?: number;
2982
+ /** @description The seed of the search's random choices. Defaults to 1. */
2983
+ seed?: number;
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. */
2985
+ sheetGap?: number;
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: {
2416
3095
  /**
2417
- * @description Sheet thickness override in model units; 0 auto-detects thickness from face pairs.
2418
- * @default 0
3096
+ * @description A named view of the front frame. Give one of name, frame and saved.
3097
+ * @enum {string}
2419
3098
  */
2420
- thicknessOverride: number;
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
+ ];
2421
3227
  };
2422
- /** @description Flatten every constant-thickness sheet-metal solid in an uploaded STEP file AND return the per-solid metrics report - both in one call. */
2423
- UnfoldSolidBody: {
2424
- /** @description ID of the previously uploaded STEP file (returned by the file upload endpoint). Both plain STEP (.step/.stp) and gzip-compressed STEP (.stpz) uploads are accepted - compression is detected automatically. */
2425
- stepFileId: string;
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"];
2426
3267
  /**
2427
- * @description Sheet-metal K-factor (neutral-axis position), typically ~0.5.
2428
- * @default 0.5
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}
2429
3270
  */
2430
- kFactor: number;
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: {
2431
3316
  /**
2432
- * @description Sheet thickness override in model units; 0 auto-detects thickness from face pairs.
2433
- * @default 0
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}
2434
3319
  */
2435
- thicknessOverride: number;
2436
- /** @description Output formats for the flattened patterns. For 'gltf'/'step'/'stpz', every solid's flat is combined into one compound output. The 'decomposed-mesh' format instead returns one mesh per solid (each tagged with its 'solidIndex'). Defaults to glTF. */
2437
- outputs?: components["schemas"]["OutputOptions"];
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;
2438
3349
  };
2439
3350
  /** @description Request a pre-signed upload URL. After receiving the URL, PUT the raw file bytes to it within the expiration window. */
2440
3351
  FileUploadBody: {
@@ -2472,6 +3383,8 @@ export interface components {
2472
3383
  totalArea: number;
2473
3384
  faces: components["schemas"]["UnfoldFaceEntry"][];
2474
3385
  placed: components["schemas"]["UnfoldPlaced"][];
3386
+ /** @description Why the flat pattern has no mesh in the decomposed-mesh or flat-meshes result, when it could not be meshed. The flat is still in every other output and, on unfold-and-nest, in the nest. */
3387
+ meshError?: string;
2475
3388
  } | components["schemas"]["UnfoldSolidReportError"];
2476
3389
  /** @description One bend: line, angle, radii (inner/outer/neutral and per-end for cones), and developed lengths. */
2477
3390
  UnfoldBend: {
@@ -2493,6 +3406,24 @@ export interface components {
2493
3406
  number,
2494
3407
  number
2495
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
+ ];
2496
3427
  bendLineLength: number;
2497
3428
  angleDeg: number;
2498
3429
  innerRadius: number;
@@ -2509,7 +3440,10 @@ export interface components {
2509
3440
  outsideSetback: number;
2510
3441
  innerArcLength: number;
2511
3442
  outerArcLength: number;
2512
- /** @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
+ */
2513
3447
  direction: "up" | "down";
2514
3448
  /**
2515
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.
@@ -2580,6 +3514,589 @@ export interface components {
2580
3514
  faces?: components["schemas"]["UnfoldFaceEntry"][];
2581
3515
  placed?: components["schemas"]["UnfoldPlaced"][];
2582
3516
  };
3517
+ /** @description One used sheet: its stock, where it lies in the working space, and how much of it the parts fill. */
3518
+ NestingSheetEntry: {
3519
+ index: number;
3520
+ /** @description The index of the stock in the options' sheets. */
3521
+ stock: number;
3522
+ /** @enum {string} */
3523
+ kind: "sheet" | "strip";
3524
+ /** @description The sheet's width; for a strip, the length it used. */
3525
+ width: number;
3526
+ height: number;
3527
+ cost: number;
3528
+ /** @description Where the sheet's corner lies in the working space, Y up, the sheet on the XZ plane facing +Y. A STEP output turns this space to Z up. */
3529
+ origin: [
3530
+ number,
3531
+ number,
3532
+ number
3533
+ ];
3534
+ usedLength: number;
3535
+ remnantLength: number;
3536
+ parts: number;
3537
+ partArea: number;
3538
+ utilization: number;
3539
+ };
3540
+ /** @description Where one copy of a part was placed. */
3541
+ NestingPlacement: {
3542
+ part: number;
3543
+ copy: number;
3544
+ sheet: number;
3545
+ x: number;
3546
+ y: number;
3547
+ angleDeg: number;
3548
+ flipped: boolean;
3549
+ /** @description The part's box on its sheet as [minX, minY, maxX, maxY]. */
3550
+ box: number[];
3551
+ /** @description A point inside the placed part's material, for a label, in the working space (Y up). */
3552
+ anchor: [
3553
+ number,
3554
+ number,
3555
+ number
3556
+ ];
3557
+ /** @description The 4 x 4 matrix, column by column, that moves the input part to its place in the working space (Y up); a STEP output is that space turned to Z up. */
3558
+ transform: number[];
3559
+ };
3560
+ /** @description How one part was read, and how many of its copies were placed. */
3561
+ NestingPartEntry: {
3562
+ index: number;
3563
+ /** @description Which uploaded file the part came from, as an index into stepFileIds; present on the nesting routes, which read parts from files. */
3564
+ file?: number;
3565
+ /** @description Which solid of the model the flat pattern was unfolded from, as its solidIndex in the unfold report; present on the unfold-and-nest route. */
3566
+ solid?: number;
3567
+ ok: boolean;
3568
+ /** @description Why the part cannot be nested: nullShape, notPlanar, notClosed, notPlate, unsupportedShape or invalidGeometry. */
3569
+ problem?: string;
3570
+ /** @description What the part was read as: face, faces, solid, wire or wires. */
3571
+ kind: string;
3572
+ area: number;
3573
+ width: number;
3574
+ height: number;
3575
+ /** @description A plate's thickness; 0 for a face or a drawing. */
3576
+ depth: number;
3577
+ /** @description How far the outline's chords may stray from the true edges; added to the spacing. */
3578
+ slack: number;
3579
+ cutLength: number;
3580
+ loops: number;
3581
+ points: number;
3582
+ searchedPoints: number;
3583
+ quantity: number;
3584
+ placed: number;
3585
+ };
3586
+ /** @description Copies of a part that were not placed, and why. */
3587
+ NestingLeft: {
3588
+ part: number;
3589
+ count: number;
3590
+ /** @description The part's problem, or tooLargeForAnySheet, noStockLeft, timeBudget or verificationFailed. */
3591
+ reason: string;
3592
+ };
3593
+ /** @description Totals over every used sheet. */
3594
+ NestingTotals: {
3595
+ sheets: number;
3596
+ placed: number;
3597
+ left: number;
3598
+ partArea: number;
3599
+ sheetArea: number;
3600
+ utilization: number;
3601
+ cost: number;
3602
+ cutLength: number;
3603
+ pierces: number;
3604
+ };
3605
+ /** @description How the search ran: whether the same seed gives the same layout again, and whether it was stopped or ran out of time. */
3606
+ NestingRun: {
3607
+ seed: number;
3608
+ evaluations: number;
3609
+ seconds: number;
3610
+ reproducible: boolean;
3611
+ stopped: boolean;
3612
+ hitWallLimit: boolean;
3613
+ };
3614
+ /** @description The nesting kernel's own answer when it refuses the options or is stopped before any part was nested. No result carries it: the API fails the task with its error instead. */
3615
+ NestingReportError: {
3616
+ /** @constant */
3617
+ ok: false;
3618
+ error: string;
3619
+ };
3620
+ /** @description A full circle. */
3621
+ NestingOutlineCircle: {
3622
+ /** @description The centre's x and y and the radius. */
3623
+ circle: [
3624
+ number,
3625
+ number,
3626
+ number
3627
+ ];
3628
+ };
3629
+ /** @description Lines and arcs from vertex to vertex. */
3630
+ NestingOutlinePolyline: {
3631
+ /** @description The vertices as x, y pairs, one after another. */
3632
+ points: number[];
3633
+ /** @description One per vertex: the tangent of a quarter of the arc's angle from that vertex to the next, 0 for a straight line, positive turning counterclockwise. */
3634
+ bulges: number[];
3635
+ closed: boolean;
3636
+ };
3637
+ /** @description An ellipse or an arc of one. */
3638
+ NestingOutlineEllipse: {
3639
+ ellipse: {
3640
+ /** @description The centre's x and y. */
3641
+ center: number[];
3642
+ /** @description The vector from the centre to one end of the major axis; its length is the major radius. */
3643
+ majorAxis: number[];
3644
+ /** @description The minor radius divided by the major radius. */
3645
+ ratio: number;
3646
+ /** @description Where the arc starts, as the ellipse's parameter t in radians: the point center + cos(t) majorAxis + sin(t) ratio (-majorAxis y, majorAxis x), the minor axis being the major one turned a quarter counterclockwise and scaled by ratio. t is the angle from the major axis only when ratio is 1. */
3647
+ start: number;
3648
+ /** @description Where the arc ends, as the same parameter t in radians; the arc runs counterclockwise from start to end, a whole ellipse from 0 to 2 pi. */
3649
+ end: number;
3650
+ };
3651
+ };
3652
+ /** @description A B-spline or NURBS curve. */
3653
+ NestingOutlineSpline: {
3654
+ spline: {
3655
+ degree: number;
3656
+ /** @description The full knot vector, one more value than the control points and the degree together; the curve starts and ends at its end points. */
3657
+ knots: number[];
3658
+ /** @description The control points as x, y pairs, one after another. */
3659
+ points: number[];
3660
+ /** @description One weight per control point when the curve is rational; left out, every weight is 1. */
3661
+ weights?: number[];
3662
+ };
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
+ };
2583
4100
  /** @description Success envelope for health check */
2584
4101
  HealthResponse: {
2585
4102
  /** @constant */
@@ -3022,6 +4539,8 @@ export interface components {
3022
4539
  totalArea: number;
3023
4540
  faces: components["schemas"]["UnfoldFaceEntryOutput"][];
3024
4541
  placed: components["schemas"]["UnfoldPlacedOutput"][];
4542
+ /** @description Why the flat pattern has no mesh in the decomposed-mesh or flat-meshes result, when it could not be meshed. The flat is still in every other output and, on unfold-and-nest, in the nest. */
4543
+ meshError?: string;
3025
4544
  } | components["schemas"]["UnfoldSolidReportErrorOutput"];
3026
4545
  /** @description One bend: line, angle, radii (inner/outer/neutral and per-end for cones), and developed lengths. */
3027
4546
  UnfoldBendOutput: {
@@ -3043,6 +4562,24 @@ export interface components {
3043
4562
  number,
3044
4563
  number
3045
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
+ ];
3046
4583
  bendLineLength: number;
3047
4584
  angleDeg: number;
3048
4585
  innerRadius: number;
@@ -3059,7 +4596,10 @@ export interface components {
3059
4596
  outsideSetback: number;
3060
4597
  innerArcLength: number;
3061
4598
  outerArcLength: number;
3062
- /** @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
+ */
3063
4603
  direction: "up" | "down";
3064
4604
  /**
3065
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.
@@ -3130,6 +4670,159 @@ export interface components {
3130
4670
  faces?: components["schemas"]["UnfoldFaceEntryOutput"][];
3131
4671
  placed?: components["schemas"]["UnfoldPlacedOutput"][];
3132
4672
  };
4673
+ /** @description One used sheet: its stock, where it lies in the working space, and how much of it the parts fill. */
4674
+ NestingSheetEntryOutput: {
4675
+ index: number;
4676
+ /** @description The index of the stock in the options' sheets. */
4677
+ stock: number;
4678
+ /** @enum {string} */
4679
+ kind: "sheet" | "strip";
4680
+ /** @description The sheet's width; for a strip, the length it used. */
4681
+ width: number;
4682
+ height: number;
4683
+ cost: number;
4684
+ /** @description Where the sheet's corner lies in the working space, Y up, the sheet on the XZ plane facing +Y. A STEP output turns this space to Z up. */
4685
+ origin: [
4686
+ number,
4687
+ number,
4688
+ number
4689
+ ];
4690
+ usedLength: number;
4691
+ remnantLength: number;
4692
+ parts: number;
4693
+ partArea: number;
4694
+ utilization: number;
4695
+ };
4696
+ /** @description Where one copy of a part was placed. */
4697
+ NestingPlacementOutput: {
4698
+ part: number;
4699
+ copy: number;
4700
+ sheet: number;
4701
+ x: number;
4702
+ y: number;
4703
+ angleDeg: number;
4704
+ flipped: boolean;
4705
+ /** @description The part's box on its sheet as [minX, minY, maxX, maxY]. */
4706
+ box: number[];
4707
+ /** @description A point inside the placed part's material, for a label, in the working space (Y up). */
4708
+ anchor: [
4709
+ number,
4710
+ number,
4711
+ number
4712
+ ];
4713
+ /** @description The 4 x 4 matrix, column by column, that moves the input part to its place in the working space (Y up); a STEP output is that space turned to Z up. */
4714
+ transform: number[];
4715
+ };
4716
+ /** @description How one part was read, and how many of its copies were placed. */
4717
+ NestingPartEntryOutput: {
4718
+ index: number;
4719
+ /** @description Which uploaded file the part came from, as an index into stepFileIds; present on the nesting routes, which read parts from files. */
4720
+ file?: number;
4721
+ /** @description Which solid of the model the flat pattern was unfolded from, as its solidIndex in the unfold report; present on the unfold-and-nest route. */
4722
+ solid?: number;
4723
+ ok: boolean;
4724
+ /** @description Why the part cannot be nested: nullShape, notPlanar, notClosed, notPlate, unsupportedShape or invalidGeometry. */
4725
+ problem?: string;
4726
+ /** @description What the part was read as: face, faces, solid, wire or wires. */
4727
+ kind: string;
4728
+ area: number;
4729
+ width: number;
4730
+ height: number;
4731
+ /** @description A plate's thickness; 0 for a face or a drawing. */
4732
+ depth: number;
4733
+ /** @description How far the outline's chords may stray from the true edges; added to the spacing. */
4734
+ slack: number;
4735
+ cutLength: number;
4736
+ loops: number;
4737
+ points: number;
4738
+ searchedPoints: number;
4739
+ quantity: number;
4740
+ placed: number;
4741
+ };
4742
+ /** @description Copies of a part that were not placed, and why. */
4743
+ NestingLeftOutput: {
4744
+ part: number;
4745
+ count: number;
4746
+ /** @description The part's problem, or tooLargeForAnySheet, noStockLeft, timeBudget or verificationFailed. */
4747
+ reason: string;
4748
+ };
4749
+ /** @description Totals over every used sheet. */
4750
+ NestingTotalsOutput: {
4751
+ sheets: number;
4752
+ placed: number;
4753
+ left: number;
4754
+ partArea: number;
4755
+ sheetArea: number;
4756
+ utilization: number;
4757
+ cost: number;
4758
+ cutLength: number;
4759
+ pierces: number;
4760
+ };
4761
+ /** @description How the search ran: whether the same seed gives the same layout again, and whether it was stopped or ran out of time. */
4762
+ NestingRunOutput: {
4763
+ seed: number;
4764
+ evaluations: number;
4765
+ seconds: number;
4766
+ reproducible: boolean;
4767
+ stopped: boolean;
4768
+ hitWallLimit: boolean;
4769
+ };
4770
+ /** @description The nesting kernel's own answer when it refuses the options or is stopped before any part was nested. No result carries it: the API fails the task with its error instead. */
4771
+ NestingReportErrorOutput: {
4772
+ /** @constant */
4773
+ ok: false;
4774
+ error: string;
4775
+ };
4776
+ /** @description A full circle. */
4777
+ NestingOutlineCircleOutput: {
4778
+ /** @description The centre's x and y and the radius. */
4779
+ circle: [
4780
+ number,
4781
+ number,
4782
+ number
4783
+ ];
4784
+ };
4785
+ /** @description Lines and arcs from vertex to vertex. */
4786
+ NestingOutlinePolylineOutput: {
4787
+ /** @description The vertices as x, y pairs, one after another. */
4788
+ points: number[];
4789
+ /** @description One per vertex: the tangent of a quarter of the arc's angle from that vertex to the next, 0 for a straight line, positive turning counterclockwise. */
4790
+ bulges: number[];
4791
+ closed: boolean;
4792
+ };
4793
+ /** @description An ellipse or an arc of one. */
4794
+ NestingOutlineEllipseOutput: {
4795
+ ellipse: {
4796
+ /** @description The centre's x and y. */
4797
+ center: number[];
4798
+ /** @description The vector from the centre to one end of the major axis; its length is the major radius. */
4799
+ majorAxis: number[];
4800
+ /** @description The minor radius divided by the major radius. */
4801
+ ratio: number;
4802
+ /** @description Where the arc starts, as the ellipse's parameter t in radians: the point center + cos(t) majorAxis + sin(t) ratio (-majorAxis y, majorAxis x), the minor axis being the major one turned a quarter counterclockwise and scaled by ratio. t is the angle from the major axis only when ratio is 1. */
4803
+ start: number;
4804
+ /** @description Where the arc ends, as the same parameter t in radians; the arc runs counterclockwise from start to end, a whole ellipse from 0 to 2 pi. */
4805
+ end: number;
4806
+ };
4807
+ };
4808
+ /** @description A B-spline or NURBS curve. */
4809
+ NestingOutlineSplineOutput: {
4810
+ spline: {
4811
+ degree: number;
4812
+ /** @description The full knot vector, one more value than the control points and the degree together; the curve starts and ends at its end points. */
4813
+ knots: number[];
4814
+ /** @description The control points as x, y pairs, one after another. */
4815
+ points: number[];
4816
+ /** @description One weight per control point when the curve is rational; left out, every weight is 1. */
4817
+ weights?: number[];
4818
+ };
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
+ };
3133
4826
  /** @description Sheet-metal unfold metrics for a single face (surface type, developability, area before/after). */
3134
4827
  UnfoldFaceReport: {
3135
4828
  /** @constant */
@@ -3147,6 +4840,133 @@ export interface components {
3147
4840
  UnfoldSolidReport: (components["schemas"]["UnfoldSolidReportItemOutput"] & {
3148
4841
  solidIndex: number;
3149
4842
  })[];
4843
+ /** @description The layout of a nesting run: the used sheets, every placement with its transform, each part as read, what was left and why, and the totals. Every length is in the parts' units, millimetres for parts read from STEP files. Positions are in the working space, right-handed with Y up; a STEP output turns that space to Z up, a quarter turn about X. 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. */
4844
+ NestingReport: {
4845
+ /** @constant */
4846
+ ok: true;
4847
+ version: number;
4848
+ spacing: number;
4849
+ margin: number;
4850
+ tolerance: number;
4851
+ allowance: number;
4852
+ sheets: components["schemas"]["NestingSheetEntryOutput"][];
4853
+ placements: components["schemas"]["NestingPlacementOutput"][];
4854
+ parts: components["schemas"]["NestingPartEntryOutput"][];
4855
+ left: components["schemas"]["NestingLeftOutput"][];
4856
+ totals: components["schemas"]["NestingTotalsOutput"];
4857
+ run: components["schemas"]["NestingRunOutput"];
4858
+ } | components["schemas"]["NestingReportErrorOutput"];
4859
+ /** @description Each part as nesting reads it, without nesting. Every length is in the parts' units, millimetres for parts read from STEP files. 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. */
4860
+ NestingInspection: {
4861
+ /** @constant */
4862
+ ok: true;
4863
+ version: number;
4864
+ parts: components["schemas"]["NestingPartEntryOutput"][];
4865
+ } | components["schemas"]["NestingReportErrorOutput"];
4866
+ /** @description The cut paths of every placed copy in the frame of its sheet: x along the sheet's width and y along its height from the corner, as the report's placement boxes are; the 'outlines' result of a nest. */
4867
+ NestingOutlines: {
4868
+ version: number;
4869
+ sheets: {
4870
+ index: number;
4871
+ width: number;
4872
+ height: number;
4873
+ copies: {
4874
+ /** @description The placement in the report this copy is. */
4875
+ placement: number;
4876
+ part: number;
4877
+ segments: (components["schemas"]["NestingOutlineCircleOutput"] | components["schemas"]["NestingOutlinePolylineOutput"] | components["schemas"]["NestingOutlineEllipseOutput"] | components["schemas"]["NestingOutlineSplineOutput"])[];
4878
+ /** @description The same cut path as SVG path data in the sheet's frame, y up: arcs and ellipses exact, splines as Bezier curves. */
4879
+ path: string;
4880
+ }[];
4881
+ }[];
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"];
3150
4970
  };
3151
4971
  responses: never;
3152
4972
  parameters: never;