Files
cdsl-cad/json_to_cdsl/output/Grease-Nipple-A.cdsl.json
2026-08-24 14:52:08 +08:00

1182 lines
28 KiB
JSON

{
"schema": "cad.cdsl.llm.v1",
"schema_version": "1.1.0",
"kind": "part",
"part_id": "Grease-Nipple-A",
"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": "Body Profile Sketch",
"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": [
2.65,
-1.881488772
],
"end": [
3.194135251,
0.6
],
"center": [
0.0,
0.0
],
"radius_mm": 3.25,
"clockwise": false
},
{
"type": "line",
"start": [
3.194135251,
0.6
],
"end": [
2.25,
2.34520788
]
},
{
"type": "line",
"start": [
2.25,
2.34520788
],
"end": [
0.75,
2.34520788
]
},
{
"type": "line",
"start": [
0.75,
2.34520788
],
"end": [
0.75,
2.19520788
]
},
{
"type": "line",
"start": [
0.75,
2.19520788
],
"end": [
1.5,
1.44520788
]
},
{
"type": "line",
"start": [
1.5,
1.44520788
],
"end": [
1.5,
-11.75479212
]
},
{
"type": "line",
"start": [
1.5,
-11.75479212
],
"end": [
1.25,
-11.75479212
]
},
{
"type": "line",
"start": [
1.25,
-11.75479212
],
"end": [
1.25,
-11.95479212
]
},
{
"type": "line",
"start": [
1.25,
-11.95479212
],
"end": [
2.0,
-11.95479212
]
},
{
"type": "line",
"start": [
2.0,
-11.95479212
],
"end": [
2.0,
-11.75479212
]
},
{
"type": "line",
"start": [
2.0,
-11.75479212
],
"end": [
2.875,
-11.75479212
]
},
{
"type": "line",
"start": [
2.875,
-11.75479212
],
"end": [
3.14375,
-7.45479212
]
},
{
"type": "line",
"start": [
3.14375,
-7.45479212
],
"end": [
3.991451884,
-7.45479212
]
},
{
"type": "line",
"start": [
3.991451884,
-7.45479212
],
"end": [
3.991451884,
-4.45479212
]
},
{
"type": "arc",
"start": [
3.991451884,
-4.45479212
],
"end": [
2.65,
-1.881488772
],
"center": [
8.483283086,
-0.476921778
],
"radius_mm": 6.0,
"clockwise": false
}
]
}
],
"construction": [
{
"type": "line",
"start": [
0.0,
-25.372757202
],
"end": [
0.0,
11.919145878
]
}
]
}
},
{
"id": "sk_003",
"name": "Hex Drive Sketch",
"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": [
4.041451884,
0.0
],
"end": [
2.020725942,
3.5
]
},
{
"type": "line",
"start": [
2.020725942,
3.5
],
"end": [
-2.020725942,
3.5
]
},
{
"type": "line",
"start": [
-2.020725942,
3.5
],
"end": [
-4.041451884,
-0.0
]
},
{
"type": "line",
"start": [
-4.041451884,
-0.0
],
"end": [
-2.020725942,
-3.5
]
},
{
"type": "line",
"start": [
-2.020725942,
-3.5
],
"end": [
2.020725942,
-3.5
]
},
{
"type": "line",
"start": [
2.020725942,
-3.5
],
"end": [
4.041451884,
0.0
]
}
]
}
],
"construction": [
{
"type": "circle",
"center": [
0.0,
0.0
],
"radius_mm": 3.5
}
]
}
},
{
"id": "sk_004",
"name": "Thread Helix Profile",
"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": "circle",
"center": [
0.0,
0.0
],
"radius_mm": 2.875
}
},
{
"id": "sk_005",
"name": "Thread Profile Sketch",
"role": "profile",
"workplane": {
"origin_mm": [
-0.442072991,
-0.005856226,
-0.783068493
],
"x_dir": [
-0.002608813,
0.041481791,
-0.999135854
],
"y_dir": [
0.706499318,
0.029332823,
0.707105578
],
"normal": [
0.082930403,
-0.995688562,
-0.041555205
]
},
"profile": {
"type": "analytic_contours",
"contours": [
{
"role": "outer",
"closed": true,
"segments": [
{
"type": "arc",
"start": [
0.441090508,
0.098191841
],
"end": [
0.449917055,
-0.042155879
],
"center": [
0.404988884,
0.025469976
],
"radius_mm": 0.081189882,
"clockwise": true
},
{
"type": "line",
"start": [
0.449917055,
-0.042155879
],
"end": [
-0.057652425,
-0.379366665
]
},
{
"type": "line",
"start": [
-0.057652425,
-0.379366665
],
"end": [
-0.104727338,
0.369154512
]
},
{
"type": "line",
"start": [
-0.104727338,
0.369154512
],
"end": [
0.441090508,
0.098191841
]
}
]
}
],
"construction": [
{
"type": "circle",
"center": [
0.13488957,
0.00848328
],
"radius_mm": 0.216506351
},
{
"type": "line",
"start": [
-0.081189882,
-0.005106077
],
"end": [
0.567048473,
0.035661994
]
}
]
}
},
{
"id": "sk_006",
"name": "Thread End Profile",
"role": "profile",
"workplane": {
"origin_mm": [
-520.047779592,
61.033615053,
553.779904902
],
"x_dir": [
-0.557632067,
0.195269048,
0.80679395
],
"y_dir": [
-0.781142775,
-0.035116521,
0.623364095
],
"normal": [
0.412997568,
-0.777836615,
0.473712158
]
},
"profile": {
"type": "analytic_contours",
"contours": [
{
"role": "outer",
"closed": true,
"segments": [
{
"type": "arc",
"start": [
0.598332598,
8.38684524
],
"end": [
0.660261878,
8.513099567
],
"center": [
0.592850753,
8.467849846
],
"radius_mm": 0.081189882,
"clockwise": false
},
{
"type": "line",
"start": [
0.660261878,
8.513099567
],
"end": [
0.373010141,
8.941035088
]
},
{
"type": "line",
"start": [
0.373010141,
8.941035088
],
"end": [
0.289410339,
9.065578547
]
},
{
"type": "line",
"start": [
0.289410339,
9.065578547
],
"end": [
-0.065554456,
8.341917846
]
},
{
"type": "line",
"start": [
-0.065554456,
8.341917846
],
"end": [
0.084103244,
8.352045668
]
},
{
"type": "line",
"start": [
0.084103244,
8.352045668
],
"end": [
0.598332598,
8.38684524
]
}
]
}
]
}
}
]
},
"features": [
{
"id": "f_001",
"name": "Front Plane",
"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 Plane",
"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": "Nipple Body",
"atomic_id": "revolve_add",
"depends_on": [
"f_001"
],
"params": {
"angle_deg": 360.0,
"axis": {
"origin_mm": [
0.0,
-25.372757202,
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": "e25f845ea1ad396c3bf25b9af48a3448dbe08b8b2434cbda2864e2effe0c17bb",
"source": "solidworks",
"confidence": 1.0,
"geometry": {
"start": [
0.0,
-0.02537275720192769,
0.0
],
"end": [
0.0,
0.011919145878399874,
0.0
]
}
}
]
},
{
"id": "f_003",
"name": "Right Plane",
"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": "Head Fillet",
"atomic_id": "fillet",
"depends_on": [
"f_004"
],
"params": {
"radius_mm": 0.2,
"tangent_propagation": false
},
"execution_status": "deferred"
},
{
"id": "f_006",
"name": "Production Fillet",
"atomic_id": "fillet",
"depends_on": [
"f_004"
],
"params": {
"radius_mm": 0.1,
"tangent_propagation": false
},
"execution_status": "deferred"
},
{
"id": "f_007",
"name": "Spring Chamfer",
"atomic_id": "chamfer",
"depends_on": [
"f_004"
],
"params": {
"distance_mm": 0.1,
"angle_rad": 0.78539816339745
},
"execution_status": "deferred"
},
{
"id": "f_008",
"name": "Hex Chamfer",
"atomic_id": "chamfer",
"depends_on": [
"f_004"
],
"params": {
"distance_mm": 0.491451884,
"angle_rad": 0.78539816339745
},
"execution_status": "deferred"
},
{
"id": "f_009",
"name": "Hex Drive",
"atomic_id": "extrude_cut_blind",
"depends_on": [
"f_002",
"f_004"
],
"params": {
"distance_mm": 5.0,
"reverse": false,
"end_condition": {
"type": "through_next",
"solidworks_code": 9
},
"reverse_distance_mm": 0.0,
"reverse_end_condition": {
"type": "through_all",
"solidworks_code": 1
}
},
"execution_status": "deferred",
"sketch_id": "sk_003"
},
{
"id": "f_010",
"name": "Thread Chamfer",
"atomic_id": "chamfer",
"depends_on": [
"f_004"
],
"params": {
"distance_mm": 0.75,
"angle_rad": 0.78539816339745
},
"execution_status": "deferred"
},
{
"id": "f_012",
"name": "Thread End Cut",
"atomic_id": "extrude_cut_blind",
"depends_on": [
"f_004"
],
"params": {
"distance_mm": 5.0,
"reverse": false,
"end_condition": {
"type": "through_next",
"solidworks_code": 9
},
"reverse_distance_mm": 0.0,
"reverse_end_condition": {
"type": "through_all",
"solidworks_code": 1
}
},
"execution_status": "deferred",
"sketch_id": "sk_006"
},
{
"id": "f_011",
"name": "Thread Plane",
"atomic_id": "reference_plane",
"depends_on": [
"f_010"
],
"params": {
"plane": {
"origin_mm": [
-0.442072991,
-0.005856226,
-0.783068493
],
"x_dir": [
-0.002608813,
0.041481791,
-0.999135854
],
"y_dir": [
0.706499318,
0.029332823,
0.707105578
],
"normal": [
0.082930403,
-0.995688562,
-0.041555205
]
},
"offset_mm": 0.0,
"angle_rad": 0.0,
"reverse": false,
"solidworks_type": 8,
"references": [
{
"kind": "feature",
"stable_id": "c82062a7c6ab0c241fbaddf425b2acbe27232772fc2ca58e7960fca3218a6a50",
"source": "solidworks",
"confidence": 1.0
},
{
"kind": "edge",
"stable_id": "766e0b8499a14b724fc7d302eb4fd089647806a56c3435902b15e307f17efdfa",
"source": "solidworks",
"confidence": 1.0,
"geometry": {
"curve": {
"type": "other",
"parameters": null
},
"start": [
0.0,
-0.011754792120088285,
-0.002875
],
"end": [
0.0018248895254768002,
-0.008079792120088285,
-0.0025117449497234615
]
}
}
],
"derived_from_sketch_id": "sk_005"
},
"execution_status": "deferred",
"selectors": [
{
"kind": "feature",
"stable_id": "c82062a7c6ab0c241fbaddf425b2acbe27232772fc2ca58e7960fca3218a6a50",
"source": "solidworks",
"confidence": 1.0
},
{
"kind": "edge",
"stable_id": "766e0b8499a14b724fc7d302eb4fd089647806a56c3435902b15e307f17efdfa",
"source": "solidworks",
"confidence": 1.0,
"geometry": {
"curve": {
"type": "other",
"parameters": null
},
"start": [
0.0,
-0.011754792120088285,
-0.002875
],
"end": [
0.0018248895254768002,
-0.008079792120088285,
-0.0025117449497234615
]
}
}
]
}
],
"meta": {
"unit": "mm",
"source": "03_连接与管件/0302_管接头/030299_通用管接头/Grease Nipple A.solidworks_evidence_v2.json",
"source_schema": "solidworks.cad_evidence.v2",
"source_status": "hybrid_semantic_surfaceir_pending",
"document_truth": {
"mass_properties": {
"available": true,
"mass": 0.0026649921191058542,
"volume": 3.331240148882318e-07,
"surface_area": 0.0005007783914962978,
"center_of_mass": [
-4.846301678255143e-06,
-0.004611805230668859,
-3.4828032589614763e-07
],
"principal_moments": [
1.697844561149362e-08,
4.3564520576198655e-08,
4.358259410793338e-08
],
"principal_axes": null,
"moment_of_inertia": null
},
"geometry": {
"bounding_box": [
-0.00404145188432738,
-0.011954792120088285,
-0.0035000000000000014,
0.00404145188432738,
0.002345207879911715,
0.0035000000000000014
],
"solid_body_count": 1,
"bodies": [
{
"kind": "body",
"dotnet_type": "System.__ComObject",
"name": "Thread End Cut",
"persist_reference_base64": "UEYAAAQAAAD//v8AAAAAAAQAAABpAAAAaAAAAGcAAABlAAAA",
"persist_reference_sha256": "2ce103d5054d5e6f416379a34b1808f0eecf3927202c83a9adc749fd15c2a9ed",
"component": null,
"geometry": {
"box": [
-0.00404145188432738,
-0.011954792120088285,
-0.0035000000000000014,
0.004041451884327379,
0.002345207879911715,
0.0035000000000000014
],
"face_count": 42,
"edge_count": 83,
"vertex_count": 43
},
"stable_id": "2ce103d5054d5e6f416379a34b1808f0eecf3927202c83a9adc749fd15c2a9ed"
}
]
}
},
"step_inference": {
"available": true,
"face_count": 66,
"surface_counts": {
"bspline": 3,
"cone": 24,
"cylinder": 13,
"plane": 12,
"sphere": 2,
"torus": 12
},
"axis_count": 37,
"repeat_spacings_mm": [
{
"spacing_mm": 0.2,
"pair_count": 2
},
{
"spacing_mm": 13.95,
"pair_count": 2
},
{
"spacing_mm": 12.3548,
"pair_count": 2
},
{
"spacing_mm": 4.3,
"pair_count": 2
},
{
"spacing_mm": 7.4742,
"pair_count": 2
}
],
"metrics": {
"bounding_box_mm": [
-3.991451984,
-11.95479212,
-3.5000001,
3.991451984,
2.34520788,
3.5000001
],
"volume_mm3": 333.124049087,
"surface_area_mm2": 500.777977495,
"solid_count": 1,
"face_count": 66,
"edge_count": 167,
"vertex_count": 105
},
"error": null,
"truth_comparison": {
"expected_from_evidence": {
"bounding_box_mm": [
-4.041451884,
-11.95479212,
-3.5,
4.041451884,
2.34520788,
3.5
],
"volume_mm3": 333.124014888,
"surface_area_mm2": 500.778391496,
"solid_count": 1,
"face_count": 42,
"edge_count": 83,
"vertex_count": 43
},
"comparisons": {
"volume_mm3": {
"expected": 333.124014888,
"actual": 333.124049087,
"absolute_delta": 3.4199000026546855e-05,
"within_tolerance": true
},
"surface_area_mm2": {
"expected": 500.778391496,
"actual": 500.777977495,
"absolute_delta": 0.0004140009999673566,
"within_tolerance": true
},
"bounding_box_mm": {
"expected": [
-4.041451884,
-11.95479212,
-3.5,
4.041451884,
2.34520788,
3.5
],
"actual": [
-3.991451984,
-11.95479212,
-3.5000001,
3.991451984,
2.34520788,
3.5000001
],
"max_absolute_delta": 0.049999899999999986,
"within_tolerance": false
},
"solid_count": {
"expected": 1,
"actual": 1,
"matches": true
},
"face_count": {
"expected": 42,
"actual": 66,
"matches": false
},
"edge_count": {
"expected": 83,
"actual": 167,
"matches": false
},
"vertex_count": {
"expected": 43,
"actual": 105,
"matches": false
}
},
"numeric_geometry_match": false,
"topology_counts_match": false
}
},
"source_has_modeling_features": true
}
}