Files
cdsl-cad/json_to_cdsl/output/Front-Cap.cdsl.json
T
2026-08-24 14:52:08 +08:00

1538 lines
32 KiB
JSON

{
"schema": "cad.cdsl.llm.v1",
"schema_version": "1.1.0",
"kind": "part",
"part_id": "front-cap",
"geometry": {
"sketches": [
{
"id": "sk_001",
"name": "Origin",
"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": "Sketch1",
"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": "circle",
"center": [
0.0,
0.0
],
"radius_mm": 72.5
}
},
{
"id": "sk_003",
"name": "Sketch2",
"role": "profile",
"workplane": {
"origin_mm": [
42.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": "circle",
"center": [
0.0,
0.0
],
"radius_mm": 48.2
}
},
{
"id": "sk_004",
"name": "Sketch3",
"role": "profile",
"workplane": {
"origin_mm": [
-0.0,
-0.0,
-0.0
],
"x_dir": [
0.0,
0.0,
1.0
],
"y_dir": [
0.707106781,
0.0,
-0.707106781
],
"normal": [
-0.0,
1.0,
0.0
]
},
"profile": {
"type": "analytic_contours",
"contours": [
{
"role": "outer",
"closed": true,
"segments": [
{
"type": "line",
"start": [
0.0,
47.6
],
"end": [
42.0,
41.5
]
},
{
"type": "line",
"start": [
42.0,
41.5
],
"end": [
42.0,
28.6
]
},
{
"type": "line",
"start": [
42.0,
28.6
],
"end": [
0.0,
28.6
]
},
{
"type": "line",
"start": [
0.0,
28.6
],
"end": [
0.0,
47.6
]
}
]
}
],
"construction": [
{
"type": "line",
"start": [
0.0,
0.0
],
"end": [
84.733800612,
0.0
]
}
]
}
},
{
"id": "sk_005",
"name": "Sketch4",
"role": "profile",
"workplane": {
"origin_mm": [
75.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": "circle",
"center": [
0.0,
0.0
],
"radius_mm": 28.6
}
},
{
"id": "sk_006",
"name": "Sketch5",
"role": "profile",
"workplane": {
"origin_mm": [
-42.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": "circle",
"center": [
0.0,
0.0
],
"radius_mm": 35.0
}
},
{
"id": "sk_007",
"name": "Sketch6",
"role": "profile",
"workplane": {
"origin_mm": [
-0.0,
-0.0,
-0.0
],
"x_dir": [
0.0,
0.0,
1.0
],
"y_dir": [
0.707106781,
0.0,
-0.707106781
],
"normal": [
-0.0,
1.0,
0.0
]
},
"profile": {
"type": "analytic_contours",
"contours": [
{
"role": "outer",
"closed": true,
"segments": [
{
"type": "line",
"start": [
-65.0,
48.2
],
"end": [
-52.5,
48.2
]
},
{
"type": "line",
"start": [
-52.5,
48.2
],
"end": [
-52.5,
42.2
]
},
{
"type": "line",
"start": [
-52.5,
42.2
],
"end": [
-65.0,
42.2
]
},
{
"type": "line",
"start": [
-65.0,
42.2
],
"end": [
-65.0,
48.2
]
}
]
}
],
"construction": [
{
"type": "line",
"start": [
0.0,
0.0
],
"end": [
-75.0,
0.0
]
},
{
"type": "line",
"start": [
-58.75,
42.2
],
"end": [
-58.75,
48.2
]
},
{
"type": "line",
"start": [
-65.0,
45.2
],
"end": [
-52.5,
45.2
]
}
]
}
},
{
"id": "sk_008",
"name": "Sketch7",
"role": "profile",
"workplane": {
"origin_mm": [
42.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": "circle",
"center": [
0.0,
62.5
],
"radius_mm": 5.35
}
},
{
"id": "sk_009",
"name": "Sketch8",
"role": "profile",
"workplane": {
"origin_mm": [
-0.0,
1000.0,
-0.0
],
"x_dir": [
1.0,
0.0,
0.0
],
"y_dir": [
0.0,
1.0,
0.0
],
"normal": [
0.0,
0.0,
1.0
]
},
"profile": {
"type": "analytic_contours",
"contours": [
{
"role": "outer",
"closed": true,
"segments": [
{
"type": "line",
"start": [
25.5,
-50.360326383
],
"end": [
-25.5,
-50.360326383
]
},
{
"type": "line",
"start": [
-25.5,
-50.360326383
],
"end": [
-25.5,
8.785876808
]
},
{
"type": "line",
"start": [
-25.5,
8.785876808
],
"end": [
25.5,
8.785876808
]
},
{
"type": "line",
"start": [
25.5,
8.785876808
],
"end": [
25.5,
-50.360326383
]
}
]
}
],
"construction": [
{
"type": "line",
"start": [
25.5,
-50.360326383
],
"end": [
-25.5,
8.785876808
]
},
{
"type": "line",
"start": [
25.5,
8.785876808
],
"end": [
-25.5,
-50.360326383
]
}
]
}
},
{
"id": "sk_010",
"name": "Sketch9",
"role": "profile",
"workplane": {
"origin_mm": [
-0.0,
1000.0,
-0.0
],
"x_dir": [
1.0,
0.0,
0.0
],
"y_dir": [
0.0,
1.0,
0.0
],
"normal": [
0.0,
0.0,
1.0
]
},
"profile": {
"type": "circle",
"center": [
0.0,
-21.0
],
"radius_mm": 19.0
}
},
{
"id": "sk_011",
"name": "Sketch11",
"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": "circle",
"center": [
0.0,
62.5
],
"radius_mm": 5.35
}
},
{
"id": "sk_012",
"name": "Sketch12",
"role": "profile",
"workplane": {
"origin_mm": [
-0.0,
1000.0,
-0.0
],
"x_dir": [
1.0,
0.0,
0.0
],
"y_dir": [
0.0,
1.0,
0.0
],
"normal": [
0.0,
0.0,
1.0
]
},
"profile": {
"type": "circle",
"center": [
0.0,
-21.0
],
"radius_mm": 12.4
}
},
{
"id": "sk_013",
"name": "Sketch13",
"role": "profile",
"workplane": {
"origin_mm": [
-0.0,
1000.0,
-0.0
],
"x_dir": [
1.0,
0.0,
0.0
],
"y_dir": [
0.0,
1.0,
0.0
],
"normal": [
0.0,
0.0,
1.0
]
},
"profile": {
"type": "circle",
"center": [
0.0,
-21.0
],
"radius_mm": 19.0
}
},
{
"id": "sk_014",
"name": "Sketch14",
"role": "profile",
"workplane": {
"origin_mm": [
-0.0,
1000.0,
-0.0
],
"x_dir": [
1.0,
0.0,
0.0
],
"y_dir": [
0.0,
1.0,
0.0
],
"normal": [
0.0,
0.0,
1.0
]
},
"profile": {
"type": "circle",
"center": [
0.0,
-21.0
],
"radius_mm": 7.5
}
},
{
"id": "sk_015",
"name": "Sketch15",
"role": "profile",
"workplane": {
"origin_mm": [
75.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": "circle",
"center": [
0.0,
39.0
],
"radius_mm": 3.0
}
},
{
"id": "sk_016",
"name": "Sketch16",
"role": "profile",
"workplane": {
"origin_mm": [
-0.0,
1000.0,
-0.0
],
"x_dir": [
1.0,
0.0,
0.0
],
"y_dir": [
0.0,
1.0,
0.0
],
"normal": [
0.0,
0.0,
1.0
]
},
"profile": {
"type": "circle",
"center": [
0.0,
-70.0
],
"radius_mm": 2.0
}
}
]
},
"features": [
{
"id": "f_001",
"name": "Front Plane",
"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": "Top Plane",
"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": "Boss-Extrude1",
"atomic_id": "extrude_add_blind",
"depends_on": [
"f_001"
],
"params": {
"distance_mm": 42.0,
"reverse": false,
"end_condition": {
"type": "blind",
"solidworks_code": 0
}
},
"execution_status": "supported",
"sketch_id": "sk_002"
},
{
"id": "f_003",
"name": "Right Plane",
"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": "Boss-Extrude2",
"atomic_id": "extrude_add_blind",
"depends_on": [
"f_004"
],
"params": {
"distance_mm": 33.0,
"reverse": false,
"end_condition": {
"type": "blind",
"solidworks_code": 0
}
},
"execution_status": "supported",
"sketch_id": "sk_003"
},
{
"id": "f_013",
"name": "Plane1",
"atomic_id": "reference_plane",
"depends_on": [
"f_002"
],
"params": {
"plane": {
"origin_mm": [
0.0,
0.0,
70.0
],
"normal": [
0.0,
0.0,
1.0
],
"x_dir": [
1.0,
0.0,
0.0
]
},
"offset_mm": 70.0,
"angle_rad": 0.0,
"reverse": false,
"solidworks_type": 5,
"references": [
{
"kind": "plane",
"stable_id": "3a59788dcc6fc4588146380df745485f1125d10e3ba413489a3142d9f9beb78a",
"source": "solidworks",
"confidence": 1.0,
"owner_feature_id": "f_002"
}
]
},
"execution_status": "deferred",
"selectors": [
{
"kind": "plane",
"stable_id": "3a59788dcc6fc4588146380df745485f1125d10e3ba413489a3142d9f9beb78a",
"source": "solidworks",
"confidence": 1.0,
"owner_feature_id": "f_002"
}
]
},
{
"id": "f_006",
"name": "Revolve1",
"atomic_id": "revolve_add",
"depends_on": [
"f_003",
"f_004"
],
"params": {
"angle_deg": 360.0,
"axis": {
"origin_mm": [
0.0,
0.0,
0.0
],
"direction": [
1.0,
0.0,
0.0
]
},
"reverse": false,
"end_condition": {
"type": "blind",
"solidworks_code": 0
}
},
"execution_status": "deferred",
"sketch_id": "sk_004",
"selectors": [
{
"kind": "axis",
"stable_id": "e0878112e3a8c72711300a113e42d3cc3f43e02937bf1aab36a7a2c9305bcad0",
"source": "solidworks",
"confidence": 1.0,
"geometry": {
"start": [
0.0,
0.0,
0.0
],
"end": [
0.08473380061163638,
0.0,
0.0
]
}
}
]
},
{
"id": "f_007",
"name": "Cut-Extrude1",
"atomic_id": "extrude_cut_blind",
"depends_on": [
"f_005",
"f_004"
],
"params": {
"distance_mm": 0.0,
"reverse": false,
"end_condition": {
"type": "through_all",
"solidworks_code": 1
}
},
"execution_status": "supported",
"sketch_id": "sk_005"
},
{
"id": "f_009",
"name": "Cut-Revolve1",
"atomic_id": "revolve_cut",
"depends_on": [
"f_003",
"f_004",
"f_005"
],
"params": {
"angle_deg": 360.0,
"axis": {
"origin_mm": [
0.0,
0.0,
0.0
],
"direction": [
-1.0,
0.0,
0.0
]
},
"reverse": false,
"end_condition": {
"type": "blind",
"solidworks_code": 0
}
},
"execution_status": "deferred",
"sketch_id": "sk_007",
"selectors": [
{
"kind": "axis",
"stable_id": "8f205f36b4f66fc3e9a20d84a567a397409e0e6fc9a597759ddc3b62e7f8f7c4",
"source": "solidworks",
"confidence": 1.0,
"geometry": {
"start": [
0.0,
0.0,
0.0
],
"end": [
-0.07500000000000001,
0.0,
0.0
]
}
}
]
},
{
"id": "f_014",
"name": "Cut-Extrude4",
"atomic_id": "extrude_cut_blind",
"depends_on": [
"f_013",
"f_004"
],
"params": {
"distance_mm": 1.6,
"reverse": false,
"end_condition": {
"type": "blind",
"solidworks_code": 0
},
"reverse_distance_mm": 26.0,
"reverse_end_condition": {
"type": "blind",
"solidworks_code": 0
}
},
"execution_status": "deferred",
"sketch_id": "sk_009"
},
{
"id": "f_022",
"name": "Cut-Extrude10",
"atomic_id": "extrude_cut_blind",
"depends_on": [
"f_002",
"f_004",
"f_005"
],
"params": {
"distance_mm": 0.0,
"reverse": true,
"end_condition": {
"type": "through_all",
"solidworks_code": 1
}
},
"execution_status": "supported",
"sketch_id": "sk_016"
},
{
"id": "f_008",
"name": "Cut-Extrude2",
"atomic_id": "extrude_cut_blind",
"depends_on": [
"f_006",
"f_004"
],
"params": {
"distance_mm": 8.0,
"reverse": false,
"end_condition": {
"type": "blind",
"solidworks_code": 0
}
},
"execution_status": "supported",
"sketch_id": "sk_006"
},
{
"id": "f_010",
"name": "Fillet1",
"atomic_id": "fillet",
"depends_on": [
"f_006"
],
"params": {
"radius_mm": 5.0,
"tangent_propagation": false
},
"execution_status": "deferred"
},
{
"id": "f_011",
"name": "Cut-Extrude3",
"atomic_id": "extrude_cut_blind",
"depends_on": [
"f_004",
"f_006"
],
"params": {
"distance_mm": 0.0,
"reverse": false,
"end_condition": {
"type": "through_all",
"solidworks_code": 1
}
},
"execution_status": "supported",
"sketch_id": "sk_008"
},
{
"id": "f_012",
"name": "Chamfer1",
"atomic_id": "chamfer",
"depends_on": [
"f_006",
"f_005"
],
"params": {
"distance_mm": 2.0,
"angle_rad": 0.78539816339745
},
"execution_status": "deferred"
},
{
"id": "f_015",
"name": "Cut-Extrude5",
"atomic_id": "extrude_cut_blind",
"depends_on": [
"f_014",
"f_004"
],
"params": {
"distance_mm": 1.6,
"reverse": false,
"end_condition": {
"type": "blind",
"solidworks_code": 0
}
},
"execution_status": "supported",
"sketch_id": "sk_010"
},
{
"id": "f_016",
"name": "Boss-Extrude3",
"atomic_id": "extrude_add_blind",
"depends_on": [
"f_004",
"f_011"
],
"params": {
"distance_mm": 42.0,
"reverse": true,
"end_condition": {
"type": "blind",
"solidworks_code": 0
}
},
"execution_status": "supported",
"sketch_id": "sk_011"
},
{
"id": "f_017",
"name": "Cut-Extrude6",
"atomic_id": "extrude_cut_blind",
"depends_on": [
"f_014",
"f_004",
"f_015"
],
"params": {
"distance_mm": 23.0,
"reverse": false,
"end_condition": {
"type": "blind",
"solidworks_code": 0
}
},
"execution_status": "supported",
"sketch_id": "sk_012"
},
{
"id": "f_018",
"name": "Cut-Extrude7",
"atomic_id": "extrude_cut_blind",
"depends_on": [
"f_015",
"f_004",
"f_017"
],
"params": {
"distance_mm": 23.0,
"reverse": true,
"end_condition": {
"type": "blind",
"solidworks_code": 0
}
},
"execution_status": "supported",
"sketch_id": "sk_013"
},
{
"id": "f_019",
"name": "Cut-Extrude8",
"atomic_id": "extrude_cut_blind",
"depends_on": [
"f_017",
"f_004"
],
"params": {
"distance_mm": 23.0,
"reverse": false,
"end_condition": {
"type": "blind",
"solidworks_code": 0
}
},
"execution_status": "supported",
"sketch_id": "sk_014"
},
{
"id": "f_020",
"name": "Cut-Extrude9",
"atomic_id": "extrude_cut_blind",
"depends_on": [
"f_005",
"f_019",
"f_004"
],
"params": {
"distance_mm": 0.0,
"reverse": false,
"end_condition": {
"type": "up_to_surface",
"solidworks_code": 4
}
},
"execution_status": "supported",
"sketch_id": "sk_015"
},
{
"id": "f_021",
"name": "Chamfer2",
"atomic_id": "chamfer",
"depends_on": [
"f_020",
"f_005"
],
"params": {
"distance_mm": 1.0,
"angle_rad": 0.78539816339745
},
"execution_status": "deferred"
}
],
"meta": {
"unit": "mm",
"source": "05_壳体与盖件/0502_端盖/050299_通用端盖/front cap.solidworks_evidence_v2.json",
"source_schema": "solidworks.cad_evidence.v2",
"source_status": "hybrid_semantic_surfaceir_pending",
"document_truth": {
"mass_properties": {
"available": true,
"mass": 0.7994942200942965,
"volume": 0.0007994942200942965,
"surface_area": 0.10729684031887383,
"center_of_mass": [
-3.142222240258418e-09,
-0.0012781686116917275,
0.020268659811967474
],
"principal_moments": [
0.0014556070627592223,
0.0015157090157347623,
0.0019455395818875308
],
"principal_axes": null,
"moment_of_inertia": null
},
"geometry": {
"bounding_box": [
-0.0725,
-0.0725,
-0.04200000000000001,
0.0725,
0.0684,
0.07500000000000001
],
"solid_body_count": 1,
"bodies": [
{
"kind": "body",
"dotnet_type": "System.__ComObject",
"name": "Cut-Extrude10",
"persist_reference_base64": "UEYAAAQAAAD//v8AAAAAABAAAAB0AAAAcwAAAHIAAABxAAAAcAAAAG8AAABuAAAAbQAAAGwAAABrAAAAagAAAGkAAABoAAAAZwAAAGYAAABlAAAA",
"persist_reference_sha256": "70a0e1e457a1c53bdbca25d5df6b934afd02fde583c6a924a507265048a82650",
"component": null,
"geometry": {
"box": [
-0.0725,
-0.0725,
-0.042,
0.0725,
0.0684,
0.07500000000000001
],
"face_count": 36,
"edge_count": 53,
"vertex_count": 4
},
"stable_id": "70a0e1e457a1c53bdbca25d5df6b934afd02fde583c6a924a507265048a82650"
}
]
}
},
"step_inference": {
"available": true,
"face_count": 63,
"surface_counts": {
"cone": 6,
"cylinder": 45,
"plane": 10,
"torus": 2
},
"axis_count": 51,
"repeat_spacings_mm": [
{
"spacing_mm": 62.5,
"pair_count": 21
},
{
"spacing_mm": 130.8864,
"pair_count": 11
},
{
"spacing_mm": 75.3011,
"pair_count": 11
},
{
"spacing_mm": 63.0099,
"pair_count": 11
},
{
"spacing_mm": 132.6471,
"pair_count": 11
},
{
"spacing_mm": 104.7008,
"pair_count": 11
},
{
"spacing_mm": 32.3524,
"pair_count": 10
},
{
"spacing_mm": 88.3883,
"pair_count": 10
},
{
"spacing_mm": 108.2532,
"pair_count": 10
},
{
"spacing_mm": 120.7407,
"pair_count": 10
},
{
"spacing_mm": 125.0,
"pair_count": 5
},
{
"spacing_mm": 129.8222,
"pair_count": 2
}
],
"metrics": {
"bounding_box_mm": [
-72.5,
-72.5,
-42.0,
72.5,
68.4,
75.0000001
],
"volume_mm3": 799495.532440534,
"surface_area_mm2": 107296.76555138,
"solid_count": 1,
"face_count": 63,
"edge_count": 159,
"vertex_count": 104
},
"error": null,
"truth_comparison": {
"expected_from_evidence": {
"bounding_box_mm": [
-72.5,
-72.5,
-42.0,
72.5,
68.4,
75.0
],
"volume_mm3": 799494.220094296,
"surface_area_mm2": 107296.840318874,
"solid_count": 1,
"face_count": 36,
"edge_count": 53,
"vertex_count": 4
},
"comparisons": {
"volume_mm3": {
"expected": 799494.220094296,
"actual": 799495.532440534,
"absolute_delta": 1.312346237944439,
"within_tolerance": true
},
"surface_area_mm2": {
"expected": 107296.840318874,
"actual": 107296.76555138,
"absolute_delta": 0.07476749400666449,
"within_tolerance": true
},
"bounding_box_mm": {
"expected": [
-72.5,
-72.5,
-42.0,
72.5,
68.4,
75.0
],
"actual": [
-72.5,
-72.5,
-42.0,
72.5,
68.4,
75.0000001
],
"max_absolute_delta": 9.999999406318238e-08,
"within_tolerance": true
},
"solid_count": {
"expected": 1,
"actual": 1,
"matches": true
},
"face_count": {
"expected": 36,
"actual": 63,
"matches": false
},
"edge_count": {
"expected": 53,
"actual": 159,
"matches": false
},
"vertex_count": {
"expected": 4,
"actual": 104,
"matches": false
}
},
"numeric_geometry_match": true,
"topology_counts_match": false
}
},
"source_has_modeling_features": true
}
}