Files
cdsl-cad/json_to_cdsl/output/051018.cdsl.json
T
2026-08-21 11:13:18 +08:00

1653 lines
37 KiB
JSON

{
"schema": "cad.cdsl.llm.v1",
"schema_version": "1.1.0",
"kind": "part",
"part_id": "051018",
"geometry": {
"sketches": [
{
"id": "sk_001",
"name": "原点",
"role": "profile",
"workplane": {
"origin_mm": [
-0.0,
-0.0,
-0.0
],
"x_dir": [
1.0,
0.0,
0.0
],
"y_dir": [
1.0,
0.0,
0.0
],
"normal": [
0.0,
0.0,
1.0
]
},
"profile": {
"type": "analytic_contours",
"contours": []
}
},
{
"id": "sk_002",
"name": "草图1",
"role": "profile",
"workplane": {
"origin_mm": [
-0.0,
-0.0,
-0.0
],
"x_dir": [
1.0,
0.0,
0.0
],
"y_dir": [
1.0,
0.0,
0.0
],
"normal": [
0.0,
0.0,
1.0
]
},
"profile": {
"type": "analytic_contours",
"contours": [
{
"role": "outer",
"closed": true,
"segments": [
{
"type": "line",
"start": [
0.0,
0.0
],
"end": [
220.0,
0.0
]
},
{
"type": "line",
"start": [
220.0,
0.0
],
"end": [
220.0,
45.0
]
},
{
"type": "line",
"start": [
220.0,
45.0
],
"end": [
0.0,
45.0
]
},
{
"type": "line",
"start": [
0.0,
45.0
],
"end": [
0.0,
0.0
]
}
]
}
]
}
},
{
"id": "sk_003",
"name": "草图2",
"role": "profile",
"workplane": {
"origin_mm": [
-0.0,
-0.0,
-0.0
],
"x_dir": [
-1.0,
0.0,
0.0
],
"y_dir": [
1.0,
0.0,
0.0
],
"normal": [
0.0,
0.0,
1.0
]
},
"profile": {
"type": "analytic_contours",
"contours": [
{
"role": "outer",
"closed": true,
"segments": [
{
"type": "line",
"start": [
-220.0,
18.5
],
"end": [
-0.0,
18.5
]
},
{
"type": "line",
"start": [
-0.0,
18.5
],
"end": [
0.0,
26.5
]
},
{
"type": "line",
"start": [
0.0,
26.5
],
"end": [
-220.0,
26.5
]
},
{
"type": "line",
"start": [
-220.0,
26.5
],
"end": [
-220.0,
18.5
]
}
]
}
]
}
},
{
"id": "sk_004",
"name": "草图3",
"role": "profile",
"workplane": {
"origin_mm": [
0.3,
-0.0,
-0.0
],
"x_dir": [
-1.0,
0.0,
0.0
],
"y_dir": [
1.0,
0.0,
0.0
],
"normal": [
0.0,
0.0,
1.0
]
},
"profile": {
"type": "analytic_contours",
"contours": [
{
"role": "outer",
"closed": true,
"segments": [
{
"type": "line",
"start": [
-220.0,
24.5
],
"end": [
-0.0,
24.5
]
},
{
"type": "line",
"start": [
-0.0,
24.5
],
"end": [
-0.0,
18.5
]
},
{
"type": "line",
"start": [
-0.0,
18.5
],
"end": [
-220.0,
18.5
]
},
{
"type": "line",
"start": [
-220.0,
18.5
],
"end": [
-220.0,
24.5
]
}
]
}
]
}
},
{
"id": "sk_005",
"name": "草图4",
"role": "profile",
"workplane": {
"origin_mm": [
-0.0,
-0.0,
-0.0
],
"x_dir": [
-1.0,
0.0,
0.0
],
"y_dir": [
1.0,
0.0,
0.0
],
"normal": [
0.0,
0.0,
1.0
]
},
"profile": {
"type": "analytic_contours",
"contours": [
{
"role": "outer",
"closed": true,
"segments": [
{
"type": "line",
"start": [
-220.0,
0.0
],
"end": [
-185.0,
0.0
]
},
{
"type": "line",
"start": [
-185.0,
0.0
],
"end": [
-185.0,
11.0
]
},
{
"type": "line",
"start": [
-185.0,
11.0
],
"end": [
-220.0,
11.0
]
},
{
"type": "line",
"start": [
-220.0,
11.0
],
"end": [
-220.0,
0.0
]
}
]
},
{
"role": "inner",
"closed": true,
"segments": [
{
"type": "line",
"start": [
-220.0,
45.0
],
"end": [
-185.0,
45.0
]
},
{
"type": "line",
"start": [
-185.0,
45.0
],
"end": [
-185.0,
34.0
]
},
{
"type": "line",
"start": [
-185.0,
34.0
],
"end": [
-220.0,
34.0
]
},
{
"type": "line",
"start": [
-220.0,
34.0
],
"end": [
-220.0,
45.0
]
}
]
}
]
}
},
{
"id": "sk_006",
"name": "草图5",
"role": "profile",
"workplane": {
"origin_mm": [
-0.0,
-0.0,
-0.0
],
"x_dir": [
-1.0,
0.0,
0.0
],
"y_dir": [
1.0,
0.0,
0.0
],
"normal": [
0.0,
0.0,
1.0
]
},
"profile": {
"type": "analytic_contours",
"contours": [
{
"role": "outer",
"closed": true,
"segments": [
{
"type": "arc",
"start": [
-37.5,
34.75
],
"end": [
-37.5,
40.25
],
"center": [
-37.5,
37.5
],
"radius_mm": 2.75,
"clockwise": false
},
{
"type": "line",
"start": [
-37.5,
40.25
],
"end": [
-52.5,
40.25
]
},
{
"type": "arc",
"start": [
-52.5,
40.25
],
"end": [
-52.5,
34.75
],
"center": [
-52.5,
37.5
],
"radius_mm": 2.75,
"clockwise": false
},
{
"type": "line",
"start": [
-52.5,
34.75
],
"end": [
-37.5,
34.75
]
}
]
},
{
"role": "inner",
"closed": true,
"segments": [
{
"type": "arc",
"start": [
-37.5,
4.75
],
"end": [
-37.5,
10.25
],
"center": [
-37.5,
7.5
],
"radius_mm": 2.75,
"clockwise": false
},
{
"type": "line",
"start": [
-37.5,
10.25
],
"end": [
-52.5,
10.25
]
},
{
"type": "arc",
"start": [
-52.5,
10.25
],
"end": [
-52.5,
4.75
],
"center": [
-52.5,
7.5
],
"radius_mm": 2.75,
"clockwise": false
},
{
"type": "line",
"start": [
-52.5,
4.75
],
"end": [
-37.5,
4.75
]
}
]
},
{
"role": "inner",
"closed": true,
"segments": [
{
"type": "arc",
"start": [
-172.5,
40.25
],
"end": [
-172.5,
34.75
],
"center": [
-172.5,
37.5
],
"radius_mm": 2.75,
"clockwise": false
},
{
"type": "line",
"start": [
-172.5,
34.75
],
"end": [
-157.5,
34.75
]
},
{
"type": "arc",
"start": [
-157.5,
34.75
],
"end": [
-157.5,
40.25
],
"center": [
-157.5,
37.5
],
"radius_mm": 2.75,
"clockwise": false
},
{
"type": "line",
"start": [
-157.5,
40.25
],
"end": [
-172.5,
40.25
]
}
]
},
{
"role": "inner",
"closed": true,
"segments": [
{
"type": "arc",
"start": [
-172.5,
10.25
],
"end": [
-172.5,
4.75
],
"center": [
-172.5,
7.5
],
"radius_mm": 2.75,
"clockwise": false
},
{
"type": "line",
"start": [
-172.5,
4.75
],
"end": [
-157.5,
4.75
]
},
{
"type": "arc",
"start": [
-157.5,
4.75
],
"end": [
-157.5,
10.25
],
"center": [
-157.5,
7.5
],
"radius_mm": 2.75,
"clockwise": false
},
{
"type": "line",
"start": [
-157.5,
10.25
],
"end": [
-172.5,
10.25
]
}
]
}
],
"construction": [
{
"type": "line",
"start": [
-37.5,
37.5
],
"end": [
-52.5,
37.5
]
},
{
"type": "line",
"start": [
-37.5,
7.5
],
"end": [
-52.5,
7.5
]
},
{
"type": "line",
"start": [
-172.5,
37.5
],
"end": [
-157.5,
37.5
]
},
{
"type": "line",
"start": [
-172.5,
7.5
],
"end": [
-157.5,
7.5
]
}
]
}
},
{
"id": "sk_007",
"name": "草图6",
"role": "profile",
"workplane": {
"origin_mm": [
-0.0,
-0.0,
-0.0
],
"x_dir": [
-1.0,
0.0,
0.0
],
"y_dir": [
1.0,
0.0,
0.0
],
"normal": [
0.0,
0.0,
1.0
]
},
"profile": {
"type": "analytic_contours",
"contours": [
{
"role": "outer",
"closed": true,
"segments": [
{
"type": "arc",
"start": [
-172.5,
42.25
],
"end": [
-172.5,
32.75
],
"center": [
-172.5,
37.5
],
"radius_mm": 4.75,
"clockwise": false
},
{
"type": "line",
"start": [
-172.5,
32.75
],
"end": [
-157.5,
32.75
]
},
{
"type": "arc",
"start": [
-157.5,
32.75
],
"end": [
-157.5,
42.25
],
"center": [
-157.5,
37.5
],
"radius_mm": 4.75,
"clockwise": false
},
{
"type": "line",
"start": [
-157.5,
42.25
],
"end": [
-172.5,
42.25
]
}
]
},
{
"role": "inner",
"closed": true,
"segments": [
{
"type": "arc",
"start": [
-172.5,
12.25
],
"end": [
-172.5,
2.75
],
"center": [
-172.5,
7.5
],
"radius_mm": 4.75,
"clockwise": false
},
{
"type": "line",
"start": [
-172.5,
2.75
],
"end": [
-157.5,
2.75
]
},
{
"type": "arc",
"start": [
-157.5,
2.75
],
"end": [
-157.5,
12.25
],
"center": [
-157.5,
7.5
],
"radius_mm": 4.75,
"clockwise": false
},
{
"type": "line",
"start": [
-157.5,
12.25
],
"end": [
-172.5,
12.25
]
}
]
},
{
"role": "inner",
"closed": true,
"segments": [
{
"type": "arc",
"start": [
-52.5,
42.25
],
"end": [
-52.5,
32.75
],
"center": [
-52.5,
37.5
],
"radius_mm": 4.75,
"clockwise": false
},
{
"type": "line",
"start": [
-52.5,
32.75
],
"end": [
-37.5,
32.75
]
},
{
"type": "arc",
"start": [
-37.5,
32.75
],
"end": [
-37.5,
42.25
],
"center": [
-37.5,
37.5
],
"radius_mm": 4.75,
"clockwise": false
},
{
"type": "line",
"start": [
-37.5,
42.25
],
"end": [
-52.5,
42.25
]
}
]
},
{
"role": "inner",
"closed": true,
"segments": [
{
"type": "arc",
"start": [
-52.5,
12.25
],
"end": [
-52.5,
2.75
],
"center": [
-52.5,
7.5
],
"radius_mm": 4.75,
"clockwise": false
},
{
"type": "line",
"start": [
-52.5,
2.75
],
"end": [
-37.5,
2.75
]
},
{
"type": "arc",
"start": [
-37.5,
2.75
],
"end": [
-37.5,
12.25
],
"center": [
-37.5,
7.5
],
"radius_mm": 4.75,
"clockwise": false
},
{
"type": "line",
"start": [
-37.5,
12.25
],
"end": [
-52.5,
12.25
]
}
]
}
],
"construction": [
{
"type": "line",
"start": [
-172.5,
37.5
],
"end": [
-157.5,
37.5
]
},
{
"type": "line",
"start": [
-172.5,
7.5
],
"end": [
-157.5,
7.5
]
},
{
"type": "line",
"start": [
-52.5,
37.5
],
"end": [
-37.5,
37.5
]
},
{
"type": "line",
"start": [
-52.5,
7.5
],
"end": [
-37.5,
7.5
]
}
]
}
},
{
"id": "sk_008",
"name": "草图7",
"role": "profile",
"workplane": {
"origin_mm": [
-0.0,
-0.0,
-0.0
],
"x_dir": [
-1.0,
0.0,
0.0
],
"y_dir": [
1.0,
0.0,
0.0
],
"normal": [
0.0,
0.0,
1.0
]
},
"profile": {
"type": "analytic_contours",
"contours": []
}
}
]
},
"features": [
{
"id": "f_001",
"name": "前视基准面",
"atomic_id": "reference_plane",
"depends_on": [],
"params": {
"plane": {
"origin_mm": [
0.0,
0.0,
0.0
],
"normal": [
0.0,
1.0,
0.0
],
"x_dir": [
1.0,
0.0,
0.0
]
},
"offset_mm": 0.0,
"angle_rad": 0.0,
"reverse": false,
"solidworks_type": 10
},
"execution_status": "deferred"
},
{
"id": "f_002",
"name": "上视基准面",
"atomic_id": "reference_plane",
"depends_on": [
"f_001"
],
"params": {
"plane": {
"origin_mm": [
0.0,
0.0,
0.0
],
"normal": [
0.0,
0.0,
1.0
],
"x_dir": [
1.0,
0.0,
0.0
]
},
"offset_mm": 0.0,
"angle_rad": 0.0,
"reverse": false,
"solidworks_type": 10
},
"execution_status": "deferred"
},
{
"id": "f_004",
"name": "凸台-拉伸1",
"atomic_id": "extrude_add_blind",
"depends_on": [
"f_001"
],
"params": {
"distance_mm": 10.0,
"reverse": false,
"end_condition": {
"type": "blind",
"solidworks_code": 0
}
},
"execution_status": "deferred",
"sketch_id": "sk_002"
},
{
"id": "f_012",
"name": "M4 螺纹孔1",
"atomic_id": "hole_wizard",
"depends_on": [
"f_001"
],
"params": {
"hole_type": "底部螺纹孔",
"diameter_mm": 4.0,
"depth_mm": 10.0,
"end_condition": {
"solidworks_code": 1,
"type": "through_all"
},
"positions": [
{
"mm": [
145.0,
7.5,
0.0
]
},
{
"mm": [
85.0,
7.5,
0.0
]
},
{
"mm": [
25.0,
7.5,
0.0
]
}
],
"thread": {
"diameter_mm": 4.0,
"depth_mm": 10.0,
"class": "1B"
},
"host_face": {
"kind": "face",
"stable_id": "step-face-4e0543ad1d5f32595eb5ce39",
"source": "inferred_from_step",
"confidence": 0.8,
"geometry": {
"bbox_mm": [
0.0,
-0.0,
-0.0,
220.0,
18.5,
0.0
],
"center_mm": [
98.287524326,
10.061229599,
0.0
],
"normal": [
0.0,
0.0,
-1.0
],
"surface_type": "plane"
}
}
},
"execution_status": "deferred",
"sketch_id": "sk_008",
"selectors": [
{
"kind": "face",
"stable_id": "step-face-4e0543ad1d5f32595eb5ce39",
"source": "inferred_from_step",
"confidence": 0.8,
"geometry": {
"bbox_mm": [
0.0,
-0.0,
-0.0,
220.0,
18.5,
0.0
],
"center_mm": [
98.287524326,
10.061229599,
0.0
],
"normal": [
0.0,
0.0,
-1.0
],
"surface_type": "plane"
}
}
]
},
{
"id": "f_003",
"name": "右视基准面",
"atomic_id": "reference_plane",
"depends_on": [
"f_002"
],
"params": {
"plane": {
"origin_mm": [
0.0,
0.0,
0.0
],
"normal": [
1.0,
0.0,
0.0
],
"x_dir": [
0.0,
1.0,
0.0
]
},
"offset_mm": 0.0,
"angle_rad": 0.0,
"reverse": false,
"solidworks_type": 10
},
"execution_status": "deferred"
},
{
"id": "f_005",
"name": "切除-拉伸1",
"atomic_id": "extrude_cut_blind",
"depends_on": [
"f_004"
],
"params": {
"distance_mm": 0.3,
"reverse": false,
"end_condition": {
"type": "blind",
"solidworks_code": 0
}
},
"execution_status": "deferred",
"sketch_id": "sk_003"
},
{
"id": "f_010",
"name": "切除-拉伸4",
"atomic_id": "extrude_cut_blind",
"depends_on": [
"f_004"
],
"params": {
"distance_mm": 0.0,
"reverse": false,
"end_condition": {
"type": "through_all",
"solidworks_code": 1
}
},
"execution_status": "deferred",
"sketch_id": "sk_006"
},
{
"id": "f_006",
"name": "切除-拉伸2",
"atomic_id": "extrude_cut_blind",
"depends_on": [
"f_005",
"f_004"
],
"params": {
"distance_mm": 1.0,
"reverse": false,
"end_condition": {
"type": "blind",
"solidworks_code": 0
}
},
"execution_status": "deferred",
"sketch_id": "sk_004"
},
{
"id": "f_008",
"name": "切除-拉伸3",
"atomic_id": "extrude_cut_blind",
"depends_on": [
"f_004",
"f_005"
],
"params": {
"distance_mm": 0.0,
"reverse": false,
"end_condition": {
"type": "through_all",
"solidworks_code": 1
}
},
"execution_status": "deferred",
"sketch_id": "sk_005"
},
{
"id": "f_011",
"name": "切除-拉伸5",
"atomic_id": "extrude_cut_blind",
"depends_on": [
"f_004",
"f_010"
],
"params": {
"distance_mm": 5.5,
"reverse": false,
"end_condition": {
"type": "blind",
"solidworks_code": 0
}
},
"execution_status": "deferred",
"sketch_id": "sk_007"
},
{
"id": "f_007",
"name": "倒角1",
"atomic_id": "chamfer",
"depends_on": [
"f_006",
"f_005"
],
"params": {
"distance_mm": 0.2,
"angle_rad": 0.78539816339745
},
"execution_status": "deferred"
},
{
"id": "f_009",
"name": "倒角2",
"atomic_id": "chamfer",
"depends_on": [
"f_008",
"f_004"
],
"params": {
"distance_mm": 11.0,
"angle_rad": 0.78539816339745
},
"execution_status": "deferred"
}
],
"meta": {
"unit": "mm",
"source": "051018.solidworks_evidence_v2.json",
"source_schema": "solidworks.cad_evidence.v2",
"source_status": "complete_with_blockers",
"document_truth": {
"mass_properties": {
"available": true,
"mass": 0.08137395306662266,
"volume": 8.137395306662266e-05,
"surface_area": 0.025295756318939006,
"center_of_mass": [
0.10067129863476955,
0.022563407886331547,
0.0051650137262099485
],
"principal_moments": [
1.3033280298582622e-05,
0.00028758040519343345,
0.00029929937726764545
],
"principal_axes": null,
"moment_of_inertia": null
},
"geometry": {
"bounding_box": [
0.0,
0.0,
-1.734723475976807e-18,
0.22,
0.045,
0.01
],
"solid_body_count": 1,
"bodies": [
{
"kind": "body",
"dotnet_type": "System.__ComObject",
"name": "M4 螺纹孔1",
"persist_reference_base64": "UEYAAAQAAAD//v8AAAAAAAcAAABwAAAAbwAAAG4AAABtAAAAbAAAAGsAAABqAAAA",
"persist_reference_sha256": "bc12271f0d98e74967ed2edf79c19143398ebcd3a67405aba0315fae954a07f3",
"component": null,
"geometry": {
"box": [
0.0,
0.0,
-1.3532347130578224e-18,
0.22,
0.045,
0.01
],
"face_count": 56,
"edge_count": 147,
"vertex_count": 94
},
"stable_id": "bc12271f0d98e74967ed2edf79c19143398ebcd3a67405aba0315fae954a07f3"
}
]
}
},
"step_inference": {
"available": true,
"face_count": 67,
"surface_counts": {
"cylinder": 30,
"plane": 37
},
"axis_count": 30,
"repeat_spacings_mm": [
{
"spacing_mm": 120.0,
"pair_count": 9
},
{
"spacing_mm": 30.0,
"pair_count": 8
},
{
"spacing_mm": 123.6932,
"pair_count": 8
},
{
"spacing_mm": 123.775,
"pair_count": 8
},
{
"spacing_mm": 120.0843,
"pair_count": 8
},
{
"spacing_mm": 30.3356,
"pair_count": 8
},
{
"spacing_mm": 4.5,
"pair_count": 8
},
{
"spacing_mm": 15.6605,
"pair_count": 8
},
{
"spacing_mm": 33.8415,
"pair_count": 8
},
{
"spacing_mm": 33.541,
"pair_count": 8
},
{
"spacing_mm": 15.0,
"pair_count": 8
},
{
"spacing_mm": 135.075,
"pair_count": 4
}
],
"metrics": {
"bounding_box_mm": [
0.0,
-0.0,
-0.0,
220.0,
45.0,
10.0
],
"volume_mm3": 81373.953066623,
"surface_area_mm2": 25295.756318939,
"solid_count": 1,
"face_count": 67,
"edge_count": 183,
"vertex_count": 122
},
"error": null,
"truth_comparison": {
"expected_from_evidence": {
"bounding_box_mm": [
0.0,
0.0,
-0.0,
220.0,
45.0,
10.0
],
"volume_mm3": 81373.953066623,
"surface_area_mm2": 25295.756318939,
"solid_count": 1,
"face_count": 56,
"edge_count": 147,
"vertex_count": 94
},
"comparisons": {
"volume_mm3": {
"expected": 81373.953066623,
"actual": 81373.953066623,
"absolute_delta": 0.0,
"within_tolerance": true
},
"surface_area_mm2": {
"expected": 25295.756318939,
"actual": 25295.756318939,
"absolute_delta": 0.0,
"within_tolerance": true
},
"bounding_box_mm": {
"expected": [
0.0,
0.0,
-0.0,
220.0,
45.0,
10.0
],
"actual": [
0.0,
-0.0,
-0.0,
220.0,
45.0,
10.0
],
"max_absolute_delta": 0.0,
"within_tolerance": true
},
"solid_count": {
"expected": 1,
"actual": 1,
"matches": true
},
"face_count": {
"expected": 56,
"actual": 67,
"matches": false
},
"edge_count": {
"expected": 147,
"actual": 183,
"matches": false
},
"vertex_count": {
"expected": 94,
"actual": 122,
"matches": false
}
},
"numeric_geometry_match": true,
"topology_counts_match": false
}
},
"source_has_modeling_features": true
}
}