Files
cdsl-cad/json_to_cdsl/output/hex-bolt-gradeb_iso.cdsl.json
2026-08-24 14:52:08 +08:00

977 lines
22 KiB
JSON

{
"schema": "cad.cdsl.llm.v1",
"schema_version": "1.1.0",
"kind": "part",
"part_id": "hex-bolt-gradeb_iso",
"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": [
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": [
9.0,
5.196152423
],
"end": [
9.0,
-5.196152423
]
},
{
"type": "line",
"start": [
9.0,
-5.196152423
],
"end": [
-0.0,
-10.392304845
]
},
{
"type": "line",
"start": [
-0.0,
-10.392304845
],
"end": [
-9.0,
-5.196152423
]
},
{
"type": "line",
"start": [
-9.0,
-5.196152423
],
"end": [
-9.0,
5.196152423
]
},
{
"type": "line",
"start": [
-9.0,
5.196152423
],
"end": [
0.0,
10.392304845
]
},
{
"type": "line",
"start": [
0.0,
10.392304845
],
"end": [
9.0,
5.196152423
]
}
]
}
]
}
},
{
"id": "sk_003",
"name": "BodySke",
"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,
0.0
],
"end": [
57.5,
0.0
]
},
{
"type": "line",
"start": [
57.5,
0.0
],
"end": [
57.5,
5.036
]
},
{
"type": "line",
"start": [
57.5,
5.036
],
"end": [
56.536,
6.0
]
},
{
"type": "line",
"start": [
56.536,
6.0
],
"end": [
0.0,
6.0
]
},
{
"type": "line",
"start": [
0.0,
6.0
],
"end": [
0.0,
0.0
]
}
]
}
],
"construction": [
{
"type": "line",
"start": [
0.0,
0.0
],
"end": [
110.49,
0.0
]
},
{
"type": "line",
"start": [
57.5,
-5.036
],
"end": [
56.536,
-6.0
]
},
{
"type": "line",
"start": [
9.25,
15.24
],
"end": [
9.25,
-1.27
]
},
{
"type": "line",
"start": [
7.5,
15.24
],
"end": [
7.5,
-1.27
]
}
]
}
},
{
"id": "sk_004",
"name": "Sketch3",
"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,
9.0
],
"end": [
3.690598923,
15.392304845
]
},
{
"type": "line",
"start": [
3.690598923,
15.392304845
],
"end": [
3.690598923,
20.392304845
]
},
{
"type": "line",
"start": [
3.690598923,
20.392304845
],
"end": [
-10.0,
20.392304845
]
},
{
"type": "line",
"start": [
-10.0,
20.392304845
],
"end": [
-10.0,
9.0
]
},
{
"type": "line",
"start": [
-10.0,
9.0
],
"end": [
0.0,
9.0
]
}
]
}
],
"construction": [
{
"type": "line",
"start": [
0.0,
0.0
],
"end": [
99.06,
0.0
]
}
]
}
},
{
"id": "sk_005",
"name": "ThdSchSke",
"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.25,
-5.036
],
"end": [
8.574999933,
-6.0
]
},
{
"type": "line",
"start": [
8.574999933,
-6.0
],
"end": [
8.574999933,
-7.5
]
},
{
"type": "line",
"start": [
8.574999933,
-7.5
],
"end": [
9.925000067,
-7.5
]
},
{
"type": "line",
"start": [
9.925000067,
-7.5
],
"end": [
9.925000067,
-6.0
]
},
{
"type": "line",
"start": [
9.925000067,
-6.0
],
"end": [
9.25,
-5.036
]
}
]
}
],
"construction": [
{
"type": "line",
"start": [
-3.175,
0.0
],
"end": [
5.151268239,
0.0
]
}
]
}
}
]
},
"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,
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,
"plane_inference": "solidworks_origin_plane_order"
},
"execution_status": "deferred"
},
{
"id": "f_008",
"name": "ThreadSchematic",
"atomic_id": "revolve_cut",
"depends_on": [
"f_001"
],
"params": {
"angle_deg": 360.0,
"axis": {
"origin_mm": [
-3.175,
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_005",
"selectors": [
{
"kind": "axis",
"stable_id": "0a77b7b8190da190716bc26cfd581423540193973ac73b6f06c517e142837895",
"source": "solidworks",
"confidence": 1.0,
"geometry": {
"start": [
-0.0031749999999999955,
0.0,
0.0
],
"end": [
0.00515126823882092,
1.0196400988889548e-18,
0.0
]
}
}
]
},
{
"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_002"
},
"execution_status": "deferred"
},
{
"id": "f_004",
"name": "BaseHead",
"atomic_id": "extrude_add_blind",
"depends_on": [
"f_003"
],
"params": {
"distance_mm": 7.5,
"reverse": false,
"end_condition": {
"type": "blind",
"solidworks_code": 0
}
},
"execution_status": "deferred",
"sketch_id": "sk_002"
},
{
"id": "f_005",
"name": "BaseBody",
"atomic_id": "revolve_add",
"depends_on": [
"f_001",
"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": "5e2d009219dddd6a051dcf47f542ba5bb5ddeb22bdc2835c26f59a22bd77cefa",
"source": "solidworks",
"confidence": 1.0,
"geometry": {
"start": [
0.0,
0.0,
0.0
],
"end": [
0.11048999999999999,
0.0,
0.0
]
}
}
]
},
{
"id": "f_007",
"name": "HeadChamfer",
"atomic_id": "revolve_cut",
"depends_on": [
"f_001",
"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": "d23b214ee774e30ac207ac1d856cab162e9d4b828cbfc84af313b67278602950",
"source": "solidworks",
"confidence": 1.0,
"geometry": {
"start": [
0.0,
0.0,
0.0
],
"end": [
0.09906,
0.0,
0.0
]
}
}
]
},
{
"id": "f_006",
"name": "HeadFillet",
"atomic_id": "fillet",
"depends_on": [
"f_004",
"f_005"
],
"params": {
"radius_mm": 0.6,
"tangent_propagation": false
},
"execution_status": "deferred"
},
{
"id": "f_009",
"name": "ThdSchPat",
"atomic_id": "pattern_linear",
"depends_on": [
"f_008",
"f_005"
],
"params": {
"source_feature_ids": [
"f_008",
"f_005"
],
"direction_1": [
1.0,
0.0,
0.0
],
"spacing_1_mm": 1.723214286,
"pattern_count_1": 28
},
"execution_status": "deferred"
}
],
"meta": {
"unit": "mm",
"source": "01_紧固件/0101_螺栓/010114_六角头螺栓通用/hex bolt gradeb_iso.solidworks_evidence_v2.json",
"source_schema": "solidworks.cad_evidence.v2",
"source_status": "hybrid_semantic_surfaceir_pending",
"document_truth": {
"mass_properties": {
"available": true,
"mass": 0.007736404288547315,
"volume": 7.736404288547315e-06,
"surface_area": 0.002878145043355803,
"center_of_mass": [
0.024653025659667187,
6.3326625010630846e-09,
2.1791327228240306e-17
],
"principal_moments": [
1.9535837551787534e-07,
2.5320257436668982e-06,
2.5320257436668982e-06
],
"principal_axes": null,
"moment_of_inertia": null
},
"geometry": {
"bounding_box": [
0.0,
-0.010392304845413258,
-0.009000000000000001,
0.05750000000000001,
0.010392304845413272,
0.009000000000000001
],
"solid_body_count": 1,
"bodies": [
{
"kind": "body",
"dotnet_type": "System.__ComObject",
"name": "HeadChamfer",
"persist_reference_base64": "UEYAAAQAAAD//v8AAAAAAAMAAABnAAAAZgAAAGUAAAA=",
"persist_reference_sha256": "54d5aa819ef1af985be8ba163e06120d88de69aaa7f8169b931a1fc1d3d974ac",
"component": null,
"geometry": {
"box": [
0.0,
-0.010392304845413258,
-0.009000000000000001,
0.05750000000000001,
0.010392304845413272,
0.009000000000000001
],
"face_count": 17,
"edge_count": 33,
"vertex_count": 18
},
"stable_id": "54d5aa819ef1af985be8ba163e06120d88de69aaa7f8169b931a1fc1d3d974ac"
}
]
}
},
"step_inference": {
"available": true,
"face_count": 19,
"surface_counts": {
"cone": 8,
"cylinder": 2,
"plane": 9
},
"axis_count": 10,
"repeat_spacings_mm": [],
"metrics": {
"bounding_box_mm": [
-1e-07,
-10.392304945,
-9.0000001,
57.5,
10.392304945,
9.0000001
],
"volume_mm3": 7736.398123496,
"surface_area_mm2": 2878.143632956,
"solid_count": 1,
"face_count": 19,
"edge_count": 40,
"vertex_count": 24
},
"error": null,
"truth_comparison": {
"expected_from_evidence": {
"bounding_box_mm": [
0.0,
-10.392304845,
-9.0,
57.5,
10.392304845,
9.0
],
"volume_mm3": 7736.404288547,
"surface_area_mm2": 2878.145043356,
"solid_count": 1,
"face_count": 17,
"edge_count": 33,
"vertex_count": 18
},
"comparisons": {
"volume_mm3": {
"expected": 7736.404288547,
"actual": 7736.398123496,
"absolute_delta": 0.006165050999697996,
"within_tolerance": true
},
"surface_area_mm2": {
"expected": 2878.145043356,
"actual": 2878.143632956,
"absolute_delta": 0.0014103999997132632,
"within_tolerance": true
},
"bounding_box_mm": {
"expected": [
0.0,
-10.392304845,
-9.0,
57.5,
10.392304845,
9.0
],
"actual": [
-1e-07,
-10.392304945,
-9.0000001,
57.5,
10.392304945,
9.0000001
],
"max_absolute_delta": 1e-07,
"within_tolerance": true
},
"solid_count": {
"expected": 1,
"actual": 1,
"matches": true
},
"face_count": {
"expected": 17,
"actual": 19,
"matches": false
},
"edge_count": {
"expected": 33,
"actual": 40,
"matches": false
},
"vertex_count": {
"expected": 18,
"actual": 24,
"matches": false
}
},
"numeric_geometry_match": true,
"topology_counts_match": false
}
},
"source_has_modeling_features": true
}
}