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

552 lines
12 KiB
JSON

{
"schema": "cad.cdsl.llm.v1",
"schema_version": "1.1.0",
"kind": "part",
"part_id": "004910",
"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": "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": "line",
"start": [
0.0,
30.0
],
"end": [
5.0,
30.0
]
},
{
"type": "line",
"start": [
5.0,
30.0
],
"end": [
5.0,
-30.0
]
},
{
"type": "line",
"start": [
5.0,
-30.0
],
"end": [
0.0,
-30.0
]
},
{
"type": "line",
"start": [
0.0,
-30.0
],
"end": [
0.0,
30.0
]
}
]
}
],
"construction": [
{
"type": "line",
"start": [
0.0,
59.621115525
],
"end": [
0.0,
0.0
]
},
{
"type": "line",
"start": [
0.0,
0.0
],
"end": [
61.475127301,
0.0
]
}
]
}
}
]
},
"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": "Revolve1",
"atomic_id": "revolve_add",
"depends_on": [
"f_001"
],
"params": {
"angle_deg": 360.0,
"axis": {
"origin_mm": [
0.0,
59.621115525,
0.0
],
"direction": [
0.0,
-1.0,
0.0
]
},
"reverse": false,
"end_condition": {
"type": "blind",
"solidworks_code": 0
}
},
"execution_status": "deferred",
"sketch_id": "sk_002",
"selectors": [
{
"kind": "axis",
"stable_id": "f52d63b177c0a5f80713bb044859d37b621cd559544e5a6d27fa92b3f7826998",
"source": "solidworks",
"confidence": 1.0,
"geometry": {
"start": [
0.0,
0.059621115525463356,
0.0
],
"end": [
0.0,
0.0,
0.0
]
}
}
]
},
{
"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": "M4 Tapped Hole1",
"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": [
0.0,
0.0,
0.0
]
}
],
"thread": {
"diameter_mm": 4.0,
"depth_mm": 8.0,
"class": "1B"
}
},
"execution_status": "deferred",
"sketch_id": "sk_001",
"unresolved": [
"hole has no captured semantic selections"
]
},
{
"id": "f_006",
"name": "M4 Tapped Hole2",
"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": [
0.0,
0.0,
0.0
]
}
],
"thread": {
"diameter_mm": 4.0,
"depth_mm": 8.0,
"class": "1B"
}
},
"execution_status": "deferred",
"sketch_id": "sk_001",
"unresolved": [
"hole has no captured semantic selections"
]
},
{
"id": "f_007",
"name": "Chamfer1",
"atomic_id": "chamfer",
"depends_on": [
"f_004"
],
"params": {
"distance_mm": 0.5,
"angle_rad": 0.78539816339745
},
"execution_status": "deferred"
}
],
"meta": {
"unit": "mm",
"source": "004910.solidworks_evidence_v2.json",
"source_schema": "solidworks.cad_evidence.v2",
"source_status": "complete_with_blockers",
"document_truth": {
"mass_properties": {
"available": true,
"mass": 0.004502425052444031,
"volume": 4.502425052444031e-06,
"surface_area": 0.002264278864635167,
"center_of_mass": [
-1.7622918262111537e-34,
-9.369664291758652e-18,
1.0029895043793238e-19
],
"principal_moments": [
5.8454785111834664e-08,
1.3164530210803533e-06,
1.3164530210803533e-06
],
"principal_axes": null,
"moment_of_inertia": null
},
"geometry": {
"bounding_box": [
-0.0050000000000000105,
-0.03,
-0.0050000000000000105,
0.0050000000000000105,
0.03,
0.0050000000000000105
],
"solid_body_count": 1,
"bodies": [
{
"kind": "body",
"dotnet_type": "System.__ComObject",
"name": "Chamfer1",
"persist_reference_base64": "UEYAAAQAAAD//v8AAAAAAAMAAABnAAAAZgAAAGUAAAA=",
"persist_reference_sha256": "54d5aa819ef1af985be8ba163e06120d88de69aaa7f8169b931a1fc1d3d974ac",
"component": null,
"geometry": {
"box": [
-0.0050000000000000105,
-0.03,
-0.0050000000000000105,
0.0050000000000000105,
0.03,
0.0050000000000000105
],
"face_count": 9,
"edge_count": 8,
"vertex_count": 2
},
"stable_id": "54d5aa819ef1af985be8ba163e06120d88de69aaa7f8169b931a1fc1d3d974ac"
}
]
}
},
"step_inference": {
"available": true,
"face_count": 16,
"surface_counts": {
"cone": 8,
"cylinder": 6,
"plane": 2
},
"axis_count": 14,
"repeat_spacings_mm": [
{
"spacing_mm": 48.5,
"pair_count": 2
},
{
"spacing_mm": 11.5,
"pair_count": 2
}
],
"metrics": {
"bounding_box_mm": [
-5.0,
-30.0,
-5.0,
5.0,
30.0,
5.0
],
"volume_mm3": 4502.425052444,
"surface_area_mm2": 2264.278864635,
"solid_count": 1,
"face_count": 16,
"edge_count": 30,
"vertex_count": 18
},
"error": null,
"truth_comparison": {
"expected_from_evidence": {
"bounding_box_mm": [
-5.0,
-30.0,
-5.0,
5.0,
30.0,
5.0
],
"volume_mm3": 4502.425052444,
"surface_area_mm2": 2264.278864635,
"solid_count": 1,
"face_count": 9,
"edge_count": 8,
"vertex_count": 2
},
"comparisons": {
"volume_mm3": {
"expected": 4502.425052444,
"actual": 4502.425052444,
"absolute_delta": 0.0,
"within_tolerance": true
},
"surface_area_mm2": {
"expected": 2264.278864635,
"actual": 2264.278864635,
"absolute_delta": 0.0,
"within_tolerance": true
},
"bounding_box_mm": {
"expected": [
-5.0,
-30.0,
-5.0,
5.0,
30.0,
5.0
],
"actual": [
-5.0,
-30.0,
-5.0,
5.0,
30.0,
5.0
],
"max_absolute_delta": 0.0,
"within_tolerance": true
},
"solid_count": {
"expected": 1,
"actual": 1,
"matches": true
},
"face_count": {
"expected": 9,
"actual": 16,
"matches": false
},
"edge_count": {
"expected": 8,
"actual": 30,
"matches": false
},
"vertex_count": {
"expected": 2,
"actual": 18,
"matches": false
}
},
"numeric_geometry_match": true,
"topology_counts_match": false
}
},
"source_has_modeling_features": true
}
}