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

1073 lines
24 KiB
JSON

{
"schema": "cad.cdsl.llm.v1",
"schema_version": "1.1.0",
"kind": "part",
"part_id": "_nut",
"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": "BaseNutSke",
"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": [
9.5,
5.484827557
],
"end": [
9.5,
-5.484827557
]
},
{
"type": "line",
"start": [
9.5,
-5.484827557
],
"end": [
-0.0,
-10.969655115
]
},
{
"type": "line",
"start": [
-0.0,
-10.969655115
],
"end": [
-9.5,
-5.484827557
]
},
{
"type": "line",
"start": [
-9.5,
-5.484827557
],
"end": [
-9.5,
5.484827557
]
},
{
"type": "line",
"start": [
-9.5,
5.484827557
],
"end": [
0.0,
10.969655115
]
},
{
"type": "line",
"start": [
0.0,
10.969655115
],
"end": [
9.5,
5.484827557
]
}
]
},
{
"role": "inner",
"closed": true,
"segments": [
{
"type": "circle",
"center": [
0.0,
0.0
],
"radius_mm": 5.1
}
]
}
]
}
},
{
"id": "sk_003",
"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": [
7.0,
9.5
],
"end": [
6.151494224,
10.969655115
]
},
{
"type": "line",
"start": [
6.151494224,
10.969655115
],
"end": [
6.151494224,
20.969655115
]
},
{
"type": "line",
"start": [
6.151494224,
20.969655115
],
"end": [
17.0,
20.969655115
]
},
{
"type": "line",
"start": [
17.0,
20.969655115
],
"end": [
17.0,
9.5
]
},
{
"type": "line",
"start": [
17.0,
9.5
],
"end": [
7.0,
9.5
]
}
]
},
{
"role": "inner",
"closed": true,
"segments": [
{
"type": "line",
"start": [
0.848505776,
20.969655115
],
"end": [
-10.0,
20.969655115
]
},
{
"type": "line",
"start": [
-10.0,
20.969655115
],
"end": [
-10.0,
9.5
]
},
{
"type": "line",
"start": [
-10.0,
9.5
],
"end": [
0.0,
9.5
]
},
{
"type": "line",
"start": [
0.0,
9.5
],
"end": [
0.848505776,
10.969655115
]
},
{
"type": "line",
"start": [
0.848505776,
10.969655115
],
"end": [
0.848505776,
20.969655115
]
}
]
}
],
"construction": [
{
"type": "line",
"start": [
0.0,
0.0
],
"end": [
38.67758982,
0.0
]
},
{
"type": "line",
"start": [
3.5,
10.969655115
],
"end": [
3.5,
44.222045256
]
}
]
}
},
{
"id": "sk_004",
"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": "analytic_contours",
"contours": [
{
"role": "outer",
"closed": true,
"segments": [
{
"type": "line",
"start": [
6.9746,
6.0
],
"end": [
6.281394537,
5.01
]
},
{
"type": "line",
"start": [
6.281394537,
5.01
],
"end": [
7.0254,
5.01
]
},
{
"type": "line",
"start": [
7.0254,
5.01
],
"end": [
7.0254,
6.0
]
},
{
"type": "line",
"start": [
7.0254,
6.0
],
"end": [
6.9746,
6.0
]
}
]
},
{
"role": "inner",
"closed": true,
"segments": [
{
"type": "line",
"start": [
-0.0508,
6.0
],
"end": [
-0.0,
6.0
]
},
{
"type": "line",
"start": [
-0.0,
6.0
],
"end": [
0.693205463,
5.01
]
},
{
"type": "line",
"start": [
0.693205463,
5.01
],
"end": [
-0.0508,
5.01
]
},
{
"type": "line",
"start": [
-0.0508,
5.01
],
"end": [
-0.0508,
6.0
]
}
]
}
],
"construction": [
{
"type": "line",
"start": [
25.037505729,
0.0
],
"end": [
38.38795306,
0.0
]
}
]
}
},
{
"id": "sk_005",
"name": "ThdSchSke",
"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": [
-6.0,
0.0254
],
"end": [
-5.1,
0.655586784
]
},
{
"type": "line",
"start": [
-5.1,
0.655586784
],
"end": [
-2.55,
0.655586784
]
},
{
"type": "line",
"start": [
-2.55,
0.655586784
],
"end": [
-2.55,
-0.604786784
]
},
{
"type": "line",
"start": [
-2.55,
-0.604786784
],
"end": [
-5.1,
-0.604786784
]
},
{
"type": "line",
"start": [
-5.1,
-0.604786784
],
"end": [
-6.0,
0.0254
]
}
]
}
],
"construction": [
{
"type": "line",
"start": [
-3.175,
1.75
],
"end": [
3.175,
1.75
]
},
{
"type": "line",
"start": [
0.0,
1.75
],
"end": [
0.0,
-2.987409574
]
}
]
}
}
]
},
"features": [
{
"id": "f_001",
"name": "Plane1",
"atomic_id": "reference_plane",
"depends_on": [],
"params": {
"plane": {
"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
]
},
"offset_mm": 0.0,
"angle_rad": 0.0,
"reverse": false,
"solidworks_type": 10,
"derived_from_sketch_id": "sk_001"
},
"execution_status": "deferred"
},
{
"id": "f_002",
"name": "Plane2",
"atomic_id": "reference_plane",
"depends_on": [
"f_001"
],
"params": {
"plane": {
"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
]
},
"offset_mm": 0.0,
"angle_rad": 0.0,
"reverse": false,
"solidworks_type": 10,
"derived_from_sketch_id": "sk_005"
},
"execution_status": "deferred"
},
{
"id": "f_004",
"name": "BaseNut",
"atomic_id": "extrude_add_blind",
"depends_on": [
"f_001"
],
"params": {
"distance_mm": 7.0,
"reverse": true,
"end_condition": {
"type": "blind",
"solidworks_code": 0
}
},
"execution_status": "deferred",
"sketch_id": "sk_002",
"unresolved": [
"missing source sketch parent"
]
},
{
"id": "f_003",
"name": "Plane3",
"atomic_id": "reference_plane",
"depends_on": [
"f_002"
],
"params": {
"plane": {
"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
]
},
"offset_mm": 0.0,
"angle_rad": 0.0,
"reverse": false,
"solidworks_type": 10,
"derived_from_sketch_id": "sk_003"
},
"execution_status": "deferred"
},
{
"id": "f_007",
"name": "ThreadSchematic",
"atomic_id": "revolve_cut",
"depends_on": [
"f_002",
"f_004"
],
"params": {
"angle_deg": 360.0,
"axis": {
"origin_mm": [
0.0,
1.75,
0.0
],
"direction": [
0.0,
-1.0,
0.0
]
},
"reverse": false,
"end_condition": {
"type": "blind",
"solidworks_code": 0
}
},
"execution_status": "deferred",
"sketch_id": "sk_005",
"selectors": [
{
"kind": "axis",
"stable_id": "b75807f3192495b32a699259799a8c88cbc2440f5424503b84a801e95cf1399b",
"source": "solidworks",
"confidence": 1.0,
"geometry": {
"start": [
0.0,
0.00175,
0.0
],
"end": [
0.0,
-0.00298740957434266,
0.0
]
}
}
]
},
{
"id": "f_005",
"name": "Double-Chamfer",
"atomic_id": "revolve_cut",
"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_003",
"selectors": [
{
"kind": "axis",
"stable_id": "8440f723243df9fac78516d5733f76015157848213348f9226f42afb4d2f471b",
"source": "solidworks",
"confidence": 1.0,
"geometry": {
"start": [
0.0,
0.0,
0.0
],
"end": [
0.03867758982037291,
0.0,
0.0
]
}
}
]
},
{
"id": "f_006",
"name": "EndChamfer",
"atomic_id": "revolve_cut",
"depends_on": [
"f_003",
"f_004"
],
"params": {
"angle_deg": 360.0,
"axis": {
"origin_mm": [
25.037505729,
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": "943d5ce4fe78b55b22eabc0e1da8c7eaac5ee84cd0457994c6e039ebd6ef14c5",
"source": "solidworks",
"confidence": 1.0,
"geometry": {
"start": [
0.025037505729093173,
0.0,
0.0
],
"end": [
0.038387953059621636,
0.0,
0.0
]
}
}
]
},
{
"id": "f_008",
"name": "ThdSchPat",
"atomic_id": "pattern_linear",
"depends_on": [
"f_007"
],
"params": {
"source_feature_ids": [
"f_007"
],
"direction_1": [
1.0,
0.0,
0.0
],
"spacing_1_mm": 1.7373,
"pattern_count_1": 5
},
"execution_status": "deferred"
}
],
"meta": {
"unit": "mm",
"source": "01_紧固件/0103_螺母/010399_通用螺母/标准_nut.solidworks_evidence_v2.json",
"source_schema": "solidworks.cad_evidence.v2",
"source_status": "hybrid_semantic_surfaceir_pending",
"document_truth": {
"mass_properties": {
"available": true,
"mass": 0.0015815236991905302,
"volume": 1.5815236991905302e-06,
"surface_area": 0.0010911872680343937,
"center_of_mass": [
2.387410825120434e-18,
4.665839581576481e-09,
-0.0034983971233616953
],
"principal_moments": [
5.629454655036029e-08,
5.6294947799569226e-08,
1.0014740561641112e-07
],
"principal_axes": null,
"moment_of_inertia": null
},
"geometry": {
"bounding_box": [
-0.009500000000000001,
-0.010969655114602947,
-0.007,
0.009500000000000003,
0.010969655114602907,
3.469446951953614e-18
],
"solid_body_count": 1,
"bodies": [
{
"kind": "body",
"dotnet_type": "System.__ComObject",
"name": "EndChamfer",
"persist_reference_base64": "UEYAAAQAAAD//v8AAAAAAAMAAABnAAAAZgAAAGUAAAA=",
"persist_reference_sha256": "54d5aa819ef1af985be8ba163e06120d88de69aaa7f8169b931a1fc1d3d974ac",
"component": null,
"geometry": {
"box": [
-0.009500000000000001,
-0.010969655114602947,
-0.007,
0.009500000000000003,
0.010969655114602907,
3.469446951953614e-18
],
"face_count": 24,
"edge_count": 47,
"vertex_count": 24
},
"stable_id": "54d5aa819ef1af985be8ba163e06120d88de69aaa7f8169b931a1fc1d3d974ac"
}
]
}
},
"step_inference": {
"available": true,
"face_count": 28,
"surface_counts": {
"cone": 16,
"cylinder": 4,
"plane": 8
},
"axis_count": 20,
"repeat_spacings_mm": [],
"metrics": {
"bounding_box_mm": [
-9.5000001,
-10.969655215,
-7.0000001,
9.5000001,
10.969655215,
1e-07
],
"volume_mm3": 1581.513310758,
"surface_area_mm2": 1091.184382064,
"solid_count": 1,
"face_count": 28,
"edge_count": 60,
"vertex_count": 34
},
"error": null,
"truth_comparison": {
"expected_from_evidence": {
"bounding_box_mm": [
-9.5,
-10.969655115,
-7.0,
9.5,
10.969655115,
0.0
],
"volume_mm3": 1581.523699191,
"surface_area_mm2": 1091.187268034,
"solid_count": 1,
"face_count": 24,
"edge_count": 47,
"vertex_count": 24
},
"comparisons": {
"volume_mm3": {
"expected": 1581.523699191,
"actual": 1581.513310758,
"absolute_delta": 0.010388433000116493,
"within_tolerance": true
},
"surface_area_mm2": {
"expected": 1091.187268034,
"actual": 1091.184382064,
"absolute_delta": 0.0028859700000793964,
"within_tolerance": true
},
"bounding_box_mm": {
"expected": [
-9.5,
-10.969655115,
-7.0,
9.5,
10.969655115,
0.0
],
"actual": [
-9.5000001,
-10.969655215,
-7.0000001,
9.5000001,
10.969655215,
1e-07
],
"max_absolute_delta": 1.0000000028043132e-07,
"within_tolerance": true
},
"solid_count": {
"expected": 1,
"actual": 1,
"matches": true
},
"face_count": {
"expected": 24,
"actual": 28,
"matches": false
},
"edge_count": {
"expected": 47,
"actual": 60,
"matches": false
},
"vertex_count": {
"expected": 24,
"actual": 34,
"matches": false
}
},
"numeric_geometry_match": true,
"topology_counts_match": false
}
},
"source_has_modeling_features": true
}
}