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

842 lines
18 KiB
JSON

{
"schema": "cad.cdsl.llm.v1",
"schema_version": "1.1.0",
"kind": "part",
"part_id": "BK-Body",
"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": "BK Body Sketch",
"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": [
30.0,
-22.0
],
"end": [
-30.0,
-22.0
]
},
{
"type": "line",
"start": [
-30.0,
-22.0
],
"end": [
-30.0,
10.5
]
},
{
"type": "line",
"start": [
-30.0,
10.5
],
"end": [
-17.0,
10.5
]
},
{
"type": "line",
"start": [
-17.0,
10.5
],
"end": [
-17.0,
17.0
]
},
{
"type": "line",
"start": [
-17.0,
17.0
],
"end": [
17.0,
17.0
]
},
{
"type": "line",
"start": [
17.0,
17.0
],
"end": [
17.0,
10.5
]
},
{
"type": "line",
"start": [
17.0,
10.5
],
"end": [
30.0,
10.5
]
},
{
"type": "line",
"start": [
30.0,
10.5
],
"end": [
30.0,
-22.0
]
}
]
}
]
}
},
{
"id": "sk_003",
"name": "BK B-Flange",
"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": 11.0
}
},
{
"id": "sk_004",
"name": "BK B-Hole",
"role": "profile",
"workplane": {
"origin_mm": [
12.5,
-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": "annulus",
"center": [
0.0,
0.0
],
"inner_radius_mm": 11.0,
"outer_radius_mm": 13.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": "BK Body",
"atomic_id": "extrude_add_blind",
"depends_on": [
"f_001"
],
"params": {
"distance_mm": 25.0,
"reverse": false,
"end_condition": {
"type": "through_all_and_blind",
"solidworks_code": 6
}
},
"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": "BK Flange",
"atomic_id": "extrude_cut_blind",
"depends_on": [
"f_001",
"f_004"
],
"params": {
"distance_mm": 25.0,
"reverse": false,
"end_condition": {
"type": "through_next",
"solidworks_code": 9
},
"reverse_distance_mm": 0.0,
"reverse_end_condition": {
"type": "through_all",
"solidworks_code": 1
}
},
"execution_status": "deferred",
"sketch_id": "sk_003",
"unresolved": [
"missing source sketch parent"
]
},
{
"id": "f_007",
"name": "Vertical Holes",
"atomic_id": "hole_wizard",
"depends_on": [
"f_004"
],
"params": {
"hole_type": "Hex Socket Head ISO 4762",
"diameter_mm": 6.6,
"depth_mm": 32.5,
"end_condition": {
"solidworks_code": 1,
"type": "through_all"
},
"positions": [
{
"mm": [
-23.0,
6.5,
0.0
]
},
{
"mm": [
-23.0,
-6.5,
0.0
]
},
{
"mm": [
23.0,
6.5,
0.0
]
},
{
"mm": [
23.0,
-6.5,
0.0
]
}
],
"counterbore": {
"diameter_mm": 10.8,
"depth_mm": 5.0
}
},
"execution_status": "deferred",
"sketch_id": "sk_001"
},
{
"id": "f_008",
"name": "Horizontal Holes",
"atomic_id": "hole_wizard",
"depends_on": [
"f_004"
],
"params": {
"hole_type": "Screw Clearances",
"diameter_mm": 5.5,
"depth_mm": 25.0,
"end_condition": {
"solidworks_code": 1,
"type": "through_all"
},
"positions": [
{
"mm": [
-23.0,
-0.0,
0.0
]
},
{
"mm": [
-23.0,
-15.0,
0.0
]
},
{
"mm": [
23.0,
0.0,
0.0
]
},
{
"mm": [
23.0,
-15.0,
0.0
]
}
]
},
"execution_status": "deferred",
"sketch_id": "sk_001"
},
{
"id": "f_009",
"name": "Flange Holes",
"atomic_id": "hole_wizard",
"depends_on": [
"f_004"
],
"params": {
"hole_type": "Tapped hole",
"diameter_mm": 4.0,
"depth_mm": 8.0,
"end_condition": {
"solidworks_code": 0,
"type": "blind"
},
"positions": [
{
"mm": [
-12.02081528,
12.02081528,
0.0
]
},
{
"mm": [
12.02081528,
12.02081528,
0.0
]
},
{
"mm": [
12.02081528,
-12.02081528,
0.0
]
},
{
"mm": [
-12.02081528,
-12.02081528,
0.0
]
}
],
"thread": {
"diameter_mm": 4.0,
"depth_mm": 8.0,
"class": ""
}
},
"execution_status": "deferred",
"sketch_id": "sk_001"
},
{
"id": "f_006",
"name": "BK Bearing",
"atomic_id": "extrude_cut_blind",
"depends_on": [
"f_004",
"f_005"
],
"params": {
"distance_mm": 5.0,
"reverse": false,
"end_condition": {
"type": "offset_from_surface",
"solidworks_code": 5,
"reference": {
"kind": "face",
"stable_id": "d077ea79dbfe13196edb1b05dbc63d7fc261887c401e2cbf300ce97eedb311f5",
"source": "solidworks",
"confidence": 1.0,
"geometry": {
"surface": {
"type": "plane",
"parameters": [
0.0,
0.0,
-1.0,
0.0,
0.0,
-0.0125
]
},
"box": [
-0.030000000000000002,
-0.022000000000000002,
-0.0125,
0.030000000000000002,
0.017,
-0.0125
],
"area": 0.0017908672889156356
}
}
}
},
"execution_status": "deferred",
"sketch_id": "sk_004",
"unresolved": [
"missing source sketch parent"
]
},
{
"id": "f_011",
"name": "Production Fillet",
"atomic_id": "fillet",
"depends_on": [
"f_004",
"f_007"
],
"params": {
"radius_mm": 0.1,
"tangent_propagation": false
},
"execution_status": "deferred"
},
{
"id": "f_010",
"name": "Bearing Fillet",
"atomic_id": "fillet",
"depends_on": [
"f_006"
],
"params": {
"radius_mm": 0.15,
"tangent_propagation": false
},
"execution_status": "deferred"
},
{
"id": "f_012",
"name": "Aesthetic Chamfer",
"atomic_id": "chamfer",
"depends_on": [
"f_004",
"f_006",
"f_005"
],
"params": {
"distance_mm": 0.5,
"angle_rad": 0.78539816339745
},
"execution_status": "deferred"
}
],
"meta": {
"unit": "mm",
"source": "05_壳体与盖件/0501_箱体壳体/050199_通用壳体/BK Body.solidworks_evidence_v2.json",
"source_schema": "solidworks.cad_evidence.v2",
"source_status": "hybrid_semantic_surfaceir_pending",
"document_truth": {
"mass_properties": {
"available": true,
"mass": 0.2699679213204564,
"volume": 3.435580557661881e-05,
"surface_area": 0.013700814062578089,
"center_of_mass": [
-1.1371822586923837e-07,
-0.005190168611187706,
-0.0003004952883671764
],
"principal_moments": [
5.1276688339501055e-05,
9.993408400732053e-05,
0.000122363564570078
],
"principal_axes": null,
"moment_of_inertia": null
},
"geometry": {
"bounding_box": [
-0.030000000000000002,
-0.022000000000000006,
-0.012668863144210509,
0.030000000000000002,
0.017,
0.012668863144210512
],
"solid_body_count": 1,
"bodies": [
{
"kind": "body",
"dotnet_type": "System.__ComObject",
"name": "Aesthetic Chamfer",
"persist_reference_base64": "UEYAAAQAAAD//v8AAAAAAAYAAABwAAAAbwAAAG4AAABpAAAAaAAAAGUAAAA=",
"persist_reference_sha256": "84231cc8526a3ea529161cf3a104c9fa674975ec73446ed7e2b7c92f5234acd1",
"component": null,
"geometry": {
"box": [
-0.030000000000000002,
-0.022000000000000006,
-0.012668863144210509,
0.030000000000000002,
0.017,
0.012668863144210512
],
"face_count": 121,
"edge_count": 200,
"vertex_count": 68
},
"stable_id": "84231cc8526a3ea529161cf3a104c9fa674975ec73446ed7e2b7c92f5234acd1"
}
]
}
},
"step_inference": {
"available": true,
"face_count": 183,
"surface_counts": {
"cone": 66,
"cylinder": 54,
"plane": 53,
"torus": 10
},
"axis_count": 120,
"repeat_spacings_mm": [
{
"spacing_mm": 46.0,
"pair_count": 10
},
{
"spacing_mm": 24.0416,
"pair_count": 8
},
{
"spacing_mm": 26.6505,
"pair_count": 8
},
{
"spacing_mm": 21.7083,
"pair_count": 6
},
{
"spacing_mm": 13.0,
"pair_count": 6
},
{
"spacing_mm": 47.8017,
"pair_count": 6
},
{
"spacing_mm": 24.5,
"pair_count": 5
},
{
"spacing_mm": 17.0074,
"pair_count": 4
},
{
"spacing_mm": 20.2485,
"pair_count": 4
},
{
"spacing_mm": 23.0054,
"pair_count": 4
},
{
"spacing_mm": 27.4636,
"pair_count": 4
},
{
"spacing_mm": 26.6317,
"pair_count": 4
}
],
"metrics": {
"bounding_box_mm": [
-30.0,
-22.0,
-12.5000001,
30.0,
17.0,
12.5000001
],
"volume_mm3": 34355.830937101,
"surface_area_mm2": 13700.805272179,
"solid_count": 1,
"face_count": 183,
"edge_count": 460,
"vertex_count": 268
},
"error": null,
"truth_comparison": {
"expected_from_evidence": {
"bounding_box_mm": [
-30.0,
-22.0,
-12.668863144,
30.0,
17.0,
12.668863144
],
"volume_mm3": 34355.805576619,
"surface_area_mm2": 13700.814062578,
"solid_count": 1,
"face_count": 121,
"edge_count": 200,
"vertex_count": 68
},
"comparisons": {
"volume_mm3": {
"expected": 34355.805576619,
"actual": 34355.830937101,
"absolute_delta": 0.025360481995448936,
"within_tolerance": true
},
"surface_area_mm2": {
"expected": 13700.814062578,
"actual": 13700.805272179,
"absolute_delta": 0.008790398998826277,
"within_tolerance": true
},
"bounding_box_mm": {
"expected": [
-30.0,
-22.0,
-12.668863144,
30.0,
17.0,
12.668863144
],
"actual": [
-30.0,
-22.0,
-12.5000001,
30.0,
17.0,
12.5000001
],
"max_absolute_delta": 0.16886304400000007,
"within_tolerance": false
},
"solid_count": {
"expected": 1,
"actual": 1,
"matches": true
},
"face_count": {
"expected": 121,
"actual": 183,
"matches": false
},
"edge_count": {
"expected": 200,
"actual": 460,
"matches": false
},
"vertex_count": {
"expected": 68,
"actual": 268,
"matches": false
}
},
"numeric_geometry_match": false,
"topology_counts_match": false
}
},
"source_has_modeling_features": true
}
}