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

1100 lines
24 KiB
JSON

{
"schema": "cad.cdsl.llm.v1",
"schema_version": "1.1.0",
"kind": "part",
"part_id": "001082",
"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": "草圖1",
"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": [
-41.5,
30.0
],
"end": [
41.5,
30.0
]
},
{
"type": "line",
"start": [
41.5,
30.0
],
"end": [
41.5,
-30.0
]
},
{
"type": "line",
"start": [
41.5,
-30.0
],
"end": [
-41.5,
-30.0
]
},
{
"type": "line",
"start": [
-41.5,
-30.0
],
"end": [
-41.5,
30.0
]
}
]
}
],
"construction": [
{
"type": "line",
"start": [
0.0,
0.0
],
"end": [
0.0,
8.384679252
]
},
{
"type": "line",
"start": [
0.0,
0.0
],
"end": [
14.406410876,
0.0
]
}
]
}
},
{
"id": "sk_003",
"name": "草圖10",
"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": [
-10.0,
-17.0
],
"end": [
-5.0,
-17.0
],
"center": [
-7.5,
-17.0
],
"radius_mm": 2.5,
"clockwise": false
},
{
"type": "line",
"start": [
-5.0,
-17.0
],
"end": [
-5.0,
-15.0
]
},
{
"type": "arc",
"start": [
-5.0,
-15.0
],
"end": [
-10.0,
-15.0
],
"center": [
-7.5,
-15.0
],
"radius_mm": 2.5,
"clockwise": false
},
{
"type": "line",
"start": [
-10.0,
-15.0
],
"end": [
-10.0,
-17.0
]
}
]
}
],
"construction": [
{
"type": "line",
"start": [
-7.5,
8.0
],
"end": [
-7.5,
-16.0
]
},
{
"type": "line",
"start": [
-7.5,
-17.0
],
"end": [
-7.5,
-15.0
]
}
]
}
},
{
"id": "sk_004",
"name": "草圖8",
"role": "profile",
"workplane": {
"origin_mm": [
18.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": [
41.5,
30.0
],
"end": [
-16.5,
30.0
]
},
{
"type": "line",
"start": [
-16.5,
30.0
],
"end": [
-16.5,
27.0
]
},
{
"type": "line",
"start": [
-16.5,
27.0
],
"end": [
41.5,
27.0
]
},
{
"type": "line",
"start": [
41.5,
27.0
],
"end": [
41.5,
30.0
]
}
]
}
]
}
},
{
"id": "sk_005",
"name": "草圖9",
"role": "profile",
"workplane": {
"origin_mm": [
18.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": [
-16.5,
27.0
],
"radius_mm": 1.5
}
}
]
},
"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": "填料-伸長1",
"atomic_id": "extrude_add_blind",
"depends_on": [
"f_001"
],
"params": {
"distance_mm": 18.0,
"reverse": false,
"end_condition": {
"type": "blind",
"solidworks_code": 0
}
},
"execution_status": "deferred",
"sketch_id": "sk_002",
"unresolved": [
"missing source sketch parent"
]
},
{
"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 螺紋孔1",
"atomic_id": "hole_wizard",
"depends_on": [
"f_004"
],
"params": {
"hole_type": "螺紋孔",
"diameter_mm": 4.0,
"depth_mm": 18.0,
"end_condition": {
"solidworks_code": 2,
"type": "through_all_both"
},
"positions": [
{
"mm": [
-27.019838969,
15.736879251,
0.0
]
}
],
"thread": {
"diameter_mm": 4.0,
"depth_mm": 18.0,
"class": "1B"
},
"host_face": {
"kind": "face",
"stable_id": "step-face-1f81328b3b172d300e83e08e",
"source": "inferred_from_step",
"confidence": 0.8,
"geometry": {
"bbox_mm": [
-41.5,
-30.0,
-0.0,
41.5,
30.0,
0.0
],
"center_mm": [
-0.966004751,
0.399478192,
0.0
],
"normal": [
0.0,
-0.0,
-1.0
],
"surface_type": "plane"
}
}
},
"execution_status": "deferred",
"selectors": [
{
"kind": "face",
"stable_id": "step-face-1f81328b3b172d300e83e08e",
"source": "inferred_from_step",
"confidence": 0.8,
"geometry": {
"bbox_mm": [
-41.5,
-30.0,
-0.0,
41.5,
30.0,
0.0
],
"center_mm": [
-0.966004751,
0.399478192,
0.0
],
"normal": [
0.0,
-0.0,
-1.0
],
"surface_type": "plane"
}
}
]
},
{
"id": "f_007",
"name": "M6 內六角圓柱頭螺釘的柱孔1",
"atomic_id": "hole_wizard",
"depends_on": [
"f_004"
],
"params": {
"hole_type": "內六角圓柱頭螺釘 GB/T 70.1-2000",
"diameter_mm": 6.6,
"depth_mm": 18.0,
"end_condition": {
"solidworks_code": 1,
"type": "through_all"
},
"positions": [
{
"mm": [
8.384890951,
13.144001484,
0.0
]
}
],
"counterbore": {
"diameter_mm": 11.0,
"depth_mm": 10.0
},
"host_face": {
"kind": "face",
"stable_id": "step-face-1f81328b3b172d300e83e08e",
"source": "inferred_from_step",
"confidence": 0.8,
"geometry": {
"bbox_mm": [
-41.5,
-30.0,
-0.0,
41.5,
30.0,
0.0
],
"center_mm": [
-0.966004751,
0.399478192,
0.0
],
"normal": [
0.0,
-0.0,
-1.0
],
"surface_type": "plane"
}
}
},
"execution_status": "deferred",
"selectors": [
{
"kind": "face",
"stable_id": "step-face-1f81328b3b172d300e83e08e",
"source": "inferred_from_step",
"confidence": 0.8,
"geometry": {
"bbox_mm": [
-41.5,
-30.0,
-0.0,
41.5,
30.0,
0.0
],
"center_mm": [
-0.966004751,
0.399478192,
0.0
],
"normal": [
0.0,
-0.0,
-1.0
],
"surface_type": "plane"
}
}
]
},
{
"id": "f_009",
"name": "Ø5.0 (5) 直徑孔1",
"atomic_id": "hole_wizard",
"depends_on": [
"f_004"
],
"params": {
"hole_type": "鑽孔尺寸",
"diameter_mm": 5.0,
"depth_mm": 18.0,
"end_condition": {
"solidworks_code": 2,
"type": "through_all_both"
},
"positions": [
{
"mm": [
5.071535427,
11.430726025,
0.0
]
}
],
"host_face": {
"kind": "face",
"stable_id": "step-face-1f81328b3b172d300e83e08e",
"source": "inferred_from_step",
"confidence": 0.8,
"geometry": {
"bbox_mm": [
-41.5,
-30.0,
-0.0,
41.5,
30.0,
0.0
],
"center_mm": [
-0.966004751,
0.399478192,
0.0
],
"normal": [
0.0,
-0.0,
-1.0
],
"surface_type": "plane"
}
}
},
"execution_status": "deferred",
"selectors": [
{
"kind": "face",
"stable_id": "step-face-1f81328b3b172d300e83e08e",
"source": "inferred_from_step",
"confidence": 0.8,
"geometry": {
"bbox_mm": [
-41.5,
-30.0,
-0.0,
41.5,
30.0,
0.0
],
"center_mm": [
-0.966004751,
0.399478192,
0.0
],
"normal": [
0.0,
-0.0,
-1.0
],
"surface_type": "plane"
}
}
]
},
{
"id": "f_011",
"name": "除料-伸長1",
"atomic_id": "extrude_cut_blind",
"depends_on": [
"f_004"
],
"params": {
"distance_mm": 1.0,
"reverse": true,
"end_condition": {
"type": "blind",
"solidworks_code": 0
}
},
"execution_status": "deferred",
"sketch_id": "sk_004",
"unresolved": [
"missing source sketch parent"
]
},
{
"id": "f_013",
"name": "導角1",
"atomic_id": "chamfer",
"depends_on": [
"f_004"
],
"params": {
"distance_mm": 1.0,
"angle_rad": 0.7853981633974483
},
"execution_status": "deferred"
},
{
"id": "f_006",
"name": "直線複製排列1",
"atomic_id": "pattern_linear",
"depends_on": [
"f_005",
"f_004"
],
"params": {
"source_feature_ids": [
"f_005",
"f_004"
],
"direction_1": [
0.0,
-1.0,
0.0
],
"spacing_1_mm": 24.0,
"pattern_count_1": 2,
"direction_2": [
-1.0,
0.0,
0.0
],
"spacing_2_mm": 28.0,
"pattern_count_2": 2
},
"execution_status": "deferred"
},
{
"id": "f_008",
"name": "直線複製排列2",
"atomic_id": "pattern_linear",
"depends_on": [
"f_007",
"f_004"
],
"params": {
"source_feature_ids": [
"f_007",
"f_004"
],
"direction_1": [
0.0,
-1.0,
0.0
],
"spacing_1_mm": 24.0,
"pattern_count_1": 2,
"direction_2": [
-1.0,
0.0,
0.0
],
"spacing_2_mm": 28.0,
"pattern_count_2": 2
},
"execution_status": "deferred"
},
{
"id": "f_010",
"name": "除料-伸長3",
"atomic_id": "extrude_cut_blind",
"depends_on": [
"f_004",
"f_009"
],
"params": {
"distance_mm": 0.0,
"reverse": false,
"end_condition": {
"type": "through_all_both",
"solidworks_code": 2
}
},
"execution_status": "deferred",
"sketch_id": "sk_003",
"unresolved": [
"missing source sketch parent"
]
},
{
"id": "f_012",
"name": "除料-伸長2",
"atomic_id": "extrude_cut_blind",
"depends_on": [
"f_004",
"f_011"
],
"params": {
"distance_mm": 1.0,
"reverse": true,
"end_condition": {
"type": "blind",
"solidworks_code": 0
}
},
"execution_status": "deferred",
"sketch_id": "sk_005",
"unresolved": [
"missing source sketch parent"
]
}
],
"meta": {
"unit": "mm",
"source": "001082.solidworks_evidence_v2.json",
"source_schema": "solidworks.cad_evidence.v2",
"source_status": "complete_with_blockers",
"document_truth": {
"mass_properties": {
"available": true,
"mass": 8.302641590461607e-12,
"volume": 8.302641590461607e-05,
"surface_area": 0.01805555271824016,
"center_of_mass": [
-0.0006744211091575116,
0.00023594749906945668,
0.009098903283908685
],
"principal_moments": [
2.787926266333411e-15,
5.182507106723181e-15,
7.522704732605364e-15
],
"principal_axes": null,
"moment_of_inertia": null
},
"geometry": {
"bounding_box": [
-0.0415,
-0.03,
-1.3532347130578224e-18,
0.0415,
0.03,
0.018
],
"solid_body_count": 1,
"bodies": [
{
"kind": "body",
"dotnet_type": "System.__ComObject",
"name": "導角1",
"persist_reference_base64": "UEYAAAQAAAD//v8AAAAAAAkAAABwAAAAbwAAAHEAAABtAAAAbAAAAGsAAABqAAAAaQAAAGgAAAA=",
"persist_reference_sha256": "af8c28c0d071ebb51bab44eef83c8bb11dade785041ebd8b7651b627dacdc810",
"component": null,
"geometry": {
"box": [
-0.0415,
-0.03,
-1.3532347130578224e-18,
0.0415,
0.03,
0.018
],
"face_count": 35,
"edge_count": 74,
"vertex_count": 32
},
"stable_id": "af8c28c0d071ebb51bab44eef83c8bb11dade785041ebd8b7651b627dacdc810"
}
]
}
},
"step_inference": {
"available": true,
"face_count": 49,
"surface_counts": {
"cylinder": 30,
"plane": 19
},
"axis_count": 30,
"repeat_spacings_mm": [
{
"spacing_mm": 28.0,
"pair_count": 4
},
{
"spacing_mm": 24.0,
"pair_count": 4
},
{
"spacing_mm": 36.8782,
"pair_count": 4
},
{
"spacing_mm": 11.6297,
"pair_count": 4
},
{
"spacing_mm": 30.8423,
"pair_count": 2
},
{
"spacing_mm": 38.8233,
"pair_count": 2
},
{
"spacing_mm": 24.7797,
"pair_count": 2
},
{
"spacing_mm": 18.2003,
"pair_count": 2
},
{
"spacing_mm": 21.1196,
"pair_count": 2
},
{
"spacing_mm": 21.7083,
"pair_count": 2
}
],
"metrics": {
"bounding_box_mm": [
-41.5,
-30.0,
-0.0,
41.5,
30.0,
18.0
],
"volume_mm3": 83026.415904616,
"surface_area_mm2": 18055.55271824,
"solid_count": 1,
"face_count": 49,
"edge_count": 129,
"vertex_count": 86
},
"error": null,
"truth_comparison": {
"expected_from_evidence": {
"bounding_box_mm": [
-41.5,
-30.0,
-0.0,
41.5,
30.0,
18.0
],
"volume_mm3": 83026.415904616,
"surface_area_mm2": 18055.55271824,
"solid_count": 1,
"face_count": 35,
"edge_count": 74,
"vertex_count": 32
},
"comparisons": {
"volume_mm3": {
"expected": 83026.415904616,
"actual": 83026.415904616,
"absolute_delta": 0.0,
"within_tolerance": true
},
"surface_area_mm2": {
"expected": 18055.55271824,
"actual": 18055.55271824,
"absolute_delta": 0.0,
"within_tolerance": true
},
"bounding_box_mm": {
"expected": [
-41.5,
-30.0,
-0.0,
41.5,
30.0,
18.0
],
"actual": [
-41.5,
-30.0,
-0.0,
41.5,
30.0,
18.0
],
"max_absolute_delta": 0.0,
"within_tolerance": true
},
"solid_count": {
"expected": 1,
"actual": 1,
"matches": true
},
"face_count": {
"expected": 35,
"actual": 49,
"matches": false
},
"edge_count": {
"expected": 74,
"actual": 129,
"matches": false
},
"vertex_count": {
"expected": 32,
"actual": 86,
"matches": false
}
},
"numeric_geometry_match": true,
"topology_counts_match": false
}
},
"source_has_modeling_features": true
}
}