{
"request_id": "req_0d6b255df3254fdc9b8f",
"api_version": "1.0",
"status": "completed",
"summary": {
"errors": 0,
"warnings": 0,
"info": 0
},
"issues": [],
"issues_truncated": false,
"data": {
"dxf_version": "AC1009",
"release": "R12",
"units": {
"declared": 4,
"declared_name": "mm",
"effective": "mm",
"source": "header",
"to_mm": 1
},
"entities": {
"total_after_block_expansion": 6,
"by_type": {
"LINE": 5,
"CIRCLE": 1
},
"analysable_curves": {
"LINE": 5,
"CIRCLE": 1
},
"ignored": [],
"unsupported": []
},
"layers": [
{
"name": "0",
"on": true,
"frozen": false,
"locked": false,
"color": 7,
"linetype": "Continuous",
"entities": 0
},
{
"name": "Defpoints",
"on": true,
"frozen": false,
"locked": false,
"color": 7,
"linetype": "Continuous",
"entities": 0
},
{
"name": "CUT",
"on": true,
"frozen": false,
"locked": false,
"color": null,
"linetype": null,
"declared_in_layer_table": false,
"entities": 5
},
{
"name": "ETCH",
"on": true,
"frozen": false,
"locked": false,
"color": null,
"linetype": null,
"declared_in_layer_table": false,
"entities": 1
}
],
"blocks_used": 0,
"paperspace_entities": 0,
"bounding_box": {
"min": [
0,
0
],
"max": [
200,
100
],
"width": 200,
"height": 100
},
"metadata": {
"acadver": "AC1009",
"tdcreate": 2461375.713587963,
"tolerances": {
"endpoint_match": 2.2360679774997894e-5,
"curve_chord_error": 0.00022360679774997895,
"note": "Drawing units. Override with options.tolerance / options.flatten_tolerance."
}
}
},
"processing": {
"duration_ms": 18,
"units_consumed": 1,
"unit_definition": "1 unit = up to 5,000 drawing entities after block expansion (minimum 1)",
"rows_processed": 6
}
}
curl --location --request POST 'https://zylalabs.com/api/15787/cadguard+dxf+api/43220/inspect+a+dxf' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json'
--data-raw '{"dxf_text":"0\nSECTION\n2\nHEADER\n9\n$INSUNITS\n70\n4\n0\nENDSEC\n0\nSECTION\n2\nENTITIES\n0\nLINE\n8\nCUT\n10\n0\n20\n0\n11\n200\n21\n0\n0\nLINE\n8\nCUT\n10\n200\n20\n0\n11\n200\n21\n100\n0\nLINE\n8\nCUT\n10\n200\n20\n100\n11\n0\n21\n100\n0\nLINE\n8\nCUT\n10\n0\n20\n100\n11\n0\n21\n0\n0\nCIRCLE\n8\nCUT\n10\n100\n20\n50\n40\n20\n0\nLINE\n8\nETCH\n10\n10\n20\n10\n11\n60\n21\n10\n0\nENDSEC\n0\nEOF\n","options":{}}'
{
"request_id": "req_ce4405b1c3a84383932e",
"api_version": "1.0",
"status": "completed",
"summary": {
"errors": 0,
"warnings": 0,
"info": 0
},
"issues": [],
"issues_truncated": false,
"data": {
"units": "mm",
"units_source": "customer",
"bounding_box": {
"min": [
0,
0
],
"max": [
120,
60
],
"width": 120,
"height": 60
},
"accuracy": "curve extremes within 0.000134 units",
"bounding_box_mm": {
"width": 120,
"height": 60
}
},
"processing": {
"duration_ms": 10,
"units_consumed": 1,
"unit_definition": "1 unit = up to 5,000 drawing entities after block expansion (minimum 1)",
"rows_processed": 9
}
}
curl --location --request POST 'https://zylalabs.com/api/15787/cadguard+dxf+api/43221/size+and+bounding+box' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json'
--data-raw '{"dxf_text":"0\nSECTION\n2\nHEADER\n9\n$INSUNITS\n70\n4\n0\nENDSEC\n0\nSECTION\n2\nENTITIES\n0\nLINE\n8\nCUT\n10\n0\n20\n0\n11\n200\n21\n0\n0\nLINE\n8\nCUT\n10\n200\n20\n0\n11\n200\n21\n100\n0\nLINE\n8\nCUT\n10\n200\n20\n100\n11\n0\n21\n100\n0\nLINE\n8\nCUT\n10\n0\n20\n100\n11\n0\n21\n0\n0\nCIRCLE\n8\nCUT\n10\n100\n20\n50\n40\n20\n0\nLINE\n8\nETCH\n10\n10\n20\n10\n11\n60\n21\n10\n0\nENDSEC\n0\nEOF\n","options":[]}'
{
"request_id": "req_5ff868e5c20f4882a442",
"api_version": "1.0",
"status": "completed",
"summary": {
"errors": 1,
"warnings": 0,
"info": 0
},
"issues": [
{
"code": "DUPLICATE_ENTITY",
"severity": "error",
"message": "LINE is drawn twice; a laser would cut it twice.",
"location": {
"row": null,
"column": null,
"sheet": null,
"handle": "32",
"layer": "CUT",
"point": [
5,
55
]
},
"value": null,
"suggestion": null,
"basis": "structural",
"fixable": true
}
],
"issues_truncated": false,
"data": {
"units": "mm",
"units_source": "customer",
"cut_length": 600.463706144,
"cut_length_breakdown": {
"all_entities": 635.463706144,
"duplicates_removed": 35,
"collinear_overlap_removed": 0
},
"exact": true,
"numeric_error_bound": 0,
"contours": {
"closed": 3,
"open": 2,
"parts": 1,
"holes": 2
},
"pierces": 5,
"net_area": 6071.68146928,
"area_note": "Exact for lines and circular arcs; ellipses and splines use sampled vertices. Holes subtracted.",
"cut_length_mm": 600.463706144,
"net_area_mm2": 6071.68146928,
"per_layer": {
"CUT": 635.463706144
},
"by_entity_type": {
"CIRCLE": 62.8318530718,
"LINE": 99.8,
"POLYLINE": 472.831853072
}
},
"processing": {
"duration_ms": 11,
"units_consumed": 1,
"unit_definition": "1 unit = up to 5,000 drawing entities after block expansion (minimum 1)",
"rows_processed": 9
}
}
curl --location --request POST 'https://zylalabs.com/api/15787/cadguard+dxf+api/43222/cut+length+pierces+parts+and+holes' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json'
--data-raw '{"dxf_text":"0\nSECTION\n2\nHEADER\n9\n$INSUNITS\n70\n4\n0\nENDSEC\n0\nSECTION\n2\nENTITIES\n0\nLINE\n8\nCUT\n10\n0\n20\n0\n11\n200\n21\n0\n0\nLINE\n8\nCUT\n10\n200\n20\n0\n11\n200\n21\n100\n0\nLINE\n8\nCUT\n10\n200\n20\n100\n11\n0\n21\n100\n0\nLINE\n8\nCUT\n10\n0\n20\n100\n11\n0\n21\n0\n0\nCIRCLE\n8\nCUT\n10\n100\n20\n50\n40\n20\n0\nLINE\n8\nETCH\n10\n10\n20\n10\n11\n60\n21\n10\n0\nENDSEC\n0\nEOF\n","options":{"layers":{"cut":["CUT"],"engrave":["ETCH"]}}}'
{
"request_id": "req_c6dcc8ca19844e0ab775",
"api_version": "1.0",
"status": "completed",
"summary": {
"errors": 3,
"warnings": 0,
"info": 0
},
"issues": [
{
"code": "DUPLICATE_ENTITY",
"severity": "error",
"message": "LINE is drawn twice; a laser would cut it twice.",
"location": {
"row": null,
"column": null,
"sheet": null,
"handle": "32",
"layer": "CUT",
"point": [
5,
55
]
},
"value": null,
"suggestion": null,
"basis": "structural",
"fixable": true
},
{
"code": "OPEN_CONTOUR",
"severity": "error",
"message": "Open path of 3 segment(s), length 29.8; its ends do not meet (end-to-end gap 10.002).",
"location": {
"row": null,
"column": null,
"sheet": null,
"handle": null,
"layer": "CUT",
"point": [
50,
5
]
},
"value": null,
"suggestion": null,
"basis": "structural",
"fixable": false
},
{
"code": "OPEN_CONTOUR",
"severity": "error",
"message": "Open path of 1 segment(s), length 35; its ends do not meet (end-to-end gap 35).",
"location": {
"row": null,
"column": null,
"sheet": null,
"handle": null,
"layer": "CUT",
"point": [
5,
55
]
},
"value": null,
"suggestion": null,
"basis": "structural",
"fixable": false
}
],
"issues_truncated": false,
"data": {
"units": "mm",
"units_source": "customer",
"cut_length": 600.463706144,
"cut_length_breakdown": {
"all_entities": 635.463706144,
"duplicates_removed": 35,
"collinear_overlap_removed": 0
},
"exact": true,
"numeric_error_bound": 0,
"contours": {
"closed": 3,
"open": 2,
"parts": 1,
"holes": 2
},
"pierces": 5,
"net_area": 6071.68146928,
"area_note": "Exact for lines and circular arcs; ellipses and splines use sampled vertices. Holes subtracted.",
"cut_length_mm": 600.463706144,
"net_area_mm2": 6071.68146928,
"contour_list": [
{
"closed": true,
"role": "hole",
"segments": 1,
"length": 112.831853072,
"area": 814.159265359,
"layer": "CUT",
"start": [
70,
20
]
},
{
"closed": true,
"role": "hole",
"segments": 1,
"length": 62.8318530718,
"area": 314.159265359,
"layer": "CUT",
"start": [
40,
30
]
},
{
"closed": true,
"role": "part",
"segments": 1,
"length": 360,
"area": 7200,
"layer": "CUT",
"start": [
0,
0
]
},
{
"closed": false,
"role": "open",
"segments": 3,
"length": 29.8,
"area": 0,
"layer": "CUT",
"start": [
50,
5
]
}
],
"contour_list_truncated": false
},
"processing": {
"duration_ms": 14,
"units_consumed": 1,
"unit_definition": "1 unit = up to 5,000 drawing entities after block expansion (minimum 1)",
"rows_processed": 9
}
}
curl --location --request POST 'https://zylalabs.com/api/15787/cadguard+dxf+api/43223/contours+open+paths+and+gaps' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json'
--data-raw '{"dxf_text":"0\nSECTION\n2\nHEADER\n9\n$INSUNITS\n70\n4\n0\nENDSEC\n0\nSECTION\n2\nENTITIES\n0\nLINE\n8\n0\n10\n0\n20\n0\n11\n100\n21\n0\n0\nLINE\n8\n0\n10\n100\n20\n0\n11\n100\n21\n50\n0\nLINE\n8\n0\n10\n100\n20\n50\n11\n0\n21\n50\n0\nLINE\n8\n0\n10\n0\n20\n50\n11\n0\n21\n0.1\n0\nENDSEC\n0\nEOF\n","options":{"gap_tolerance":0.5}}'
{
"request_id": "req_2b28555a094b44219aa6",
"api_version": "1.0",
"status": "completed",
"summary": {
"errors": 3,
"warnings": 0,
"info": 0
},
"issues": [
{
"code": "DUPLICATE_ENTITY",
"severity": "error",
"message": "LINE is drawn twice; a laser would cut it twice.",
"location": {
"row": null,
"column": null,
"sheet": null,
"handle": "32",
"layer": "CUT",
"point": [
5,
55
]
},
"value": null,
"suggestion": null,
"basis": "structural",
"fixable": true
},
{
"code": "OPEN_CONTOUR",
"severity": "error",
"message": "Open path of 3 segment(s), length 29.8; its ends do not meet (end-to-end gap 10.002).",
"location": {
"row": null,
"column": null,
"sheet": null,
"handle": null,
"layer": "CUT",
"point": [
50,
5
]
},
"value": null,
"suggestion": null,
"basis": "structural",
"fixable": false
},
{
"code": "OPEN_CONTOUR",
"severity": "error",
"message": "Open path of 1 segment(s), length 35; its ends do not meet (end-to-end gap 35).",
"location": {
"row": null,
"column": null,
"sheet": null,
"handle": null,
"layer": "CUT",
"point": [
5,
55
]
},
"value": null,
"suggestion": null,
"basis": "structural",
"fixable": false
}
],
"issues_truncated": false,
"data": {
"units": "mm",
"units_source": "customer",
"cut_length": 600.463706144,
"cut_length_breakdown": {
"all_entities": 635.463706144,
"duplicates_removed": 35,
"collinear_overlap_removed": 0
},
"exact": true,
"numeric_error_bound": 0,
"contours": {
"closed": 3,
"open": 2,
"parts": 1,
"holes": 2
},
"pierces": 5,
"net_area": 6071.68146928,
"area_note": "Exact for lines and circular arcs; ellipses and splines use sampled vertices. Holes subtracted.",
"cut_length_mm": 600.463706144,
"net_area_mm2": 6071.68146928,
"verdict": "defects_found",
"verdict_note": "Checks cover the drawing geometry only. Whether a part can be made also depends on material, machine, kerf, minimum feature size and tooling, which this API does not know."
},
"processing": {
"duration_ms": 13,
"units_consumed": 1,
"unit_definition": "1 unit = up to 5,000 drawing entities after block expansion (minimum 1)",
"rows_processed": 9
}
}
curl --location --request POST 'https://zylalabs.com/api/15787/cadguard+dxf+api/43224/preflight+check' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json'
--data-raw '{"dxf_text":"0\nSECTION\n2\nHEADER\n9\n$INSUNITS\n70\n4\n0\nENDSEC\n0\nSECTION\n2\nENTITIES\n0\nLINE\n8\n0\n10\n0\n20\n0\n11\n100\n21\n0\n0\nLINE\n8\n0\n10\n100\n20\n0\n11\n100\n21\n50\n0\nLINE\n8\n0\n10\n100\n20\n50\n11\n0\n21\n50\n0\nLINE\n8\n0\n10\n0\n20\n50\n11\n0\n21\n0.1\n0\nENDSEC\n0\nEOF\n","options":{"gap_tolerance":0.5}}'
{
"request_id": "req_749bbcfe923a49fd9b67",
"api_version": "1.0",
"status": "completed",
"summary": {
"errors": 0,
"warnings": 0,
"info": 1
},
"issues": [
{
"code": "LAYER_ROLES_NOT_SET",
"severity": "info",
"message": "No layer roles given, so every supported curve on visible layers counts as cut geometry. Send options.layers = {\"cut\": [...], \"engrave\": [...], \"construction\": [...]}.",
"location": {
"row": null,
"column": null,
"sheet": null,
"handle": null
},
"value": null,
"suggestion": null,
"basis": "customer_rule",
"fixable": false
}
],
"issues_truncated": false,
"data": {
"layers": [
{
"name": "0",
"on": true,
"frozen": false,
"locked": false,
"color": 7,
"linetype": "Continuous",
"role": "unassigned",
"entities": [],
"curve_length": 0,
"bounding_box": null,
"included_in_cut": false
},
{
"name": "Defpoints",
"on": true,
"frozen": false,
"locked": false,
"color": 7,
"linetype": "Continuous",
"role": "unassigned",
"entities": [],
"curve_length": 0,
"bounding_box": null,
"included_in_cut": false
},
{
"name": "CUT",
"on": true,
"frozen": false,
"locked": false,
"color": null,
"linetype": null,
"declared_in_layer_table": false,
"role": "unassigned",
"entities": {
"LINE": 5,
"LWPOLYLINE": 2,
"CIRCLE": 1
},
"curve_length": 635.463706144,
"bounding_box": {
"min": [
0,
0
],
"max": [
120,
60
],
"width": 120,
"height": 60
},
"included_in_cut": true
},
{
"name": "TEXT",
"on": true,
"frozen": false,
"locked": false,
"color": null,
"linetype": null,
"declared_in_layer_table": false,
"role": "unassigned",
"entities": {
"TEXT": 1
},
"curve_length": 0,
"bounding_box": null,
"included_in_cut": false
}
],
"roles_applied": []
},
"processing": {
"duration_ms": 10,
"units_consumed": 1,
"unit_definition": "1 unit = up to 5,000 drawing entities after block expansion (minimum 1)",
"rows_processed": 9
}
}
curl --location --request POST 'https://zylalabs.com/api/15787/cadguard+dxf+api/43225/layer+report' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json'
--data-raw '{"dxf_text":"0\nSECTION\n2\nHEADER\n9\n$INSUNITS\n70\n4\n0\nENDSEC\n0\nSECTION\n2\nENTITIES\n0\nLINE\n8\nCUT\n10\n0\n20\n0\n11\n200\n21\n0\n0\nLINE\n8\nCUT\n10\n200\n20\n0\n11\n200\n21\n100\n0\nLINE\n8\nCUT\n10\n200\n20\n100\n11\n0\n21\n100\n0\nLINE\n8\nCUT\n10\n0\n20\n100\n11\n0\n21\n0\n0\nCIRCLE\n8\nCUT\n10\n100\n20\n50\n40\n20\n0\nLINE\n8\nETCH\n10\n10\n20\n10\n11\n60\n21\n10\n0\nENDSEC\n0\nEOF\n","options":{"layers":{"cut":["CUT"],"engrave":["ETCH"]}}}'
{
"request_id": "req_12d5449549ac4e539827",
"api_version": "1.0",
"status": "completed",
"summary": {
"errors": 0,
"warnings": 0,
"info": 0
},
"issues": [],
"issues_truncated": false,
"data": {
"format": "svg",
"content_type": "image/svg+xml",
"svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"800\" height=\"423\" viewBox=\"-3.6 -63.6 127.2 67.2\"><rect x=\"-3.6\" y=\"-63.6\" width=\"127.2\" height=\"67.2\" fill=\"#FFFFFF\"/><g fill=\"none\" stroke-width=\"0.212\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M60 -15 L50.2 -15\" stroke=\"#14213D\"/><path...",
"note": "Generated by CADGuard from the geometry only: no text, scripts or external references."
},
"processing": {
"duration_ms": 13,
"units_consumed": 1,
"unit_definition": "1 unit = up to 5,000 drawing entities after block expansion (minimum 1)",
"rows_processed": 9
}
}
curl --location --request POST 'https://zylalabs.com/api/15787/cadguard+dxf+api/43226/svg+preview' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json'
--data-raw '{"dxf_text":"0\nSECTION\n2\nHEADER\n9\n$INSUNITS\n70\n4\n0\nENDSEC\n0\nSECTION\n2\nENTITIES\n0\nLINE\n8\nCUT\n10\n0\n20\n0\n11\n200\n21\n0\n0\nLINE\n8\nCUT\n10\n200\n20\n0\n11\n200\n21\n100\n0\nLINE\n8\nCUT\n10\n200\n20\n100\n11\n0\n21\n100\n0\nLINE\n8\nCUT\n10\n0\n20\n100\n11\n0\n21\n0\n0\nCIRCLE\n8\nCUT\n10\n100\n20\n50\n40\n20\n0\nLINE\n8\nETCH\n10\n10\n20\n10\n11\n60\n21\n10\n0\nENDSEC\n0\nEOF\n","options":{"width_px":400}}'
{
"request_id": "req_a63afe732009416085a7",
"api_version": "1.0",
"status": "completed",
"summary": {
"errors": 0,
"warnings": 1,
"info": 0
},
"issues": [
{
"code": "AREA_EXCLUDES_OPEN_PATHS",
"severity": "warning",
"message": "Open contours enclose no area and are excluded from mass and area.",
"location": {
"row": null,
"column": null,
"sheet": null,
"handle": null
},
"value": null,
"suggestion": null,
"basis": "structural",
"fixable": false
}
],
"issues_truncated": false,
"data": {
"per_part": {
"net_area_mm2": 6071.68146928,
"mass_kg": 0.0953253990677,
"bounding_box_mm": [
120,
60
]
},
"quantity": 100,
"total_mass_kg": 9.53253990677,
"cut_length_mm": 600.463706144,
"pierces": 5,
"assumptions": [
"Mass from closed-contour net area x thickness x density.",
"Sheet fit uses bounding boxes on a grid, not true nesting.",
"No kerf, scrap, setup, machine time or labour included."
],
"material_cost_by_mass": 10.4858,
"sheet": {
"size_mm": [
3000,
1500
],
"parts_per_sheet_grid": 552,
"sheets_needed": 1,
"utilisation_by_area": 0.744792926898
}
},
"processing": {
"duration_ms": 12,
"units_consumed": 1,
"unit_definition": "1 unit = up to 5,000 drawing entities after block expansion (minimum 1)",
"rows_processed": 9
}
}
curl --location --request POST 'https://zylalabs.com/api/15787/cadguard+dxf+api/43227/material+estimate+from+your+parameters' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json'
--data-raw '{"dxf_text":"0\nSECTION\n2\nHEADER\n9\n$INSUNITS\n70\n4\n0\nENDSEC\n0\nSECTION\n2\nENTITIES\n0\nLINE\n8\n0\n10\n0\n20\n0\n11\n100\n21\n0\n0\nLINE\n8\n0\n10\n100\n20\n0\n11\n100\n21\n50\n0\nLINE\n8\n0\n10\n100\n20\n50\n11\n0\n21\n50\n0\nLINE\n8\n0\n10\n0\n20\n50\n11\n0\n21\n0\n0\nENDSEC\n0\nEOF\n","options":{"thickness":2,"density":7.85,"price_per_kg":1.2,"sheet":[1000,500],"quantity":10}}'
{
"request_id": "req_00acb5a038ff45df989f",
"api_version": "1.0",
"status": "completed",
"summary": {
"errors": 0,
"warnings": 0,
"info": 0
},
"issues": [],
"issues_truncated": false,
"data": {
"dry_run": true,
"changes": [
{
"action": "remove_duplicate",
"handle": "32",
"entity": "LINE",
"layer": "CUT",
"detail": "Exact duplicate of entity 33."
}
],
"changes_count": 1,
"manifest_truncated": false,
"before": {
"units": "mm",
"units_source": "header",
"cut_length": 600.463706144,
"cut_length_breakdown": {
"all_entities": 635.463706144,
"duplicates_removed": 35,
"collinear_overlap_removed": 0
},
"exact": true,
"numeric_error_bound": 0,
"contours": {
"closed": 3,
"open": 2,
"parts": 1,
"holes": 2
},
"pierces": 5,
"net_area": 6071.68146928,
"area_note": "Exact for lines and circular arcs; ellipses and splines use sampled vertices. Holes subtracted.",
"cut_length_mm": 600.463706144,
"net_area_mm2": 6071.68146928
}
},
"processing": {
"duration_ms": 13,
"units_consumed": 1,
"unit_definition": "1 unit = up to 5,000 drawing entities after block expansion (minimum 1)",
"rows_processed": 9
}
}
curl --location --request POST 'https://zylalabs.com/api/15787/cadguard+dxf+api/43228/safe+repair+with+a+change+list' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json'
--data-raw '{"dxf_text":"0\nSECTION\n2\nHEADER\n9\n$INSUNITS\n70\n4\n0\nENDSEC\n0\nSECTION\n2\nENTITIES\n0\nLINE\n8\n0\n10\n0\n20\n0\n11\n100\n21\n0\n0\nLINE\n8\n0\n10\n100\n20\n0\n11\n100\n21\n50\n0\nLINE\n8\n0\n10\n100\n20\n50\n11\n0\n21\n50\n0\nLINE\n8\n0\n10\n0\n20\n50\n11\n0\n21\n0.1\n0\nENDSEC\n0\nEOF\n","options":{"dry_run":false,"join_gaps":0.2}}'
{
"request_id": "req_df6bb8f7b2eb44d8a829",
"api_version": "1.0",
"status": "completed",
"summary": {
"errors": 0,
"warnings": 3,
"info": 0
},
"issues": [
{
"code": "CONTOUR_REMOVED",
"severity": "warning",
"message": "A closed contour (length 62.8319) is in the original but not in the revision.",
"location": {
"row": null,
"column": null,
"sheet": null,
"handle": null,
"layer": "CUT",
"point": [
40,
30
]
},
"value": null,
"suggestion": null,
"basis": "structural",
"fixable": false
},
{
"code": "CONTOUR_REMOVED",
"severity": "warning",
"message": "A open contour (length 29.8) is in the original but not in the revision.",
"location": {
"row": null,
"column": null,
"sheet": null,
"handle": null,
"layer": "CUT",
"point": [
50,
5
]
},
"value": null,
"suggestion": null,
"basis": "structural",
"fixable": false
},
{
"code": "CONTOUR_ADDED",
"severity": "warning",
"message": "A closed contour (length 75.3982) is new in the revision.",
"location": {
"row": null,
"column": null,
"sheet": null,
"handle": null,
"layer": "CUT",
"point": [
42,
30
]
},
"value": null,
"suggestion": null,
"basis": "structural",
"fixable": false
}
],
"issues_truncated": false,
"data": {
"identical_geometry": false,
"contours_added": [
{
"closed": true,
"role": "hole",
"length": 75.3982236862,
"area": 452.389342117,
"start": [
42,
30
],
"layer": "CUT"
}
],
"contours_removed": [
{
"closed": true,
"role": "hole",
"length": 62.8318530718,
"area": 314.159265359,
"start": [
40,
30
],
"layer": "CUT"
},
{
"closed": false,
"role": "open",
"length": 29.8,
"area": 0,
"start": [
50,
5
],
"layer": "CUT"
}
],
"cut_length": [
600.463706144,
583.230076758
],
"cut_length_change": -17.233629386,
"pierces": [
5,
4
],
"parts": [
1,
1
],
"holes": [
2,
2
],
"net_area": [
6071.68146928,
5933.45139252
],
"dimensions": {
"width": [
120,
120
],
"height": [
60,
60
]
},
"layers_added": [],
"layers_removed": [],
"entity_counts": [
{
"TEXT": 1,
"LINE": 5,
"LWPOLYLINE": 2,
"CIRCLE": 1
},
{
"TEXT": 1,
"LINE": 2,
"LWPOLYLINE": 2,
"CIRCLE": 1
}
],
"match_tolerance": 0.013416407864998736,
"note": "Contours are matched by position, length and area, so redrawing, reordering or reversing entities is not reported as a change."
},
"processing": {
"duration_ms": 24,
"units_consumed": 1,
"unit_definition": "1 unit = up to 5,000 drawing entities after block expansion (minimum 1)",
"rows_processed": 15
}
}
curl --location --request POST 'https://zylalabs.com/api/15787/cadguard+dxf+api/43229/compare+two+revisions' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json'
--data-raw '{"file_base64":"MApTRUNUSU9OCjIKSEVBREVSCjkKJElOU1VOSVRTCjcwCjQKMApFTkRTRUMKMApTRUNUSU9OCjIKRU5USVRJRVMKMApMSU5FCjgKQ1VUCjEwCjAKMjAKMAoxMQoyMDAKMjEKMAowCkxJTkUKOApDVVQKMTAKMjAwCjIwCjAKMTEKMjAwCjIxCjEwMAowCkxJTkUKOApDVVQKMTAKMjAwCjIwCjEwMAoxMQowCjIxCjEwMAowCkxJTkUKOApDVVQKMTAKMAoyMAoxMDAKMTEKMAoyMQowCjAKQ0lSQ0xFCjgKQ1VUCjEwCjEwMAoyMAo1MAo0MAoyMAowCkxJTkUKOApFVENICjEwCjEwCjIwCjEwCjExCjYwCjIxCjEwCjAKRU5EU0VDCjAKRU9GCg==","modified_base64":"MApTRUNUSU9OCjIKSEVBREVSCjkKJElOU1VOSVRTCjcwCjQKMApFTkRTRUMKMApTRUNUSU9OCjIKRU5USVRJRVMKMApMSU5FCjgKQ1VUCjEwCjAKMjAKMAoxMQoyMDAKMjEKMAowCkxJTkUKOApDVVQKMTAKMjAwCjIwCjAKMTEKMjAwCjIxCjEwMAowCkxJTkUKOApDVVQKMTAKMjAwCjIwCjEwMAoxMQowCjIxCjEwMAowCkxJTkUKOApDVVQKMTAKMAoyMAoxMDAKMTEKMAoyMQowCjAKQ0lSQ0xFCjgKQ1VUCjEwCjEwMAoyMAo1MAo0MAoyNQowCkNJUkNMRQo4CkNVVAoxMAo0MAoyMAo1MAo0MAoxMAowCkxJTkUKOApFVENICjEwCjEwCjIwCjEwCjExCjYwCjIxCjEwCjAKRU5EU0VDCjAKRU9GCg==","options":{"layers":{"cut":["CUT"],"engrave":["ETCH"]}}}'
साइन अप करने के बाद, प्रत्येक डेवलपर को एक पर्सनल API एक्सेस की असाइन की जाती है, जो अक्षरों और अंकों का एक यूनिक संयोजन होता है, जिसका उपयोग हमारे API एंडपॉइंट तक पहुंचने के लिए किया जाता है। प्रमाणीकरण के लिए CADGuard DXF API के साथ बस अपने बेयरर टोकन को Authorization हेडर में शामिल करें।
| हेडर | विवरण |
|---|---|
Authorization
|
आवश्यक
होना चाहिए Bearer access_key. जब आप सब्सक्राइब हों तो ऊपर "Your API Access Key" देखें।
|
कोई लंबी अवधि की प्रतिबद्धता नहीं। कभी भी अपग्रेड, डाउनग्रेड या कैंसल करें। फ्री ट्रायल में 50 रिक्वेस्ट तक शामिल हैं।
यह DXF संस्करण और इकाइयों लेयर की स्थितियाँ ब्लॉक विस्तार के बाद इकाइयों की संख्या समर्थित वक्र उपेक्षित टिप्पणियाँ असमर्थित इकाइयाँ उपयोग किए गए ब्लॉक पेपर स्पेस इकाइयों की संख्या और हेडर मेटाडेटा की रिपोर्ट करता है बाद के परिणामों की व्याख्या करने से पहले यह जाँचने के लिए इन फ़ील्ड का उपयोग करें कि API किस ज्यामिति का विश्लेषण कर सकता है
यह बाउंडिंग बॉक्स के न्यूनतम और अधिकतम निर्देशांक, चौड़ाई और ऊँचाई ड्राइंग इकाइयों में लौटाता है। जब इकाइयाँ ज्ञात हों, तो यह मिलीमीटर में आयाम भी प्रदान करता है। वैकल्पिक `expected_max_size` ड्राइंग को किसी भी अभिविन्यास में एक सीमा के विरुद्ध जाँचता है
कट विश्लेषण रिपोर्ट में कट की लंबाई, डुप्लिकेट और ओवरलैप समायोजन, छेदन, पुर्ज़े, छेद, कुल क्षेत्रफल और लेयर तथा इकाई प्रकार के अनुसार लंबाई का विवरण दिया जाता है। कंटूर परिणामों में प्रत्येक पथ की बंद या खुली स्थिति, भूमिका, खंडों की संख्या, लंबाई, क्षेत्रफल और आरंभिक बिंदु दिया जाता है; अनुरोध करने पर अंतराल भी शामिल किए जाते हैं
प्रीफ्लाइट खुले कंटूर, डुप्लिकेट, समरेखीय ओवरलैप, शून्य-लंबाई वाली इकाइयाँ, स्व-प्रतिच्छेदन, क्रॉसिंग कंटूर, शाखित जंक्शन, आकार सीमाएँ और अनुपस्थित ज्यामिति की जाँच करता है। इसे सामग्री, कटाई की चौड़ाई या टूलिंग की जानकारी नहीं होती, इसलिए इसका निष्कर्ष विनिर्माण का संपूर्ण आकलन नहीं है
प्रत्येक लेयर प्रविष्टि में उसकी इकाइयों की संख्या वक्र की लंबाई बाउंडिंग बॉक्स निर्धारित भूमिका दृश्यता-संबंधी स्थिति और कट में शामिल होने या न होने की जानकारी होती है रिपोर्ट ऐसी भूमिका के नामों को भी चिह्नित कर सकती है जो ड्राइंग की लेयर्स से मेल नहीं खाते
एंडपॉइंट केवल ज्यामिति से तैयार किया गया SVG मार्कअप लौटाता है, जिसमें कोई टेक्स्ट, स्क्रिप्ट या बाहरी संदर्भ नहीं होते खुले पथों के सिरों को लाल रंग से चिह्नित किया जा सकता है आउटपुट की चौड़ाई नियंत्रित करने के लिए `width_px` को 64 से 4000 तक सेट करें, या समस्या चिह्नों का अनुरोध करने के लिए `show_problems` का उपयोग करें
अनुमान प्रत्येक पुर्ज़े का क्षेत्रफल, द्रव्यमान और बाउंडिंग बॉक्स, साथ ही कुल द्रव्यमान और वैकल्पिक सामग्री लागत देता है शीट फिट में अनुरोधित अंतराल के साथ ग्रिड पर व्यवस्थित बाउंडिंग बॉक्स का उपयोग होता है यह वास्तविक नेस्टिंग नहीं है कर्फ़, स्क्रैप, मशीन समय और श्रम शामिल नहीं हैं .
यह जोड़े गए और हटाए गए कंटूर, कट की लंबाई में बदलाव, छेदक बिंदुओं, पुर्ज़ों, छेदों, क्षेत्रफल और कुल आकार में बदलाव, साथ ही जोड़ी या हटाई गई परतों की जानकारी देता है। मिलान ज्यामिति पर आधारित है, इसलिए दोबारा बनाए गए, पुनः क्रमबद्ध या उलटी दिशा में किए गए एंटिटी को बदलाव के रूप में रिपोर्ट नहीं किया जाता है.