2025-05-13 17:11:50 -04:00
---
source: kcl-lib/src/simulation_tests.rs
description: Result of parsing pillow-block-bearing.kcl
---
{
"Ok": {
"body": [
{
"commentStart": 0,
"end": 0,
2025-06-24 14:38:43 -04:00
"moduleId": 0,
2025-05-13 17:11:50 -04:00
"path": {
"type": "Kcl",
"filename": "parameters.kcl"
},
"preComments": [
"// Import parts and parameters"
],
"selector": {
"commentStart": 0,
"end": 0,
2025-06-24 14:38:43 -04:00
"moduleId": 0,
2025-05-13 17:11:50 -04:00
"start": 0,
"type": "Glob"
},
"start": 0,
"type": "ImportStatement",
"type": "ImportStatement"
},
{
"commentStart": 0,
"end": 0,
2025-06-24 14:38:43 -04:00
"moduleId": 0,
2025-05-13 17:11:50 -04:00
"path": {
"type": "Kcl",
"filename": "ball-bearing.kcl"
},
"selector": {
"type": "None",
"alias": {
"commentStart": 0,
"end": 0,
2025-06-24 14:38:43 -04:00
"moduleId": 0,
2025-05-13 17:11:50 -04:00
"name": "ballBearing",
"start": 0,
"type": "Identifier"
}
},
"start": 0,
"type": "ImportStatement",
"type": "ImportStatement"
},
{
"commentStart": 0,
"end": 0,
2025-06-24 14:38:43 -04:00
"moduleId": 0,
2025-05-13 17:11:50 -04:00
"path": {
"type": "Kcl",
"filename": "block.kcl"
},
"selector": {
"type": "None",
"alias": {
"commentStart": 0,
"end": 0,
2025-06-24 14:38:43 -04:00
"moduleId": 0,
2025-05-13 17:11:50 -04:00
"name": "block",
"start": 0,
"type": "Identifier"
}
},
"start": 0,
"type": "ImportStatement",
"type": "ImportStatement"
},
{
"commentStart": 0,
"end": 0,
"expression": {
"abs_path": false,
"commentStart": 0,
"end": 0,
2025-06-24 14:38:43 -04:00
"moduleId": 0,
2025-05-13 17:11:50 -04:00
"name": {
"commentStart": 0,
"end": 0,
2025-06-24 14:38:43 -04:00
"moduleId": 0,
2025-05-13 17:11:50 -04:00
"name": "ballBearing",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
2025-06-24 14:38:43 -04:00
"moduleId": 0,
2025-05-13 17:11:50 -04:00
"preComments": [
"",
"",
"// Render each part"
],
"start": 0,
"type": "ExpressionStatement",
"type": "ExpressionStatement"
},
{
"commentStart": 0,
"end": 0,
"expression": {
"abs_path": false,
"commentStart": 0,
"end": 0,
2025-06-24 14:38:43 -04:00
"moduleId": 0,
2025-05-13 17:11:50 -04:00
"name": {
"commentStart": 0,
"end": 0,
2025-06-24 14:38:43 -04:00
"moduleId": 0,
2025-05-13 17:11:50 -04:00
"name": "block",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
2025-06-24 14:38:43 -04:00
"moduleId": 0,
2025-05-13 17:11:50 -04:00
"start": 0,
"type": "ExpressionStatement",
"type": "ExpressionStatement"
}
],
"commentStart": 0,
"end": 0,
"innerAttrs": [
{
"commentStart": 0,
"end": 0,
2025-06-24 14:38:43 -04:00
"moduleId": 0,
2025-05-13 17:11:50 -04:00
"name": {
"commentStart": 0,
"end": 0,
2025-06-24 14:38:43 -04:00
"moduleId": 0,
2025-05-13 17:11:50 -04:00
"name": "settings",
"start": 0,
"type": "Identifier"
},
"preComments": [
"// Pillow Block Bearing",
"// A bearing pillow block, also known as a plummer block or pillow block bearing, is a pedestal used to provide support for a rotating shaft with the help of compatible bearings and various accessories. Housing a bearing, the pillow block provides a secure and stable foundation that allows the shaft to rotate smoothly within its machinery setup. These components are essential in a wide range of mechanical systems and machinery, playing a key role in reducing friction and supporting radial and axial loads.",
"",
"",
"// Set units"
],
"properties": [
{
"commentStart": 0,
"end": 0,
"key": {
"commentStart": 0,
"end": 0,
2025-06-24 14:38:43 -04:00
"moduleId": 0,
2025-05-13 17:11:50 -04:00
"name": "defaultLengthUnit",
"start": 0,
"type": "Identifier"
},
2025-06-24 14:38:43 -04:00
"moduleId": 0,
2025-05-13 17:11:50 -04:00
"start": 0,
"type": "ObjectProperty",
"value": {
"abs_path": false,
"commentStart": 0,
"end": 0,
2025-06-24 14:38:43 -04:00
"moduleId": 0,
2025-05-13 17:11:50 -04:00
"name": {
"commentStart": 0,
"end": 0,
2025-06-24 14:38:43 -04:00
"moduleId": 0,
2025-05-13 17:11:50 -04:00
"name": "in",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
}
}
],
"start": 0,
"type": "Annotation"
}
],
2025-06-24 14:38:43 -04:00
"moduleId": 0,
2025-05-13 17:11:50 -04:00
"nonCodeMeta": {
"nonCodeNodes": {},
"startNodes": [
{
"commentStart": 0,
"end": 0,
2025-06-24 14:38:43 -04:00
"moduleId": 0,
2025-05-13 17:11:50 -04:00
"start": 0,
"type": "NonCodeNode",
"value": {
"type": "newLine"
}
}
]
},
"start": 0
}
}