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

882 lines
19 KiB
JSON

{
"schema": "cad.cdsl.llm.v1",
"schema_version": "1.1.0",
"kind": "part",
"part_id": "Cap_01",
"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": "analytic_contours",
"contours": [
{
"role": "outer",
"closed": true,
"segments": [
{
"type": "arc",
"start": [
-5.702048294,
17.4941889
],
"end": [
-5.702048294,
-17.4941889
],
"center": [
0.0,
0.0
],
"radius_mm": 18.4,
"clockwise": false
},
{
"type": "line",
"start": [
-5.702048294,
-17.4941889
],
"end": [
18.4,
-25.35
]
},
{
"type": "line",
"start": [
18.4,
-25.35
],
"end": [
18.4,
25.35
]
},
{
"type": "line",
"start": [
18.4,
25.35
],
"end": [
-5.702048294,
17.4941889
]
}
]
},
{
"role": "inner",
"closed": true,
"segments": [
{
"type": "circle",
"center": [
0.0,
0.0
],
"radius_mm": 12.425
}
]
}
],
"construction": [
{
"type": "line",
"start": [
0.0,
0.0
],
"end": [
18.4,
0.0
]
}
]
}
},
{
"id": "sk_003",
"name": "Sketch2",
"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": "circle",
"center": [
0.0,
0.0
],
"radius_mm": 30.6
}
},
{
"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": [
-40.175266952,
28.5
],
"end": [
40.175266952,
28.5
]
},
{
"type": "line",
"start": [
40.175266952,
28.5
],
"end": [
40.175266952,
49.5
]
},
{
"type": "line",
"start": [
40.175266952,
49.5
],
"end": [
-40.175266952,
49.5
]
},
{
"type": "line",
"start": [
-40.175266952,
49.5
],
"end": [
-40.175266952,
28.5
]
}
]
}
],
"construction": [
{
"type": "line",
"start": [
0.0,
0.0
],
"end": [
0.0,
28.5
]
}
]
}
},
{
"id": "sk_005",
"name": "Sketch5",
"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": "circle",
"center": [
0.0,
0.0
],
"radius_mm": 25.0
}
},
{
"id": "sk_006",
"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": "annulus",
"center": [
0.0,
0.0
],
"inner_radius_mm": 5.0,
"outer_radius_mm": 20.125
}
}
]
},
"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_two_sided",
"depends_on": [
"f_001"
],
"params": {
"distance_mm": 7.5,
"reverse": false,
"end_condition": {
"type": "blind",
"solidworks_code": 0
},
"reverse_distance_mm": 7.5,
"reverse_end_condition": {
"type": "blind",
"solidworks_code": 0
}
},
"execution_status": "deferred",
"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": 18.5,
"reverse": false,
"end_condition": {
"type": "blind",
"solidworks_code": 0
}
},
"execution_status": "supported",
"sketch_id": "sk_003"
},
{
"id": "f_014",
"name": "Fillet2",
"atomic_id": "fillet",
"depends_on": [
"f_004"
],
"params": {
"radius_mm": 2.0,
"tangent_propagation": false
},
"execution_status": "deferred"
},
{
"id": "f_006",
"name": "Chamfer1",
"atomic_id": "chamfer",
"depends_on": [
"f_005"
],
"params": {
"distance_mm": 2.0,
"angle_rad": 0.78539816339745
},
"execution_status": "deferred"
},
{
"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": "deferred",
"sketch_id": "sk_004"
},
{
"id": "f_008",
"name": "Boss-Extrude3",
"atomic_id": "extrude_add_blind",
"depends_on": [
"f_005",
"f_004"
],
"params": {
"distance_mm": 4.275,
"reverse": false,
"end_condition": {
"type": "blind",
"solidworks_code": 0
}
},
"execution_status": "supported",
"sketch_id": "sk_005"
},
{
"id": "f_009",
"name": "Cut-Extrude2",
"atomic_id": "extrude_cut_blind",
"depends_on": [
"f_008",
"f_005",
"f_004"
],
"params": {
"distance_mm": 0.0,
"reverse": false,
"end_condition": {
"type": "up_to_surface",
"solidworks_code": 4
}
},
"execution_status": "supported",
"sketch_id": "sk_006"
},
{
"id": "f_012",
"name": "1/4 Rc Tapped Hole1",
"atomic_id": "hole_wizard",
"depends_on": [
"f_007",
"f_005",
"f_006"
],
"params": {
"hole_type": "Tapered Pipe Tap",
"diameter_mm": 13.206947,
"depth_mm": 11.8,
"end_condition": {
"solidworks_code": 0,
"type": "blind"
},
"positions": [
{
"mm": [
27.65,
-0.0,
0.0
]
}
],
"thread": {
"diameter_mm": 13.206947,
"depth_mm": 11.8,
"class": "1B"
}
},
"execution_status": "deferred"
},
{
"id": "f_010",
"name": "Fillet1",
"atomic_id": "fillet",
"depends_on": [
"f_009"
],
"params": {
"radius_mm": 1.0,
"tangent_propagation": false
},
"execution_status": "deferred"
},
{
"id": "f_011",
"name": "Chamfer2",
"atomic_id": "chamfer",
"depends_on": [
"f_009",
"f_008"
],
"params": {
"distance_mm": 1.0,
"angle_rad": 0.78539816339745
},
"execution_status": "deferred"
},
{
"id": "f_013",
"name": "Ø2.5mm Dowel Hole1",
"atomic_id": "hole_wizard",
"depends_on": [
"f_009"
],
"params": {
"hole_type": "Dowel Holes",
"diameter_mm": 2.5,
"depth_mm": 7.5,
"end_condition": {
"solidworks_code": 0,
"type": "blind"
},
"positions": [
{
"mm": [
0.0,
10.85,
0.0
]
}
]
},
"execution_status": "deferred",
"sketch_id": "sk_001"
}
],
"meta": {
"unit": "mm",
"source": "05_壳体与盖件/0502_端盖/050299_通用端盖/Cap_01.solidworks_evidence_v2.json",
"source_schema": "solidworks.cad_evidence.v2",
"source_status": "hybrid_semantic_surfaceir_pending",
"document_truth": {
"mass_properties": {
"available": true,
"mass": 0.5246597690592067,
"volume": 6.683563948128281e-05,
"surface_area": 0.014419668372351422,
"center_of_mass": [
0.0236994106503474,
-0.0009087665348031362,
2.9311303349439243e-10
],
"principal_moments": [
0.00017895649509069362,
0.0001854990858304441,
0.00021628689876833961
],
"principal_axes": null,
"moment_of_inertia": null
},
"geometry": {
"bounding_box": [
-0.018400000000000014,
-0.0306,
-0.0306,
0.041175,
0.028500000000000004,
0.0306
],
"solid_body_count": 1,
"bodies": [
{
"kind": "body",
"dotnet_type": "System.__ComObject",
"name": "Fillet2",
"persist_reference_base64": "UEYAAAQAAAD//v8AAAAAAAcAAABrAAAAagAAAGkAAABoAAAAZwAAAGYAAABlAAAA",
"persist_reference_sha256": "3b8b7c30d93f27f936e9507810dc26ba49c28019b98dc9f56cb903757fd97fc1",
"component": null,
"geometry": {
"box": [
-0.018400000000000014,
-0.0306,
-0.0306,
0.041175,
0.028500000000000004,
0.0306
],
"face_count": 32,
"edge_count": 55,
"vertex_count": 25
},
"stable_id": "3b8b7c30d93f27f936e9507810dc26ba49c28019b98dc9f56cb903757fd97fc1"
}
]
}
},
"step_inference": {
"available": true,
"face_count": 49,
"surface_counts": {
"cone": 12,
"cylinder": 20,
"plane": 11,
"torus": 6
},
"axis_count": 32,
"repeat_spacings_mm": [
{
"spacing_mm": 32.0566,
"pair_count": 2
},
{
"spacing_mm": 48.183,
"pair_count": 2
},
{
"spacing_mm": 45.8732,
"pair_count": 2
},
{
"spacing_mm": 22.2841,
"pair_count": 2
},
{
"spacing_mm": 32.7251,
"pair_count": 2
},
{
"spacing_mm": 49.1235,
"pair_count": 2
},
{
"spacing_mm": 29.9964,
"pair_count": 2
},
{
"spacing_mm": 45.1208,
"pair_count": 2
},
{
"spacing_mm": 24.1244,
"pair_count": 2
},
{
"spacing_mm": 30.3764,
"pair_count": 2
},
{
"spacing_mm": 30.2586,
"pair_count": 2
},
{
"spacing_mm": 20.9275,
"pair_count": 2
}
],
"metrics": {
"bounding_box_mm": [
-18.4000001,
-30.6,
-30.6000001,
41.175,
28.5000001,
30.6000001
],
"volume_mm3": 66835.712151493,
"surface_area_mm2": 14419.668294072,
"solid_count": 1,
"face_count": 49,
"edge_count": 108,
"vertex_count": 67
},
"error": null,
"truth_comparison": {
"expected_from_evidence": {
"bounding_box_mm": [
-18.4,
-30.6,
-30.6,
41.175,
28.5,
30.6
],
"volume_mm3": 66835.639481283,
"surface_area_mm2": 14419.668372351,
"solid_count": 1,
"face_count": 32,
"edge_count": 55,
"vertex_count": 25
},
"comparisons": {
"volume_mm3": {
"expected": 66835.639481283,
"actual": 66835.712151493,
"absolute_delta": 0.0726702100073453,
"within_tolerance": true
},
"surface_area_mm2": {
"expected": 14419.668372351,
"actual": 14419.668294072,
"absolute_delta": 7.827899935364258e-05,
"within_tolerance": true
},
"bounding_box_mm": {
"expected": [
-18.4,
-30.6,
-30.6,
41.175,
28.5,
30.6
],
"actual": [
-18.4000001,
-30.6,
-30.6000001,
41.175,
28.5000001,
30.6000001
],
"max_absolute_delta": 1.0000000116860974e-07,
"within_tolerance": true
},
"solid_count": {
"expected": 1,
"actual": 1,
"matches": true
},
"face_count": {
"expected": 32,
"actual": 49,
"matches": false
},
"edge_count": {
"expected": 55,
"actual": 108,
"matches": false
},
"vertex_count": {
"expected": 25,
"actual": 67,
"matches": false
}
},
"numeric_geometry_match": true,
"topology_counts_match": false
}
},
"source_has_modeling_features": true
}
}