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

896 lines
20 KiB
JSON

{
"schema": "cad.cdsl.llm.v1",
"schema_version": "1.1.0",
"kind": "part",
"part_id": "_socket-weld-flange",
"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": "Hub Diameter",
"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": 54.102
}
},
{
"id": "sk_003",
"name": "Flange Diameter",
"role": "profile",
"workplane": {
"origin_mm": [
-1.5875,
-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": 95.25
}
},
{
"id": "sk_004",
"name": "Bolt Diameter",
"role": "profile",
"workplane": {
"origin_mm": [
-1.5875,
-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": [
53.881536726,
53.881536726
],
"radius_mm": 9.525
}
},
{
"id": "sk_005",
"name": "Socket Diameter",
"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": 38.989
}
},
{
"id": "sk_006",
"name": "Bore Diameter",
"role": "profile",
"workplane": {
"origin_mm": [
-30.226,
-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": 45.339
}
},
{
"id": "sk_007",
"name": "Sketch1",
"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": []
}
}
]
},
"features": [
{
"id": "f_001",
"name": "front",
"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",
"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": "Hub",
"atomic_id": "extrude_add_blind",
"depends_on": [
"f_001"
],
"params": {
"distance_mm": 30.226,
"reverse": true,
"end_condition": {
"type": "blind",
"solidworks_code": 0
}
},
"execution_status": "deferred",
"sketch_id": "sk_002",
"unresolved": [
"missing source sketch parent"
]
},
{
"id": "f_005",
"name": "Flange starting plane",
"atomic_id": "reference_plane",
"depends_on": [
"f_001"
],
"params": {
"plane": {
"origin_mm": [
-0.0,
-1.5875,
-0.0
],
"normal": [
0.0,
1.0,
0.0
],
"x_dir": [
1.0,
0.0,
0.0
]
},
"offset_mm": 1.5875,
"angle_rad": 0.0,
"reverse": true,
"solidworks_type": 5,
"references": [
{
"kind": "plane",
"stable_id": "75d0fc5445daf46ab7c00939122d768baf26a0763df74506c70d0d85d4e8b025",
"source": "solidworks",
"confidence": 1.0,
"owner_feature_id": "f_001"
}
]
},
"execution_status": "deferred",
"selectors": [
{
"kind": "plane",
"stable_id": "75d0fc5445daf46ab7c00939122d768baf26a0763df74506c70d0d85d4e8b025",
"source": "solidworks",
"confidence": 1.0,
"owner_feature_id": "f_001"
}
]
},
{
"id": "f_006",
"name": "Flange end plane",
"atomic_id": "reference_plane",
"depends_on": [
"f_001"
],
"params": {
"plane": {
"origin_mm": [
-0.0,
-23.876,
-0.0
],
"normal": [
0.0,
1.0,
0.0
],
"x_dir": [
1.0,
0.0,
0.0
]
},
"offset_mm": 23.876,
"angle_rad": 0.0,
"reverse": true,
"solidworks_type": 5,
"references": [
{
"kind": "plane",
"stable_id": "75d0fc5445daf46ab7c00939122d768baf26a0763df74506c70d0d85d4e8b025",
"source": "solidworks",
"confidence": 1.0,
"owner_feature_id": "f_001"
}
]
},
"execution_status": "deferred",
"selectors": [
{
"kind": "plane",
"stable_id": "75d0fc5445daf46ab7c00939122d768baf26a0763df74506c70d0d85d4e8b025",
"source": "solidworks",
"confidence": 1.0,
"owner_feature_id": "f_001"
}
]
},
{
"id": "f_008",
"name": "Axis of Revolution for Bore",
"atomic_id": "reference_axis",
"depends_on": [
"f_001"
],
"params": {
"axis": {
"selector": {
"kind": "feature",
"stable_id": "75d0fc5445daf46ab7c00939122d768baf26a0763df74506c70d0d85d4e8b025",
"source": "solidworks",
"confidence": 1.0
}
}
},
"execution_status": "deferred",
"sketch_id": "sk_001",
"selectors": [
{
"kind": "feature",
"stable_id": "75d0fc5445daf46ab7c00939122d768baf26a0763df74506c70d0d85d4e8b025",
"source": "solidworks",
"confidence": 1.0
},
{
"kind": "plane",
"stable_id": "75d0fc5445daf46ab7c00939122d768baf26a0763df74506c70d0d85d4e8b025",
"source": "solidworks",
"confidence": 1.0,
"owner_feature_id": "f_001"
}
]
},
{
"id": "f_003",
"name": "side",
"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,
"plane_inference": "solidworks_origin_plane_order"
},
"execution_status": "deferred"
},
{
"id": "f_007",
"name": "Flange",
"atomic_id": "extrude_add_blind",
"depends_on": [
"f_005",
"f_006",
"f_004"
],
"params": {
"distance_mm": 0.0,
"reverse": true,
"end_condition": {
"type": "up_to_surface",
"solidworks_code": 4,
"reference": {
"kind": "feature",
"stable_id": "1fdf92ea39c6b7f6f3dee622ef98da3e160818b38e1d1ff057764fe1ec125884",
"source": "solidworks",
"confidence": 1.0
}
}
},
"execution_status": "deferred",
"sketch_id": "sk_003",
"unresolved": [
"missing source sketch parent"
]
},
{
"id": "f_010",
"name": "Socket",
"atomic_id": "extrude_cut_blind",
"depends_on": [
"f_004"
],
"params": {
"distance_mm": 0.0,
"reverse": false,
"end_condition": {
"type": "through_all",
"solidworks_code": 1
}
},
"execution_status": "deferred",
"sketch_id": "sk_005",
"unresolved": [
"missing source sketch parent"
]
},
{
"id": "f_011",
"name": "Bore",
"atomic_id": "extrude_cut_blind",
"depends_on": [
"f_004"
],
"params": {
"distance_mm": 20.574,
"reverse": false,
"end_condition": {
"type": "blind",
"solidworks_code": 0
}
},
"execution_status": "deferred",
"sketch_id": "sk_006",
"unresolved": [
"missing source sketch parent"
]
},
{
"id": "f_013",
"name": "Vertical",
"atomic_id": "reference_axis",
"depends_on": [
"f_002"
],
"params": {
"axis": {
"selector": {
"kind": "feature",
"stable_id": "46665b39295d4001bcbef6f37ec0c75c219ac67a07e32a964234a868b3672da2",
"source": "solidworks",
"confidence": 1.0
}
}
},
"execution_status": "deferred",
"sketch_id": "sk_007",
"selectors": [
{
"kind": "feature",
"stable_id": "46665b39295d4001bcbef6f37ec0c75c219ac67a07e32a964234a868b3672da2",
"source": "solidworks",
"confidence": 1.0
},
{
"kind": "plane",
"stable_id": "46665b39295d4001bcbef6f37ec0c75c219ac67a07e32a964234a868b3672da2",
"source": "solidworks",
"confidence": 1.0,
"owner_feature_id": "f_002"
}
]
},
{
"id": "f_009",
"name": "Bolt Hole",
"atomic_id": "extrude_cut_blind",
"depends_on": [
"f_007",
"f_004"
],
"params": {
"distance_mm": 0.0,
"reverse": false,
"end_condition": {
"type": "through_all",
"solidworks_code": 1
}
},
"execution_status": "deferred",
"sketch_id": "sk_004",
"unresolved": [
"missing source sketch parent"
]
},
{
"id": "f_012",
"name": "Axis of Rotation",
"atomic_id": "reference_axis",
"depends_on": [
"f_011"
],
"params": {
"axis": {
"origin_mm": [
0.0,
0.0,
-9.652
],
"direction": [
0.0,
0.0,
-1.0
],
"selector": {
"kind": "face",
"stable_id": "dfd942e06c78a073646efb6a417b75d51bb01366bf45b4f6869c4aaff5c3c2d1",
"source": "solidworks",
"confidence": 1.0,
"geometry": {
"surface": {
"type": "cylinder",
"parameters": [
0.0,
0.0,
-0.009651999999999997,
0.0,
0.0,
-1.0,
0.045339
]
},
"box": [
-0.045339,
-0.045339,
-0.030226,
0.045339,
0.045339,
-0.009651999999999997
],
"area": 0.005860984069224937
}
}
}
},
"execution_status": "deferred",
"selectors": [
{
"kind": "face",
"stable_id": "dfd942e06c78a073646efb6a417b75d51bb01366bf45b4f6869c4aaff5c3c2d1",
"source": "solidworks",
"confidence": 1.0,
"geometry": {
"surface": {
"type": "cylinder",
"parameters": [
0.0,
0.0,
-0.009651999999999997,
0.0,
0.0,
-1.0,
0.045339
]
},
"box": [
-0.045339,
-0.045339,
-0.030226,
0.045339,
0.045339,
-0.009651999999999997
],
"area": 0.005860984069224937
}
}
]
}
],
"meta": {
"unit": "mm",
"source": "03_连接与管件/0301_法兰/030199_通用法兰/标准_socket weld flange.solidworks_evidence_v2.json",
"source_schema": "solidworks.cad_evidence.v2",
"source_status": "hybrid_semantic_surfaceir_pending",
"document_truth": {
"mass_properties": {
"available": true,
"mass": 0.5038916385480829,
"volume": 0.0005038916385480829,
"surface_area": 0.0747714784210557,
"center_of_mass": [
-1.092638523039826e-17,
4.202455857845485e-19,
-0.012868033343693646
],
"principal_moments": [
0.0013588149927034542,
0.0013588149927034542,
0.002668303989784048
],
"principal_axes": null,
"moment_of_inertia": null
},
"geometry": {
"bounding_box": [
-0.09525,
-0.09525,
-0.030226,
0.09525,
0.09525,
9.999999999996531e-06
],
"solid_body_count": 1,
"bodies": [
{
"kind": "body",
"dotnet_type": "System.__ComObject",
"name": "Bore",
"persist_reference_base64": "UEYAAAQAAAD//v8AAAAAAAUAAABpAAAAaAAAAGcAAABmAAAAZQAAAA==",
"persist_reference_sha256": "7b9beb7191e2f2f986d9a7b22a4512f3e28e743aa2dbab2d3a652e6815df3f83",
"component": null,
"geometry": {
"box": [
-0.09525,
-0.09525,
-0.030226,
0.09525,
0.09525,
0.0
],
"face_count": 14,
"edge_count": 18,
"vertex_count": 0
},
"stable_id": "7b9beb7191e2f2f986d9a7b22a4512f3e28e743aa2dbab2d3a652e6815df3f83"
}
]
}
},
"step_inference": {
"available": true,
"face_count": 23,
"surface_counts": {
"cylinder": 18,
"plane": 5
},
"axis_count": 18,
"repeat_spacings_mm": [
{
"spacing_mm": 78.9286,
"pair_count": 4
},
{
"spacing_mm": 107.7631,
"pair_count": 4
},
{
"spacing_mm": 76.2,
"pair_count": 4
},
{
"spacing_mm": 273.8718,
"pair_count": 4
},
{
"spacing_mm": 152.4,
"pair_count": 2
}
],
"metrics": {
"bounding_box_mm": [
-95.25,
-95.25,
-30.226,
95.25,
95.25,
0.0
],
"volume_mm3": 503891.638548084,
"surface_area_mm2": 74771.478421056,
"solid_count": 1,
"face_count": 23,
"edge_count": 54,
"vertex_count": 36
},
"error": null,
"truth_comparison": {
"expected_from_evidence": {
"bounding_box_mm": [
-95.25,
-95.25,
-30.226,
95.25,
95.25,
0.01
],
"volume_mm3": 503891.638548083,
"surface_area_mm2": 74771.478421056,
"solid_count": 1,
"face_count": 14,
"edge_count": 18,
"vertex_count": 0
},
"comparisons": {
"volume_mm3": {
"expected": 503891.638548083,
"actual": 503891.638548084,
"absolute_delta": 9.89530235528946e-10,
"within_tolerance": true
},
"surface_area_mm2": {
"expected": 74771.478421056,
"actual": 74771.478421056,
"absolute_delta": 0.0,
"within_tolerance": true
},
"bounding_box_mm": {
"expected": [
-95.25,
-95.25,
-30.226,
95.25,
95.25,
0.01
],
"actual": [
-95.25,
-95.25,
-30.226,
95.25,
95.25,
0.0
],
"max_absolute_delta": 0.01,
"within_tolerance": false
},
"solid_count": {
"expected": 1,
"actual": 1,
"matches": true
},
"face_count": {
"expected": 14,
"actual": 23,
"matches": false
},
"edge_count": {
"expected": 18,
"actual": 54,
"matches": false
},
"vertex_count": {
"expected": 0,
"actual": 36,
"matches": false
}
},
"numeric_geometry_match": false,
"topology_counts_match": false
}
},
"source_has_modeling_features": true
}
}