Files
modeling-app/rust/kcl-lib/tests/kcl_samples/a-parametric-bearing-pillow-block/ast.snap
Jonathan Tran 69553fded7 test: Vendor kcl-samples and add simulation tests for them (#5460)
* Change to unzip

* Download kcl-samples as zip to public dir

* Fix fetch:samples, e2e electron still not working

* Change error message to be clearer

* Refactor so that input and output directories of sim tests can be different

* Add kcl samples test implementation

* Update output since adding kcl_samples tests

* Update kcl-samples branch

* Fix git-ignore pattern to only apply to the root

* Fix yarn install and yarn fetch:samples to work the first time

* Remove unneeded exists check

* Change to use kcl-samples in public directory

* Add kcl-samples

* Update output since updating kcl-samples

* Update output files

* Change to not fetch samples during yarn install

* Update output after merge

* Ignore kcl-samples in codespell

* WIP: Don't run e2e if only kcl-samples changed

* Conditionally run cargo tests

* Fix to round floating point values in program memory arrays

* Update output since merge and rounding numbers in memory

* Fix memory redaction for floating point to find more values

* Fix float redaction pattern

* Update output since rounding floating point numbers

* Add center to floating point pattern

* Fix trigger to use picomatch syntax

* Update output since rounding center

* Remove kcl-samples github workflows

* Enable Rust backtrace

* Update output after re-running

* Update output after changing order of post-extrude commands

* Fix to have deterministic order of commands

* Update output after reverting ordering changes

* Update kcl-samples

* Update output after updating samples

* Fix error messages to show the names of all samples that failed

* Change cargo test command to match current one

* Update kcl-samples

* Update output since updating kcl-samples

* Add generate manifest workflow and yarn script

* Fix error check to actually work

* Change util function to be what we actually need

* Move new files after merge

* Fix paths since directory move

* Add dependabot updates for kcl-samples

* Add GitHub workflow to make PR to kcl-samples repo

* Add GitHub workflow to check kcl-samples header comments

* Fix worfklow to change to the right directory

* Add auto-commit simulation test output changes

* Add permissions to workflows

* Fix to run git commit step

* Install just if needed

* Fix directory of justfile

* Add installation of cargo-insta

* Fix to use underscore

* Fix to allow just command failure

* Change to always install CLI tools and cache them

* Trying to fix overwrite failing

* Combine commands

* Change reviewer

* Change to PR targeting the next branch

* Change git commands to not do unnecessary fetch

* Comment out trigger for creating a PR

* Update kcl-samples from next branch

* Update outputs after kcl-samples change

* Fix to use bash pipefail

* Add rust backtrace

* Print full env from sim tests

* Change command to use long option name

* Fix to use ci profile even when calling through just

* Add INSTA_UPDATE=always

* Fix git push by using an app token on checkout

* Add comments

* Fix to use bash options

* Change to echo when no changes are found

* Fix so that kcl-samples updates don't trigger full run

* Fix paths to reflect new crate location

* Fix path detection

* Fix e2e job to ignore kcl_samples simulation test output

* Fix the fetch logic for the KCL samples after vendoring (#5661)

Fixes the last 2 E2E tests for #5460.

---------

Co-authored-by: Pierre Jacquier <pierre@zoo.dev>
Co-authored-by: Pierre Jacquier <pierrejacquier39@gmail.com>
Co-authored-by: Frank Noirot <frank@zoo.dev>
2025-03-06 18:01:24 -05:00

3512 lines
136 KiB
Plaintext

---
source: kcl-lib/src/simulation_tests.rs
description: Result of parsing a-parametric-bearing-pillow-block.kcl
---
{
"Ok": {
"body": [
{
"declaration": {
"end": 741,
"id": {
"end": 737,
"name": "length",
"start": 731,
"type": "Identifier"
},
"init": {
"end": 741,
"raw": "6",
"start": 740,
"type": "Literal",
"type": "Literal",
"value": {
"value": 6.0,
"suffix": "None"
}
},
"start": 731,
"type": "VariableDeclarator"
},
"end": 741,
"kind": "const",
"start": 731,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 751,
"id": {
"end": 747,
"name": "width",
"start": 742,
"type": "Identifier"
},
"init": {
"end": 751,
"raw": "4",
"start": 750,
"type": "Literal",
"type": "Literal",
"value": {
"value": 4.0,
"suffix": "None"
}
},
"start": 742,
"type": "VariableDeclarator"
},
"end": 751,
"kind": "const",
"start": 742,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 762,
"id": {
"end": 758,
"name": "height",
"start": 752,
"type": "Identifier"
},
"init": {
"end": 762,
"raw": "1",
"start": 761,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.0,
"suffix": "None"
}
},
"start": 752,
"type": "VariableDeclarator"
},
"end": 762,
"kind": "const",
"start": 752,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 776,
"id": {
"end": 770,
"name": "cbDepth",
"start": 763,
"type": "Identifier"
},
"init": {
"end": 776,
"raw": ".25",
"start": 773,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.25,
"suffix": "None"
}
},
"start": 763,
"type": "VariableDeclarator"
},
"end": 776,
"kind": "const",
"start": 763,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 787,
"id": {
"end": 782,
"name": "cbDia",
"start": 777,
"type": "Identifier"
},
"init": {
"end": 787,
"raw": ".7",
"start": 785,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.7,
"suffix": "None"
}
},
"start": 777,
"type": "VariableDeclarator"
},
"end": 787,
"kind": "const",
"start": 777,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 802,
"id": {
"end": 795,
"name": "holeDia",
"start": 788,
"type": "Identifier"
},
"init": {
"end": 802,
"raw": ".375",
"start": 798,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.375,
"suffix": "None"
}
},
"start": 788,
"type": "VariableDeclarator"
},
"end": 802,
"kind": "const",
"start": 788,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 816,
"id": {
"end": 810,
"name": "padding",
"start": 803,
"type": "Identifier"
},
"init": {
"end": 816,
"raw": "1.5",
"start": 813,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.5,
"suffix": "None"
}
},
"start": 803,
"type": "VariableDeclarator"
},
"end": 816,
"kind": "const",
"start": 803,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 831,
"id": {
"end": 827,
"name": "bearingDia",
"start": 817,
"type": "Identifier"
},
"init": {
"end": 831,
"raw": "3",
"start": 830,
"type": "Literal",
"type": "Literal",
"value": {
"value": 3.0,
"suffix": "None"
}
},
"start": 817,
"type": "VariableDeclarator"
},
"end": 831,
"kind": "const",
"start": 817,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 2203,
"id": {
"end": 938,
"name": "block",
"start": 933,
"type": "Identifier"
},
"init": {
"body": [
{
"arguments": [
{
"end": 959,
"raw": "'XY'",
"start": 955,
"type": "Literal",
"type": "Literal",
"value": "XY"
}
],
"callee": {
"end": 954,
"name": "startSketchOn",
"start": 941,
"type": "Identifier"
},
"end": 960,
"start": 941,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"elements": [
{
"end": 992,
"left": {
"argument": {
"end": 988,
"name": "width",
"start": 983,
"type": "Identifier",
"type": "Identifier"
},
"end": 988,
"operator": "-",
"start": 982,
"type": "UnaryExpression",
"type": "UnaryExpression"
},
"operator": "/",
"right": {
"end": 992,
"raw": "2",
"start": 991,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 982,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
{
"end": 1005,
"left": {
"argument": {
"end": 1001,
"name": "length",
"start": 995,
"type": "Identifier",
"type": "Identifier"
},
"end": 1001,
"operator": "-",
"start": 994,
"type": "UnaryExpression",
"type": "UnaryExpression"
},
"operator": "/",
"right": {
"end": 1005,
"raw": "2",
"start": 1004,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 994,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
],
"end": 1006,
"start": 981,
"type": "ArrayExpression",
"type": "ArrayExpression"
},
{
"end": 1009,
"start": 1008,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
"end": 980,
"name": "startProfileAt",
"start": 966,
"type": "Identifier"
},
"end": 1010,
"start": 966,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 1032,
"name": "endAbsolute",
"start": 1021,
"type": "Identifier"
},
"arg": {
"elements": [
{
"end": 1045,
"left": {
"end": 1041,
"name": "width",
"start": 1036,
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
"end": 1045,
"raw": "2",
"start": 1044,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 1036,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
{
"end": 1058,
"left": {
"argument": {
"end": 1054,
"name": "length",
"start": 1048,
"type": "Identifier",
"type": "Identifier"
},
"end": 1054,
"operator": "-",
"start": 1047,
"type": "UnaryExpression",
"type": "UnaryExpression"
},
"operator": "/",
"right": {
"end": 1058,
"raw": "2",
"start": 1057,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 1047,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
],
"end": 1059,
"start": 1035,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
"end": 1020,
"name": "line",
"start": 1016,
"type": "Identifier"
},
"end": 1060,
"start": 1016,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 1082,
"name": "endAbsolute",
"start": 1071,
"type": "Identifier"
},
"arg": {
"elements": [
{
"end": 1095,
"left": {
"end": 1091,
"name": "width",
"start": 1086,
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
"end": 1095,
"raw": "2",
"start": 1094,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 1086,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
{
"end": 1107,
"left": {
"end": 1103,
"name": "length",
"start": 1097,
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
"end": 1107,
"raw": "2",
"start": 1106,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 1097,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
],
"end": 1108,
"start": 1085,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
"end": 1070,
"name": "line",
"start": 1066,
"type": "Identifier"
},
"end": 1109,
"start": 1066,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 1131,
"name": "endAbsolute",
"start": 1120,
"type": "Identifier"
},
"arg": {
"elements": [
{
"end": 1145,
"left": {
"argument": {
"end": 1141,
"name": "width",
"start": 1136,
"type": "Identifier",
"type": "Identifier"
},
"end": 1141,
"operator": "-",
"start": 1135,
"type": "UnaryExpression",
"type": "UnaryExpression"
},
"operator": "/",
"right": {
"end": 1145,
"raw": "2",
"start": 1144,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 1135,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
{
"end": 1157,
"left": {
"end": 1153,
"name": "length",
"start": 1147,
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
"end": 1157,
"raw": "2",
"start": 1156,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 1147,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
],
"end": 1158,
"start": 1134,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
"end": 1119,
"name": "line",
"start": 1115,
"type": "Identifier"
},
"end": 1159,
"start": 1115,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [],
"callee": {
"end": 1170,
"name": "close",
"start": 1165,
"type": "Identifier"
},
"end": 1172,
"start": 1165,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 1204,
"name": "center",
"start": 1198,
"type": "Identifier"
},
"arg": {
"elements": [
{
"argument": {
"end": 1244,
"left": {
"end": 1229,
"left": {
"end": 1225,
"name": "width",
"start": 1220,
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
"end": 1229,
"raw": "2",
"start": 1228,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 1220,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"operator": "-",
"right": {
"end": 1244,
"left": {
"end": 1240,
"name": "padding",
"start": 1233,
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
"end": 1244,
"raw": "2",
"start": 1243,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 1233,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"start": 1220,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"end": 1244,
"operator": "-",
"start": 1218,
"type": "UnaryExpression",
"type": "UnaryExpression"
},
{
"argument": {
"end": 1284,
"left": {
"end": 1269,
"left": {
"end": 1265,
"name": "length",
"start": 1259,
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
"end": 1269,
"raw": "2",
"start": 1268,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 1259,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"operator": "-",
"right": {
"end": 1284,
"left": {
"end": 1280,
"name": "padding",
"start": 1273,
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
"end": 1284,
"raw": "2",
"start": 1283,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 1273,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"start": 1259,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"end": 1284,
"operator": "-",
"start": 1257,
"type": "UnaryExpression",
"type": "UnaryExpression"
}
],
"end": 1295,
"start": 1207,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
},
{
"type": "LabeledArg",
"label": {
"end": 1310,
"name": "radius",
"start": 1304,
"type": "Identifier"
},
"arg": {
"end": 1324,
"left": {
"end": 1320,
"name": "holeDia",
"start": 1313,
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
"end": 1324,
"raw": "2",
"start": 1323,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 1313,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
}
],
"callee": {
"end": 1189,
"name": "circle",
"start": 1183,
"type": "Identifier"
},
"end": 1331,
"start": 1183,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"end": 1334,
"start": 1333,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
"end": 1182,
"name": "hole",
"start": 1178,
"type": "Identifier"
},
"end": 1335,
"start": 1178,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 1367,
"name": "center",
"start": 1361,
"type": "Identifier"
},
"arg": {
"elements": [
{
"argument": {
"end": 1407,
"left": {
"end": 1392,
"left": {
"end": 1388,
"name": "width",
"start": 1383,
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
"end": 1392,
"raw": "2",
"start": 1391,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 1383,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"operator": "-",
"right": {
"end": 1407,
"left": {
"end": 1403,
"name": "padding",
"start": 1396,
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
"end": 1407,
"raw": "2",
"start": 1406,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 1396,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"start": 1383,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"end": 1407,
"operator": "-",
"start": 1381,
"type": "UnaryExpression",
"type": "UnaryExpression"
},
{
"end": 1445,
"left": {
"end": 1430,
"left": {
"end": 1426,
"name": "length",
"start": 1420,
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
"end": 1430,
"raw": "2",
"start": 1429,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 1420,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"operator": "-",
"right": {
"end": 1445,
"left": {
"end": 1441,
"name": "padding",
"start": 1434,
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
"end": 1445,
"raw": "2",
"start": 1444,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 1434,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"start": 1420,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
],
"end": 1455,
"start": 1370,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
},
{
"type": "LabeledArg",
"label": {
"end": 1470,
"name": "radius",
"start": 1464,
"type": "Identifier"
},
"arg": {
"end": 1484,
"left": {
"end": 1480,
"name": "holeDia",
"start": 1473,
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
"end": 1484,
"raw": "2",
"start": 1483,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 1473,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
}
],
"callee": {
"end": 1352,
"name": "circle",
"start": 1346,
"type": "Identifier"
},
"end": 1491,
"start": 1346,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"end": 1494,
"start": 1493,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
"end": 1345,
"name": "hole",
"start": 1341,
"type": "Identifier"
},
"end": 1495,
"start": 1341,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 1527,
"name": "center",
"start": 1521,
"type": "Identifier"
},
"arg": {
"elements": [
{
"end": 1565,
"left": {
"end": 1550,
"left": {
"end": 1546,
"name": "width",
"start": 1541,
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
"end": 1550,
"raw": "2",
"start": 1549,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 1541,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"operator": "-",
"right": {
"end": 1565,
"left": {
"end": 1561,
"name": "padding",
"start": 1554,
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
"end": 1565,
"raw": "2",
"start": 1564,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 1554,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"start": 1541,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
{
"end": 1602,
"left": {
"end": 1587,
"left": {
"end": 1583,
"name": "length",
"start": 1577,
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
"end": 1587,
"raw": "2",
"start": 1586,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 1577,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"operator": "-",
"right": {
"end": 1602,
"left": {
"end": 1598,
"name": "padding",
"start": 1591,
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
"end": 1602,
"raw": "2",
"start": 1601,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 1591,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"start": 1577,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
],
"end": 1612,
"start": 1530,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
},
{
"type": "LabeledArg",
"label": {
"end": 1627,
"name": "radius",
"start": 1621,
"type": "Identifier"
},
"arg": {
"end": 1641,
"left": {
"end": 1637,
"name": "holeDia",
"start": 1630,
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
"end": 1641,
"raw": "2",
"start": 1640,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 1630,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
}
],
"callee": {
"end": 1512,
"name": "circle",
"start": 1506,
"type": "Identifier"
},
"end": 1648,
"start": 1506,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"end": 1651,
"start": 1650,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
"end": 1505,
"name": "hole",
"start": 1501,
"type": "Identifier"
},
"end": 1652,
"start": 1501,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 1684,
"name": "center",
"start": 1678,
"type": "Identifier"
},
"arg": {
"elements": [
{
"end": 1722,
"left": {
"end": 1707,
"left": {
"end": 1703,
"name": "width",
"start": 1698,
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
"end": 1707,
"raw": "2",
"start": 1706,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 1698,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"operator": "-",
"right": {
"end": 1722,
"left": {
"end": 1718,
"name": "padding",
"start": 1711,
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
"end": 1722,
"raw": "2",
"start": 1721,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 1711,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"start": 1698,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
{
"argument": {
"end": 1761,
"left": {
"end": 1746,
"left": {
"end": 1742,
"name": "length",
"start": 1736,
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
"end": 1746,
"raw": "2",
"start": 1745,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 1736,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"operator": "-",
"right": {
"end": 1761,
"left": {
"end": 1757,
"name": "padding",
"start": 1750,
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
"end": 1761,
"raw": "2",
"start": 1760,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 1750,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"start": 1736,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"end": 1761,
"operator": "-",
"start": 1734,
"type": "UnaryExpression",
"type": "UnaryExpression"
}
],
"end": 1772,
"start": 1687,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
},
{
"type": "LabeledArg",
"label": {
"end": 1787,
"name": "radius",
"start": 1781,
"type": "Identifier"
},
"arg": {
"end": 1801,
"left": {
"end": 1797,
"name": "holeDia",
"start": 1790,
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
"end": 1801,
"raw": "2",
"start": 1800,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 1790,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
}
],
"callee": {
"end": 1669,
"name": "circle",
"start": 1663,
"type": "Identifier"
},
"end": 1808,
"start": 1663,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"end": 1811,
"start": 1810,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
"end": 1662,
"name": "hole",
"start": 1658,
"type": "Identifier"
},
"end": 1812,
"start": 1658,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 1844,
"name": "center",
"start": 1838,
"type": "Identifier"
},
"arg": {
"elements": [
{
"end": 1849,
"raw": "0",
"start": 1848,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"end": 1852,
"raw": "0",
"start": 1851,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
],
"end": 1853,
"start": 1847,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
},
{
"type": "LabeledArg",
"label": {
"end": 1868,
"name": "radius",
"start": 1862,
"type": "Identifier"
},
"arg": {
"end": 1885,
"left": {
"end": 1881,
"name": "bearingDia",
"start": 1871,
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
"end": 1885,
"raw": "2",
"start": 1884,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 1871,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
}
],
"callee": {
"end": 1829,
"name": "circle",
"start": 1823,
"type": "Identifier"
},
"end": 1892,
"start": 1823,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"end": 1895,
"start": 1894,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
"end": 1822,
"name": "hole",
"start": 1818,
"type": "Identifier"
},
"end": 1896,
"start": 1818,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 1916,
"name": "length",
"start": 1910,
"type": "Identifier"
},
"arg": {
"end": 1935,
"left": {
"end": 1925,
"name": "height",
"start": 1919,
"type": "Identifier",
"type": "Identifier"
},
"operator": "-",
"right": {
"end": 1935,
"name": "cbDepth",
"start": 1928,
"type": "Identifier",
"type": "Identifier"
},
"start": 1919,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
}
],
"callee": {
"end": 1909,
"name": "extrude",
"start": 1902,
"type": "Identifier"
},
"end": 1936,
"start": 1902,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
}
],
"end": 2203,
"nonCodeMeta": {
"nonCodeNodes": {
"11": [
{
"end": 2203,
"start": 1936,
"type": "NonCodeNode",
"value": {
"type": "newLineBlockComment",
"value": "Create a second sketch that creates the counterbore diameters and extrude the rest of the way to get the total height. Note: You cannot use startSketchOn(block, 'end'). The extrude lives outside the bounds, and the engine will not execute. This is a known issue.",
"style": "line"
}
}
]
},
"startNodes": []
},
"start": 941,
"type": "PipeExpression",
"type": "PipeExpression"
},
"start": 933,
"type": "VariableDeclarator"
},
"end": 2203,
"kind": "const",
"start": 933,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 3408,
"id": {
"end": 2214,
"name": "secondHalf",
"start": 2204,
"type": "Identifier"
},
"init": {
"body": [
{
"arguments": [
{
"end": 2448,
"properties": [
{
"end": 2441,
"key": {
"end": 2245,
"name": "plane",
"start": 2240,
"type": "Identifier"
},
"start": 2240,
"type": "ObjectProperty",
"value": {
"end": 2441,
"properties": [
{
"end": 2306,
"key": {
"end": 2265,
"name": "origin",
"start": 2259,
"type": "Identifier"
},
"start": 2259,
"type": "ObjectProperty",
"value": {
"end": 2306,
"properties": [
{
"end": 2275,
"key": {
"end": 2271,
"name": "x",
"start": 2270,
"type": "Identifier"
},
"start": 2270,
"type": "ObjectProperty",
"value": {
"end": 2275,
"raw": "0",
"start": 2274,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
},
{
"end": 2282,
"key": {
"end": 2278,
"name": "y",
"start": 2277,
"type": "Identifier"
},
"start": 2277,
"type": "ObjectProperty",
"value": {
"end": 2282,
"raw": "0",
"start": 2281,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
},
{
"end": 2304,
"key": {
"end": 2285,
"name": "z",
"start": 2284,
"type": "Identifier"
},
"start": 2284,
"type": "ObjectProperty",
"value": {
"end": 2304,
"left": {
"end": 2294,
"name": "height",
"start": 2288,
"type": "Identifier",
"type": "Identifier"
},
"operator": "-",
"right": {
"end": 2304,
"name": "cbDepth",
"start": 2297,
"type": "Identifier",
"type": "Identifier"
},
"start": 2288,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
}
],
"start": 2268,
"type": "ObjectExpression",
"type": "ObjectExpression"
}
},
{
"end": 2348,
"key": {
"end": 2322,
"name": "xAxis",
"start": 2317,
"type": "Identifier"
},
"start": 2317,
"type": "ObjectProperty",
"value": {
"end": 2348,
"properties": [
{
"end": 2332,
"key": {
"end": 2328,
"name": "x",
"start": 2327,
"type": "Identifier"
},
"start": 2327,
"type": "ObjectProperty",
"value": {
"end": 2332,
"raw": "1",
"start": 2331,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.0,
"suffix": "None"
}
}
},
{
"end": 2339,
"key": {
"end": 2335,
"name": "y",
"start": 2334,
"type": "Identifier"
},
"start": 2334,
"type": "ObjectProperty",
"value": {
"end": 2339,
"raw": "0",
"start": 2338,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
},
{
"end": 2346,
"key": {
"end": 2342,
"name": "z",
"start": 2341,
"type": "Identifier"
},
"start": 2341,
"type": "ObjectProperty",
"value": {
"end": 2346,
"raw": "0",
"start": 2345,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
}
],
"start": 2325,
"type": "ObjectExpression",
"type": "ObjectExpression"
}
},
{
"end": 2390,
"key": {
"end": 2364,
"name": "yAxis",
"start": 2359,
"type": "Identifier"
},
"start": 2359,
"type": "ObjectProperty",
"value": {
"end": 2390,
"properties": [
{
"end": 2374,
"key": {
"end": 2370,
"name": "x",
"start": 2369,
"type": "Identifier"
},
"start": 2369,
"type": "ObjectProperty",
"value": {
"end": 2374,
"raw": "0",
"start": 2373,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
},
{
"end": 2381,
"key": {
"end": 2377,
"name": "y",
"start": 2376,
"type": "Identifier"
},
"start": 2376,
"type": "ObjectProperty",
"value": {
"end": 2381,
"raw": "1",
"start": 2380,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.0,
"suffix": "None"
}
}
},
{
"end": 2388,
"key": {
"end": 2384,
"name": "z",
"start": 2383,
"type": "Identifier"
},
"start": 2383,
"type": "ObjectProperty",
"value": {
"end": 2388,
"raw": "0",
"start": 2387,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
}
],
"start": 2367,
"type": "ObjectExpression",
"type": "ObjectExpression"
}
},
{
"end": 2432,
"key": {
"end": 2406,
"name": "zAxis",
"start": 2401,
"type": "Identifier"
},
"start": 2401,
"type": "ObjectProperty",
"value": {
"end": 2432,
"properties": [
{
"end": 2416,
"key": {
"end": 2412,
"name": "x",
"start": 2411,
"type": "Identifier"
},
"start": 2411,
"type": "ObjectProperty",
"value": {
"end": 2416,
"raw": "0",
"start": 2415,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
},
{
"end": 2423,
"key": {
"end": 2419,
"name": "y",
"start": 2418,
"type": "Identifier"
},
"start": 2418,
"type": "ObjectProperty",
"value": {
"end": 2423,
"raw": "0",
"start": 2422,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
},
{
"end": 2430,
"key": {
"end": 2426,
"name": "z",
"start": 2425,
"type": "Identifier"
},
"start": 2425,
"type": "ObjectProperty",
"value": {
"end": 2430,
"raw": "1",
"start": 2429,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.0,
"suffix": "None"
}
}
}
],
"start": 2409,
"type": "ObjectExpression",
"type": "ObjectExpression"
}
}
],
"start": 2248,
"type": "ObjectExpression",
"type": "ObjectExpression"
}
}
],
"start": 2231,
"type": "ObjectExpression",
"type": "ObjectExpression"
}
],
"callee": {
"end": 2230,
"name": "startSketchOn",
"start": 2217,
"type": "Identifier"
},
"end": 2449,
"start": 2217,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"elements": [
{
"end": 2481,
"left": {
"argument": {
"end": 2477,
"name": "width",
"start": 2472,
"type": "Identifier",
"type": "Identifier"
},
"end": 2477,
"operator": "-",
"start": 2471,
"type": "UnaryExpression",
"type": "UnaryExpression"
},
"operator": "/",
"right": {
"end": 2481,
"raw": "2",
"start": 2480,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 2471,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
{
"end": 2494,
"left": {
"argument": {
"end": 2490,
"name": "length",
"start": 2484,
"type": "Identifier",
"type": "Identifier"
},
"end": 2490,
"operator": "-",
"start": 2483,
"type": "UnaryExpression",
"type": "UnaryExpression"
},
"operator": "/",
"right": {
"end": 2494,
"raw": "2",
"start": 2493,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 2483,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
],
"end": 2495,
"start": 2470,
"type": "ArrayExpression",
"type": "ArrayExpression"
},
{
"end": 2498,
"start": 2497,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
"end": 2469,
"name": "startProfileAt",
"start": 2455,
"type": "Identifier"
},
"end": 2499,
"start": 2455,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 2521,
"name": "endAbsolute",
"start": 2510,
"type": "Identifier"
},
"arg": {
"elements": [
{
"end": 2534,
"left": {
"end": 2530,
"name": "width",
"start": 2525,
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
"end": 2534,
"raw": "2",
"start": 2533,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 2525,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
{
"end": 2547,
"left": {
"argument": {
"end": 2543,
"name": "length",
"start": 2537,
"type": "Identifier",
"type": "Identifier"
},
"end": 2543,
"operator": "-",
"start": 2536,
"type": "UnaryExpression",
"type": "UnaryExpression"
},
"operator": "/",
"right": {
"end": 2547,
"raw": "2",
"start": 2546,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 2536,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
],
"end": 2548,
"start": 2524,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
"end": 2509,
"name": "line",
"start": 2505,
"type": "Identifier"
},
"end": 2549,
"start": 2505,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 2571,
"name": "endAbsolute",
"start": 2560,
"type": "Identifier"
},
"arg": {
"elements": [
{
"end": 2584,
"left": {
"end": 2580,
"name": "width",
"start": 2575,
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
"end": 2584,
"raw": "2",
"start": 2583,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 2575,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
{
"end": 2596,
"left": {
"end": 2592,
"name": "length",
"start": 2586,
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
"end": 2596,
"raw": "2",
"start": 2595,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 2586,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
],
"end": 2597,
"start": 2574,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
"end": 2559,
"name": "line",
"start": 2555,
"type": "Identifier"
},
"end": 2598,
"start": 2555,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 2620,
"name": "endAbsolute",
"start": 2609,
"type": "Identifier"
},
"arg": {
"elements": [
{
"end": 2634,
"left": {
"argument": {
"end": 2630,
"name": "width",
"start": 2625,
"type": "Identifier",
"type": "Identifier"
},
"end": 2630,
"operator": "-",
"start": 2624,
"type": "UnaryExpression",
"type": "UnaryExpression"
},
"operator": "/",
"right": {
"end": 2634,
"raw": "2",
"start": 2633,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 2624,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
{
"end": 2646,
"left": {
"end": 2642,
"name": "length",
"start": 2636,
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
"end": 2646,
"raw": "2",
"start": 2645,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 2636,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
],
"end": 2647,
"start": 2623,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
"end": 2608,
"name": "line",
"start": 2604,
"type": "Identifier"
},
"end": 2648,
"start": 2604,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [],
"callee": {
"end": 2659,
"name": "close",
"start": 2654,
"type": "Identifier"
},
"end": 2661,
"start": 2654,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 2693,
"name": "center",
"start": 2687,
"type": "Identifier"
},
"arg": {
"elements": [
{
"argument": {
"end": 2733,
"left": {
"end": 2718,
"left": {
"end": 2714,
"name": "width",
"start": 2709,
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
"end": 2718,
"raw": "2",
"start": 2717,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 2709,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"operator": "-",
"right": {
"end": 2733,
"left": {
"end": 2729,
"name": "padding",
"start": 2722,
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
"end": 2733,
"raw": "2",
"start": 2732,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 2722,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"start": 2709,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"end": 2733,
"operator": "-",
"start": 2707,
"type": "UnaryExpression",
"type": "UnaryExpression"
},
{
"argument": {
"end": 2773,
"left": {
"end": 2758,
"left": {
"end": 2754,
"name": "length",
"start": 2748,
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
"end": 2758,
"raw": "2",
"start": 2757,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 2748,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"operator": "-",
"right": {
"end": 2773,
"left": {
"end": 2769,
"name": "padding",
"start": 2762,
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
"end": 2773,
"raw": "2",
"start": 2772,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 2762,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"start": 2748,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"end": 2773,
"operator": "-",
"start": 2746,
"type": "UnaryExpression",
"type": "UnaryExpression"
}
],
"end": 2784,
"start": 2696,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
},
{
"type": "LabeledArg",
"label": {
"end": 2799,
"name": "radius",
"start": 2793,
"type": "Identifier"
},
"arg": {
"end": 2811,
"left": {
"end": 2807,
"name": "cbDia",
"start": 2802,
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
"end": 2811,
"raw": "2",
"start": 2810,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 2802,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
}
],
"callee": {
"end": 2678,
"name": "circle",
"start": 2672,
"type": "Identifier"
},
"end": 2818,
"start": 2672,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"end": 2821,
"start": 2820,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
"end": 2671,
"name": "hole",
"start": 2667,
"type": "Identifier"
},
"end": 2822,
"start": 2667,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 2854,
"name": "center",
"start": 2848,
"type": "Identifier"
},
"arg": {
"elements": [
{
"argument": {
"end": 2894,
"left": {
"end": 2879,
"left": {
"end": 2875,
"name": "width",
"start": 2870,
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
"end": 2879,
"raw": "2",
"start": 2878,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 2870,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"operator": "-",
"right": {
"end": 2894,
"left": {
"end": 2890,
"name": "padding",
"start": 2883,
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
"end": 2894,
"raw": "2",
"start": 2893,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 2883,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"start": 2870,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"end": 2894,
"operator": "-",
"start": 2868,
"type": "UnaryExpression",
"type": "UnaryExpression"
},
{
"end": 2932,
"left": {
"end": 2917,
"left": {
"end": 2913,
"name": "length",
"start": 2907,
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
"end": 2917,
"raw": "2",
"start": 2916,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 2907,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"operator": "-",
"right": {
"end": 2932,
"left": {
"end": 2928,
"name": "padding",
"start": 2921,
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
"end": 2932,
"raw": "2",
"start": 2931,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 2921,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"start": 2907,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
],
"end": 2942,
"start": 2857,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
},
{
"type": "LabeledArg",
"label": {
"end": 2957,
"name": "radius",
"start": 2951,
"type": "Identifier"
},
"arg": {
"end": 2969,
"left": {
"end": 2965,
"name": "cbDia",
"start": 2960,
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
"end": 2969,
"raw": "2",
"start": 2968,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 2960,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
}
],
"callee": {
"end": 2839,
"name": "circle",
"start": 2833,
"type": "Identifier"
},
"end": 2976,
"start": 2833,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"end": 2979,
"start": 2978,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
"end": 2832,
"name": "hole",
"start": 2828,
"type": "Identifier"
},
"end": 2980,
"start": 2828,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 3012,
"name": "center",
"start": 3006,
"type": "Identifier"
},
"arg": {
"elements": [
{
"end": 3050,
"left": {
"end": 3035,
"left": {
"end": 3031,
"name": "width",
"start": 3026,
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
"end": 3035,
"raw": "2",
"start": 3034,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 3026,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"operator": "-",
"right": {
"end": 3050,
"left": {
"end": 3046,
"name": "padding",
"start": 3039,
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
"end": 3050,
"raw": "2",
"start": 3049,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 3039,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"start": 3026,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
{
"end": 3087,
"left": {
"end": 3072,
"left": {
"end": 3068,
"name": "length",
"start": 3062,
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
"end": 3072,
"raw": "2",
"start": 3071,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 3062,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"operator": "-",
"right": {
"end": 3087,
"left": {
"end": 3083,
"name": "padding",
"start": 3076,
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
"end": 3087,
"raw": "2",
"start": 3086,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 3076,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"start": 3062,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
],
"end": 3097,
"start": 3015,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
},
{
"type": "LabeledArg",
"label": {
"end": 3112,
"name": "radius",
"start": 3106,
"type": "Identifier"
},
"arg": {
"end": 3124,
"left": {
"end": 3120,
"name": "cbDia",
"start": 3115,
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
"end": 3124,
"raw": "2",
"start": 3123,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 3115,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
}
],
"callee": {
"end": 2997,
"name": "circle",
"start": 2991,
"type": "Identifier"
},
"end": 3131,
"start": 2991,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"end": 3134,
"start": 3133,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
"end": 2990,
"name": "hole",
"start": 2986,
"type": "Identifier"
},
"end": 3135,
"start": 2986,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 3167,
"name": "center",
"start": 3161,
"type": "Identifier"
},
"arg": {
"elements": [
{
"end": 3205,
"left": {
"end": 3190,
"left": {
"end": 3186,
"name": "width",
"start": 3181,
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
"end": 3190,
"raw": "2",
"start": 3189,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 3181,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"operator": "-",
"right": {
"end": 3205,
"left": {
"end": 3201,
"name": "padding",
"start": 3194,
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
"end": 3205,
"raw": "2",
"start": 3204,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 3194,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"start": 3181,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
{
"argument": {
"end": 3244,
"left": {
"end": 3229,
"left": {
"end": 3225,
"name": "length",
"start": 3219,
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
"end": 3229,
"raw": "2",
"start": 3228,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 3219,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"operator": "-",
"right": {
"end": 3244,
"left": {
"end": 3240,
"name": "padding",
"start": 3233,
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
"end": 3244,
"raw": "2",
"start": 3243,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 3233,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"start": 3219,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"end": 3244,
"operator": "-",
"start": 3217,
"type": "UnaryExpression",
"type": "UnaryExpression"
}
],
"end": 3255,
"start": 3170,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
},
{
"type": "LabeledArg",
"label": {
"end": 3270,
"name": "radius",
"start": 3264,
"type": "Identifier"
},
"arg": {
"end": 3282,
"left": {
"end": 3278,
"name": "cbDia",
"start": 3273,
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
"end": 3282,
"raw": "2",
"start": 3281,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 3273,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
}
],
"callee": {
"end": 3152,
"name": "circle",
"start": 3146,
"type": "Identifier"
},
"end": 3289,
"start": 3146,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"end": 3292,
"start": 3291,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
"end": 3145,
"name": "hole",
"start": 3141,
"type": "Identifier"
},
"end": 3293,
"start": 3141,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 3325,
"name": "center",
"start": 3319,
"type": "Identifier"
},
"arg": {
"elements": [
{
"end": 3330,
"raw": "0",
"start": 3329,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"end": 3333,
"raw": "0",
"start": 3332,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
],
"end": 3334,
"start": 3328,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
},
{
"type": "LabeledArg",
"label": {
"end": 3349,
"name": "radius",
"start": 3343,
"type": "Identifier"
},
"arg": {
"end": 3366,
"left": {
"end": 3362,
"name": "bearingDia",
"start": 3352,
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
"end": 3366,
"raw": "2",
"start": 3365,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 3352,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
}
],
"callee": {
"end": 3310,
"name": "circle",
"start": 3304,
"type": "Identifier"
},
"end": 3373,
"start": 3304,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"end": 3376,
"start": 3375,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
"end": 3303,
"name": "hole",
"start": 3299,
"type": "Identifier"
},
"end": 3377,
"start": 3299,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 3397,
"name": "length",
"start": 3391,
"type": "Identifier"
},
"arg": {
"end": 3407,
"name": "cbDepth",
"start": 3400,
"type": "Identifier",
"type": "Identifier"
}
}
],
"callee": {
"end": 3390,
"name": "extrude",
"start": 3383,
"type": "Identifier"
},
"end": 3408,
"start": 3383,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
}
],
"end": 3408,
"start": 2217,
"type": "PipeExpression",
"type": "PipeExpression"
},
"start": 2204,
"type": "VariableDeclarator"
},
"end": 3408,
"kind": "const",
"start": 2204,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
}
],
"end": 3409,
"innerAttrs": [
{
"end": 595,
"name": {
"end": 571,
"name": "settings",
"start": 563,
"type": "Identifier"
},
"properties": [
{
"end": 594,
"key": {
"end": 589,
"name": "defaultLengthUnit",
"start": 572,
"type": "Identifier"
},
"start": 572,
"type": "ObjectProperty",
"value": {
"end": 594,
"name": "in",
"start": 592,
"type": "Identifier",
"type": "Identifier"
}
}
],
"start": 562,
"type": "Annotation"
}
],
"nonCodeMeta": {
"nonCodeNodes": {
"7": [
{
"end": 932,
"start": 831,
"type": "NonCodeNode",
"value": {
"type": "newLineBlockComment",
"value": "(Needs to be updated). Sketch the block and extrude up to where the counterbore diameter starts.",
"style": "line"
}
}
]
},
"startNodes": [
{
"end": 36,
"start": 0,
"type": "NonCodeNode",
"value": {
"type": "blockComment",
"value": "A Parametric Bearing Pillow Block",
"style": "line"
}
},
{
"end": 547,
"start": 37,
"type": "NonCodeNode",
"value": {
"type": "blockComment",
"value": "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.",
"style": "line"
}
},
{
"end": 549,
"start": 547,
"type": "NonCodeNode",
"value": {
"type": "newLine"
}
},
{
"end": 561,
"start": 549,
"type": "NonCodeNode",
"value": {
"type": "blockComment",
"value": "Set units",
"style": "line"
}
},
{
"end": 597,
"start": 595,
"type": "NonCodeNode",
"value": {
"type": "newLine"
}
},
{
"end": 730,
"start": 597,
"type": "NonCodeNode",
"value": {
"type": "blockComment",
"value": "Define constants such as length, width, height, counter-bore depth and diameter, bearing diameter, hole location padding, and more",
"style": "line"
}
}
]
},
"start": 0
}
}