Files
modeling-app/rust/kcl-lib/tests/kcl_samples/pipe-flange-assembly/ast.snap

8930 lines
324 KiB
Plaintext
Raw Normal View History

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
---
source: kcl-lib/src/simulation_tests.rs
description: Result of parsing pipe-flange-assembly.kcl
---
{
"Ok": {
"body": [
{
"declaration": {
"end": 424,
"id": {
"end": 417,
"name": "flangeThickness",
"start": 402,
"type": "Identifier"
},
"init": {
"end": 424,
"raw": ".125",
"start": 420,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.125,
"suffix": "None"
}
},
"start": 402,
"type": "VariableDeclarator"
},
"end": 424,
"kind": "const",
"start": 402,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 442,
"id": {
"end": 438,
"name": "flangeBaseDia",
"start": 425,
"type": "Identifier"
},
"init": {
"end": 442,
"raw": "2",
"start": 441,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 425,
"type": "VariableDeclarator"
},
"end": 442,
"kind": "const",
"start": 425,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 457,
"id": {
"end": 453,
"name": "boreHeight",
"start": 443,
"type": "Identifier"
},
"init": {
"end": 457,
"raw": "1",
"start": 456,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.0,
"suffix": "None"
}
},
"start": 443,
"type": "VariableDeclarator"
},
"end": 457,
"kind": "const",
"start": 443,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 475,
"id": {
"end": 471,
"name": "flangePipeDia",
"start": 458,
"type": "Identifier"
},
"init": {
"end": 475,
"raw": "1",
"start": 474,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.0,
"suffix": "None"
}
},
"start": 458,
"type": "VariableDeclarator"
},
"end": 475,
"kind": "const",
"start": 458,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 499,
"id": {
"end": 491,
"name": "mountingHoleDia",
"start": 476,
"type": "Identifier"
},
"init": {
"end": 499,
"raw": "0.425",
"start": 494,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.425,
"suffix": "None"
}
},
"start": 476,
"type": "VariableDeclarator"
},
"end": 499,
"kind": "const",
"start": 476,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 516,
"id": {
"end": 508,
"name": "screwDia",
"start": 500,
"type": "Identifier"
},
"init": {
"end": 516,
"raw": "0.375",
"start": 511,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.375,
"suffix": "None"
}
},
"start": 500,
"type": "VariableDeclarator"
},
"end": 516,
"kind": "const",
"start": 500,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 528,
"id": {
"end": 520,
"name": "tol",
"start": 517,
"type": "Identifier"
},
"init": {
"end": 528,
"raw": "0.010",
"start": 523,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.01,
"suffix": "None"
}
},
"start": 517,
"type": "VariableDeclarator"
},
"end": 528,
"kind": "const",
"start": 517,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 547,
"id": {
"end": 540,
"name": "hexNutScale",
"start": 529,
"type": "Identifier"
},
"init": {
"end": 547,
"raw": "0.90",
"start": 543,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.9,
"suffix": "None"
}
},
"start": 529,
"type": "VariableDeclarator"
},
"end": 547,
"kind": "const",
"start": 529,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 567,
"id": {
"end": 561,
"name": "wallThickness",
"start": 548,
"type": "Identifier"
},
"init": {
"end": 567,
"raw": "0.5",
"start": 564,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.5,
"suffix": "None"
}
},
"start": 548,
"type": "VariableDeclarator"
},
"end": 567,
"kind": "const",
"start": 548,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 587,
"id": {
"end": 579,
"name": "screwLength",
"start": 568,
"type": "Identifier"
},
"init": {
"end": 587,
"raw": "1.125",
"start": 582,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.125,
"suffix": "None"
}
},
"start": 568,
"type": "VariableDeclarator"
},
"end": 587,
"kind": "const",
"start": 568,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 612,
"id": {
"end": 603,
"name": "washerThickness",
"start": 588,
"type": "Identifier"
},
"init": {
"end": 612,
"raw": "0.0625",
"start": 606,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0625,
"suffix": "None"
}
},
"start": 588,
"type": "VariableDeclarator"
},
"end": 612,
"kind": "const",
"start": 588,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 679,
"id": {
"end": 623,
"name": "screwStart",
"start": 613,
"type": "Identifier"
},
"init": {
"elements": [
{
"end": 631,
"raw": "0",
"start": 630,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"end": 668,
"left": {
"end": 650,
"name": "flangeThickness",
"start": 635,
"type": "Identifier",
"type": "Identifier"
},
"operator": "+",
"right": {
"end": 668,
"name": "washerThickness",
"start": 653,
"type": "Identifier",
"type": "Identifier"
},
"start": 635,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
{
"end": 677,
"raw": "1.375",
"start": 672,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.375,
"suffix": "None"
}
}
],
"end": 679,
"start": 626,
"type": "ArrayExpression",
"type": "ArrayExpression"
},
"start": 613,
"type": "VariableDeclarator"
},
"end": 679,
"kind": "const",
"start": 613,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 702,
"id": {
"end": 688,
"name": "capRatio",
"start": 680,
"type": "Identifier"
},
"init": {
"end": 702,
"left": {
"end": 695,
"raw": ".190",
"start": 691,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.19,
"suffix": "None"
}
},
"operator": "/",
"right": {
"end": 702,
"raw": ".313",
"start": 698,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.313,
"suffix": "None"
}
},
"start": 691,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"start": 680,
"type": "VariableDeclarator"
},
"end": 702,
"kind": "const",
"start": 680,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 763,
"id": {
"end": 747,
"name": "hexRatio",
"start": 739,
"type": "Identifier"
},
"init": {
"end": 763,
"left": {
"end": 756,
"left": {
"end": 751,
"raw": "5",
"start": 750,
"type": "Literal",
"type": "Literal",
"value": {
"value": 5.0,
"suffix": "None"
}
},
"operator": "/",
"right": {
"end": 756,
"raw": "32",
"start": 754,
"type": "Literal",
"type": "Literal",
"value": {
"value": 32.0,
"suffix": "None"
}
},
"start": 750,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"operator": "/",
"right": {
"end": 763,
"raw": ".190",
"start": 759,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.19,
"suffix": "None"
}
},
"start": 750,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"start": 739,
"type": "VariableDeclarator"
},
"end": 763,
"kind": "const",
"start": 739,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 822,
"id": {
"end": 816,
"name": "hexStartingAngle",
"start": 800,
"type": "Identifier"
},
"init": {
"end": 822,
"raw": "210",
"start": 819,
"type": "Literal",
"type": "Literal",
"value": {
"value": 210.0,
"suffix": "None"
}
},
"start": 800,
"type": "VariableDeclarator"
},
"end": 822,
"kind": "const",
"start": 800,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 885,
"id": {
"end": 879,
"name": "hexInteriorAngle",
"start": 863,
"type": "Identifier"
},
"init": {
"end": 885,
"raw": "120",
"start": 882,
"type": "Literal",
"type": "Literal",
"value": {
"value": 120.0,
"suffix": "None"
}
},
"start": 863,
"type": "VariableDeclarator"
},
"end": 885,
"kind": "const",
"start": 863,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 936,
"id": {
"end": 911,
"name": "hexChangeAngle",
"start": 897,
"type": "Identifier"
},
"init": {
"end": 936,
"left": {
"end": 917,
"raw": "180",
"start": 914,
"type": "Literal",
"type": "Literal",
"value": {
"value": 180.0,
"suffix": "None"
}
},
"operator": "-",
"right": {
"end": 936,
"name": "hexInteriorAngle",
"start": 920,
"type": "Identifier",
"type": "Identifier"
},
"start": 914,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"start": 897,
"type": "VariableDeclarator"
},
"end": 936,
"kind": "const",
"start": 897,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 1188,
"id": {
"end": 960,
"name": "screwPlane",
"start": 950,
"type": "Identifier"
},
"init": {
"end": 1188,
"properties": [
{
"end": 1186,
"key": {
"end": 972,
"name": "plane",
"start": 967,
"type": "Identifier"
},
"start": 967,
"type": "ObjectProperty",
"value": {
"end": 1186,
"properties": [
{
"end": 1071,
"key": {
"end": 987,
"name": "origin",
"start": 981,
"type": "Identifier"
},
"start": 981,
"type": "ObjectProperty",
"value": {
"end": 1071,
"properties": [
{
"end": 1015,
"key": {
"end": 999,
"name": "x",
"start": 998,
"type": "Identifier"
},
"start": 998,
"type": "ObjectProperty",
"value": {
"computed": false,
"end": 1015,
"object": {
"end": 1012,
"name": "screwStart",
"start": 1002,
"type": "Identifier",
"type": "Identifier"
},
"property": {
"end": 1014,
"raw": "0",
"start": 1013,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
"start": 1002,
"type": "MemberExpression",
"type": "MemberExpression"
}
},
{
"end": 1040,
"key": {
"end": 1024,
"name": "y",
"start": 1023,
"type": "Identifier"
},
"start": 1023,
"type": "ObjectProperty",
"value": {
"computed": false,
"end": 1040,
"object": {
"end": 1037,
"name": "screwStart",
"start": 1027,
"type": "Identifier",
"type": "Identifier"
},
"property": {
"end": 1039,
"raw": "1",
"start": 1038,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.0,
"suffix": "None"
}
},
"start": 1027,
"type": "MemberExpression",
"type": "MemberExpression"
}
},
{
"end": 1065,
"key": {
"end": 1049,
"name": "z",
"start": 1048,
"type": "Identifier"
},
"start": 1048,
"type": "ObjectProperty",
"value": {
"computed": false,
"end": 1065,
"object": {
"end": 1062,
"name": "screwStart",
"start": 1052,
"type": "Identifier",
"type": "Identifier"
},
"property": {
"end": 1064,
"raw": "2",
"start": 1063,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 1052,
"type": "MemberExpression",
"type": "MemberExpression"
}
}
],
"start": 990,
"type": "ObjectExpression",
"type": "ObjectExpression"
}
},
{
"end": 1108,
"key": {
"end": 1082,
"name": "xAxis",
"start": 1077,
"type": "Identifier"
},
"start": 1077,
"type": "ObjectProperty",
"value": {
"end": 1108,
"properties": [
{
"end": 1092,
"key": {
"end": 1088,
"name": "x",
"start": 1087,
"type": "Identifier"
},
"start": 1087,
"type": "ObjectProperty",
"value": {
"end": 1092,
"raw": "1",
"start": 1091,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.0,
"suffix": "None"
}
}
},
{
"end": 1099,
"key": {
"end": 1095,
"name": "y",
"start": 1094,
"type": "Identifier"
},
"start": 1094,
"type": "ObjectProperty",
"value": {
"end": 1099,
"raw": "0",
"start": 1098,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
},
{
"end": 1106,
"key": {
"end": 1102,
"name": "z",
"start": 1101,
"type": "Identifier"
},
"start": 1101,
"type": "ObjectProperty",
"value": {
"end": 1106,
"raw": "0",
"start": 1105,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
}
],
"start": 1085,
"type": "ObjectExpression",
"type": "ObjectExpression"
}
},
{
"end": 1145,
"key": {
"end": 1119,
"name": "yAxis",
"start": 1114,
"type": "Identifier"
},
"start": 1114,
"type": "ObjectProperty",
"value": {
"end": 1145,
"properties": [
{
"end": 1129,
"key": {
"end": 1125,
"name": "x",
"start": 1124,
"type": "Identifier"
},
"start": 1124,
"type": "ObjectProperty",
"value": {
"end": 1129,
"raw": "0",
"start": 1128,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
},
{
"end": 1136,
"key": {
"end": 1132,
"name": "y",
"start": 1131,
"type": "Identifier"
},
"start": 1131,
"type": "ObjectProperty",
"value": {
"end": 1136,
"raw": "0",
"start": 1135,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
},
{
"end": 1143,
"key": {
"end": 1139,
"name": "z",
"start": 1138,
"type": "Identifier"
},
"start": 1138,
"type": "ObjectProperty",
"value": {
"end": 1143,
"raw": "1",
"start": 1142,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.0,
"suffix": "None"
}
}
}
],
"start": 1122,
"type": "ObjectExpression",
"type": "ObjectExpression"
}
},
{
"end": 1182,
"key": {
"end": 1156,
"name": "zAxis",
"start": 1151,
"type": "Identifier"
},
"start": 1151,
"type": "ObjectProperty",
"value": {
"end": 1182,
"properties": [
{
"end": 1166,
"key": {
"end": 1162,
"name": "x",
"start": 1161,
"type": "Identifier"
},
"start": 1161,
"type": "ObjectProperty",
"value": {
"end": 1166,
"raw": "0",
"start": 1165,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
},
{
"end": 1173,
"key": {
"end": 1169,
"name": "y",
"start": 1168,
"type": "Identifier"
},
"start": 1168,
"type": "ObjectProperty",
"value": {
"end": 1173,
"raw": "1",
"start": 1172,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.0,
"suffix": "None"
}
}
},
{
"end": 1180,
"key": {
"end": 1176,
"name": "z",
"start": 1175,
"type": "Identifier"
},
"start": 1175,
"type": "ObjectProperty",
"value": {
"end": 1180,
"raw": "0",
"start": 1179,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
}
],
"start": 1159,
"type": "ObjectExpression",
"type": "ObjectExpression"
}
}
],
"start": 975,
"type": "ObjectExpression",
"type": "ObjectExpression"
}
}
],
"start": 963,
"type": "ObjectExpression",
"type": "ObjectExpression"
},
"start": 950,
"type": "VariableDeclarator"
},
"end": 1188,
"kind": "const",
"start": 950,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 2657,
"id": {
"end": 1201,
"name": "capScrew",
"start": 1193,
"type": "Identifier"
},
"init": {
"body": {
"body": [
{
"declaration": {
"end": 1242,
"id": {
"end": 1236,
"name": "headLength",
"start": 1226,
"type": "Identifier"
},
"init": {
"end": 1242,
"name": "dia",
"start": 1239,
"type": "Identifier",
"type": "Identifier"
},
"start": 1226,
"type": "VariableDeclarator"
},
"end": 1242,
"kind": "const",
"start": 1226,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 1286,
"id": {
"end": 1269,
"name": "wallToWallLength",
"start": 1253,
"type": "Identifier"
},
"init": {
"end": 1286,
"left": {
"end": 1280,
"name": "hexRatio",
"start": 1272,
"type": "Identifier",
"type": "Identifier"
},
"operator": "*",
"right": {
"end": 1286,
"name": "dia",
"start": 1283,
"type": "Identifier",
"type": "Identifier"
},
"start": 1272,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"start": 1253,
"type": "VariableDeclarator"
},
"end": 1286,
"kind": "const",
"start": 1253,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 1313,
"id": {
"end": 1296,
"name": "headDia",
"start": 1289,
"type": "Identifier"
},
"init": {
"end": 1313,
"left": {
"end": 1302,
"name": "dia",
"start": 1299,
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
"end": 1313,
"name": "capRatio",
"start": 1305,
"type": "Identifier",
"type": "Identifier"
},
"start": 1299,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"start": 1289,
"type": "VariableDeclarator"
},
"end": 1313,
"kind": "const",
"start": 1289,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 1377,
"id": {
"end": 1329,
"name": "hexWallLength",
"start": 1316,
"type": "Identifier"
},
"init": {
"end": 1377,
"left": {
"end": 1356,
"left": {
"end": 1352,
"left": {
"end": 1348,
"name": "wallToWallLength",
"start": 1332,
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
"end": 1352,
"raw": "2",
"start": 1351,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 1332,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"operator": "*",
"right": {
"end": 1356,
"raw": "1",
"start": 1355,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.0,
"suffix": "None"
}
},
"start": 1332,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"operator": "/",
"right": {
"arguments": [
{
"arguments": [
{
"end": 1375,
"raw": "30",
"start": 1373,
"type": "Literal",
"type": "Literal",
"value": {
"value": 30.0,
"suffix": "None"
}
}
],
"callee": {
"end": 1372,
"name": "toRadians",
"start": 1363,
"type": "Identifier"
},
"end": 1376,
"start": 1363,
"type": "CallExpression",
"type": "CallExpression"
}
],
"callee": {
"end": 1362,
"name": "cos",
"start": 1359,
"type": "Identifier"
},
"end": 1377,
"start": 1359,
"type": "CallExpression",
"type": "CallExpression"
},
"start": 1332,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"start": 1316,
"type": "VariableDeclarator"
},
"end": 1377,
"kind": "const",
"start": 1316,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 1461,
"id": {
"end": 1455,
"name": "capHeadLength",
"start": 1442,
"type": "Identifier"
},
"init": {
"end": 1461,
"name": "dia",
"start": 1458,
"type": "Identifier",
"type": "Identifier"
},
"start": 1442,
"type": "VariableDeclarator"
},
"end": 1461,
"kind": "const",
"start": 1442,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 1662,
"id": {
"end": 1518,
"name": "screwHeadSketch",
"start": 1503,
"type": "Identifier"
},
"init": {
"body": [
{
"arguments": [
{
"end": 1545,
"name": "screwPlane",
"start": 1535,
"type": "Identifier",
"type": "Identifier"
}
],
"callee": {
"end": 1534,
"name": "startSketchOn",
"start": 1521,
"type": "Identifier"
},
"end": 1546,
"start": 1521,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 1577,
"name": "center",
"start": 1571,
"type": "Identifier"
},
"arg": {
"elements": [
{
"end": 1582,
"raw": "0",
"start": 1581,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"end": 1585,
"raw": "0",
"start": 1584,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
],
"end": 1586,
"start": 1580,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
},
{
"type": "LabeledArg",
"label": {
"end": 1603,
"name": "radius",
"start": 1597,
"type": "Identifier"
},
"arg": {
"end": 1617,
"left": {
"end": 1613,
"name": "headDia",
"start": 1606,
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
"end": 1617,
"raw": "2",
"start": 1616,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 1606,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
}
],
"callee": {
"end": 1560,
"name": "circle",
"start": 1554,
"type": "Identifier"
},
"end": 1626,
"start": 1554,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
}
],
"end": 1662,
"nonCodeMeta": {
"nonCodeNodes": {
"1": [
{
"end": 1662,
"start": 1628,
"type": "NonCodeNode",
"value": {
"type": "newLineBlockComment",
"value": "Extrude the screw head sketch",
"style": "line"
}
}
]
},
"startNodes": []
},
"start": 1521,
"type": "PipeExpression",
"type": "PipeExpression"
},
"start": 1503,
"type": "VariableDeclarator"
},
"end": 1662,
"kind": "const",
"start": 1503,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 1715,
"id": {
"end": 1674,
"name": "screwHead",
"start": 1665,
"type": "Identifier"
},
"init": {
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 1708,
"name": "length",
"start": 1702,
"type": "Identifier"
},
"arg": {
"end": 1714,
"name": "dia",
"start": 1711,
"type": "Identifier",
"type": "Identifier"
}
}
],
"callee": {
"end": 1684,
"name": "extrude",
"start": 1677,
"type": "Identifier"
},
"end": 1715,
"start": 1677,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": {
"end": 1700,
"name": "screwHeadSketch",
"start": 1685,
"type": "Identifier",
"type": "Identifier"
}
},
"start": 1665,
"type": "VariableDeclarator"
},
"end": 1715,
"kind": "const",
"start": 1665,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 2564,
"id": {
"end": 1795,
"name": "hexPatternSketch",
"start": 1779,
"type": "Identifier"
},
"init": {
"body": [
{
"arguments": [
{
"end": 1821,
"name": "screwHead",
"start": 1812,
"type": "Identifier",
"type": "Identifier"
},
{
"end": 1828,
"raw": "'end'",
"start": 1823,
"type": "Literal",
"type": "Literal",
"value": "end"
}
],
"callee": {
"end": 1811,
"name": "startSketchOn",
"start": 1798,
"type": "Identifier"
},
"end": 1829,
"start": 1798,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"elements": [
{
"end": 1895,
"left": {
"argument": {
"computed": false,
"end": 1872,
"object": {
"end": 1869,
"name": "start",
"start": 1864,
"type": "Identifier",
"type": "Identifier"
},
"property": {
"end": 1871,
"raw": "0",
"start": 1870,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
"start": 1864,
"type": "MemberExpression",
"type": "MemberExpression"
},
"end": 1872,
"operator": "-",
"start": 1863,
"type": "UnaryExpression",
"type": "UnaryExpression"
},
"operator": "+",
"right": {
"end": 1895,
"left": {
"end": 1891,
"name": "wallToWallLength",
"start": 1875,
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
"end": 1895,
"raw": "2",
"start": 1894,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 1875,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"start": 1863,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
{
"computed": false,
"end": 1914,
"object": {
"end": 1911,
"name": "start",
"start": 1906,
"type": "Identifier",
"type": "Identifier"
},
"property": {
"end": 1913,
"raw": "2",
"start": 1912,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 1906,
"type": "MemberExpression",
"type": "MemberExpression"
}
],
"end": 1923,
"start": 1852,
"type": "ArrayExpression",
"type": "ArrayExpression"
},
{
"end": 1926,
"start": 1925,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
"end": 1851,
"name": "startProfileAt",
"start": 1837,
"type": "Identifier"
},
"end": 1927,
"start": 1837,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"end": 1959,
"left": {
"argument": {
"end": 1955,
"name": "hexWallLength",
"start": 1942,
"type": "Identifier",
"type": "Identifier"
},
"end": 1955,
"operator": "-",
"start": 1941,
"type": "UnaryExpression",
"type": "UnaryExpression"
},
"operator": "/",
"right": {
"end": 1959,
"raw": "2",
"start": 1958,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 1941,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
{
"end": 1962,
"start": 1961,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
"end": 1940,
"name": "yLine",
"start": 1935,
"type": "Identifier"
},
"end": 1963,
"start": 1935,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"end": 2059,
"properties": [
{
"end": 2017,
"key": {
"end": 1998,
"name": "angle",
"start": 1993,
"type": "Identifier"
},
"start": 1993,
"type": "ObjectProperty",
"value": {
"end": 2017,
"name": "hexStartingAngle",
"start": 2001,
"type": "Identifier",
"type": "Identifier"
}
},
{
"end": 2050,
"key": {
"end": 2034,
"name": "length",
"start": 2028,
"type": "Identifier"
},
"start": 2028,
"type": "ObjectProperty",
"value": {
"end": 2050,
"name": "hexWallLength",
"start": 2037,
"type": "Identifier",
"type": "Identifier"
}
}
],
"start": 1982,
"type": "ObjectExpression",
"type": "ObjectExpression"
},
{
"end": 2062,
"start": 2061,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
"end": 1981,
"name": "angledLine",
"start": 1971,
"type": "Identifier"
},
"end": 2063,
"start": 1971,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"end": 2176,
"properties": [
{
"end": 2134,
"key": {
"end": 2098,
"name": "angle",
"start": 2093,
"type": "Identifier"
},
"start": 2093,
"type": "ObjectProperty",
"value": {
"end": 2134,
"left": {
"end": 2117,
"name": "hexStartingAngle",
"start": 2101,
"type": "Identifier",
"type": "Identifier"
},
"operator": "-",
"right": {
"end": 2134,
"name": "hexChangeAngle",
"start": 2120,
"type": "Identifier",
"type": "Identifier"
},
"start": 2101,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
},
{
"end": 2167,
"key": {
"end": 2151,
"name": "length",
"start": 2145,
"type": "Identifier"
},
"start": 2145,
"type": "ObjectProperty",
"value": {
"end": 2167,
"name": "hexWallLength",
"start": 2154,
"type": "Identifier",
"type": "Identifier"
}
}
],
"start": 2082,
"type": "ObjectExpression",
"type": "ObjectExpression"
},
{
"end": 2179,
"start": 2178,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
"end": 2081,
"name": "angledLine",
"start": 2071,
"type": "Identifier"
},
"end": 2180,
"start": 2071,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"end": 2299,
"properties": [
{
"end": 2256,
"key": {
"end": 2215,
"name": "angle",
"start": 2210,
"type": "Identifier"
},
"start": 2210,
"type": "ObjectProperty",
"value": {
"end": 2256,
"left": {
"end": 2234,
"name": "hexStartingAngle",
"start": 2218,
"type": "Identifier",
"type": "Identifier"
},
"operator": "-",
"right": {
"end": 2256,
"left": {
"end": 2239,
"raw": "2",
"start": 2238,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"operator": "*",
"right": {
"end": 2256,
"name": "hexChangeAngle",
"start": 2242,
"type": "Identifier",
"type": "Identifier"
},
"start": 2238,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"start": 2218,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
},
{
"end": 2290,
"key": {
"end": 2274,
"name": "length",
"start": 2268,
"type": "Identifier"
},
"start": 2268,
"type": "ObjectProperty",
"value": {
"end": 2290,
"name": "hexWallLength",
"start": 2277,
"type": "Identifier",
"type": "Identifier"
}
}
],
"start": 2199,
"type": "ObjectExpression",
"type": "ObjectExpression"
},
{
"end": 2302,
"start": 2301,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
"end": 2198,
"name": "angledLine",
"start": 2188,
"type": "Identifier"
},
"end": 2303,
"start": 2188,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"end": 2422,
"properties": [
{
"end": 2379,
"key": {
"end": 2338,
"name": "angle",
"start": 2333,
"type": "Identifier"
},
"start": 2333,
"type": "ObjectProperty",
"value": {
"end": 2379,
"left": {
"end": 2357,
"name": "hexStartingAngle",
"start": 2341,
"type": "Identifier",
"type": "Identifier"
},
"operator": "-",
"right": {
"end": 2379,
"left": {
"end": 2362,
"raw": "3",
"start": 2361,
"type": "Literal",
"type": "Literal",
"value": {
"value": 3.0,
"suffix": "None"
}
},
"operator": "*",
"right": {
"end": 2379,
"name": "hexChangeAngle",
"start": 2365,
"type": "Identifier",
"type": "Identifier"
},
"start": 2361,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"start": 2341,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
},
{
"end": 2413,
"key": {
"end": 2397,
"name": "length",
"start": 2391,
"type": "Identifier"
},
"start": 2391,
"type": "ObjectProperty",
"value": {
"end": 2413,
"name": "hexWallLength",
"start": 2400,
"type": "Identifier",
"type": "Identifier"
}
}
],
"start": 2322,
"type": "ObjectExpression",
"type": "ObjectExpression"
},
{
"end": 2425,
"start": 2424,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
"end": 2321,
"name": "angledLine",
"start": 2311,
"type": "Identifier"
},
"end": 2426,
"start": 2311,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"end": 2545,
"properties": [
{
"end": 2502,
"key": {
"end": 2461,
"name": "angle",
"start": 2456,
"type": "Identifier"
},
"start": 2456,
"type": "ObjectProperty",
"value": {
"end": 2502,
"left": {
"end": 2480,
"name": "hexStartingAngle",
"start": 2464,
"type": "Identifier",
"type": "Identifier"
},
"operator": "-",
"right": {
"end": 2502,
"left": {
"end": 2485,
"raw": "4",
"start": 2484,
"type": "Literal",
"type": "Literal",
"value": {
"value": 4.0,
"suffix": "None"
}
},
"operator": "*",
"right": {
"end": 2502,
"name": "hexChangeAngle",
"start": 2488,
"type": "Identifier",
"type": "Identifier"
},
"start": 2484,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"start": 2464,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
},
{
"end": 2536,
"key": {
"end": 2520,
"name": "length",
"start": 2514,
"type": "Identifier"
},
"start": 2514,
"type": "ObjectProperty",
"value": {
"end": 2536,
"name": "hexWallLength",
"start": 2523,
"type": "Identifier",
"type": "Identifier"
}
}
],
"start": 2445,
"type": "ObjectExpression",
"type": "ObjectExpression"
},
{
"end": 2548,
"start": 2547,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
"end": 2444,
"name": "angledLine",
"start": 2434,
"type": "Identifier"
},
"end": 2549,
"start": 2434,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [],
"callee": {
"end": 2562,
"name": "close",
"start": 2557,
"type": "Identifier"
},
"end": 2564,
"start": 2557,
"type": "CallExpression",
"type": "CallExpression"
}
],
"end": 2564,
"start": 1798,
"type": "PipeExpression",
"type": "PipeExpression"
},
"start": 1779,
"type": "VariableDeclarator"
},
"end": 2564,
"kind": "const",
"start": 1779,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 2634,
"id": {
"end": 2577,
"name": "hexPattern",
"start": 2567,
"type": "Identifier"
},
"init": {
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 2612,
"name": "length",
"start": 2606,
"type": "Identifier"
},
"arg": {
"end": 2633,
"left": {
"argument": {
"end": 2626,
"name": "headLength",
"start": 2616,
"type": "Identifier",
"type": "Identifier"
},
"end": 2626,
"operator": "-",
"start": 2615,
"type": "UnaryExpression",
"type": "UnaryExpression"
},
"operator": "*",
"right": {
"end": 2633,
"raw": "0.75",
"start": 2629,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.75,
"suffix": "None"
}
},
"start": 2615,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
}
],
"callee": {
"end": 2587,
"name": "extrude",
"start": 2580,
"type": "Identifier"
},
"end": 2634,
"start": 2580,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": {
"end": 2604,
"name": "hexPatternSketch",
"start": 2588,
"type": "Identifier",
"type": "Identifier"
}
},
"start": 2567,
"type": "VariableDeclarator"
},
"end": 2634,
"kind": "const",
"start": 2567,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"argument": {
"end": 2655,
"name": "hexPattern",
"start": 2645,
"type": "Identifier",
"type": "Identifier"
},
"end": 2655,
"start": 2638,
"type": "ReturnStatement",
"type": "ReturnStatement"
}
],
"end": 2657,
"nonCodeMeta": {
"nonCodeNodes": {
"0": [
{
"end": 1250,
"start": 1242,
"type": "NonCodeNode",
"value": {
"type": "inlineComment",
"value": "inch",
"style": "line"
}
}
],
"3": [
{
"end": 1385,
"start": 1377,
"type": "NonCodeNode",
"value": {
"type": "inlineComment",
"value": "inch",
"style": "line"
}
},
{
"end": 1390,
"start": 1385,
"type": "NonCodeNode",
"value": {
"type": "newLine"
}
},
{
"end": 1439,
"start": 1390,
"type": "NonCodeNode",
"value": {
"type": "blockComment",
"value": "Length of Cap Head is always equal to diameter",
"style": "line"
}
}
],
"4": [
{
"end": 1500,
"start": 1463,
"type": "NonCodeNode",
"value": {
"type": "newLineBlockComment",
"value": "Create the head of the cap screw",
"style": "line"
}
}
],
"6": [
{
"end": 1776,
"start": 1717,
"type": "NonCodeNode",
"value": {
"type": "newLineBlockComment",
"value": "Define the sketch of the hex pattern on the screw head",
"style": "line"
}
}
],
"8": [
{
"end": 2638,
"start": 2634,
"type": "NonCodeNode",
"value": {
"type": "newLine"
}
}
]
},
"startNodes": []
},
"start": 1222
},
"end": 2657,
"params": [
{
"type": "Parameter",
"identifier": {
"end": 1207,
"name": "start",
"start": 1202,
"type": "Identifier"
}
},
{
"type": "Parameter",
"identifier": {
"end": 1215,
"name": "length",
"start": 1209,
"type": "Identifier"
}
},
{
"type": "Parameter",
"identifier": {
"end": 1220,
"name": "dia",
"start": 1217,
"type": "Identifier"
}
}
],
"start": 1201,
"type": "FunctionExpression",
"type": "FunctionExpression"
},
"start": 1193,
"type": "VariableDeclarator"
},
"end": 2657,
"kind": "fn",
"start": 1190,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 2855,
"id": {
"end": 2671,
"name": "workingPlane",
"start": 2659,
"type": "Identifier"
},
"init": {
"end": 2855,
"properties": [
{
"end": 2853,
"key": {
"end": 2683,
"name": "plane",
"start": 2678,
"type": "Identifier"
},
"start": 2678,
"type": "ObjectProperty",
"value": {
"end": 2853,
"properties": [
{
"end": 2738,
"key": {
"end": 2698,
"name": "origin",
"start": 2692,
"type": "Identifier"
},
"start": 2692,
"type": "ObjectProperty",
"value": {
"end": 2738,
"properties": [
{
"end": 2708,
"key": {
"end": 2704,
"name": "x",
"start": 2703,
"type": "Identifier"
},
"start": 2703,
"type": "ObjectProperty",
"value": {
"end": 2708,
"raw": "0",
"start": 2707,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
},
{
"end": 2729,
"key": {
"end": 2711,
"name": "y",
"start": 2710,
"type": "Identifier"
},
"start": 2710,
"type": "ObjectProperty",
"value": {
"end": 2729,
"name": "flangeThickness",
"start": 2714,
"type": "Identifier",
"type": "Identifier"
}
},
{
"end": 2736,
"key": {
"end": 2732,
"name": "z",
"start": 2731,
"type": "Identifier"
},
"start": 2731,
"type": "ObjectProperty",
"value": {
"end": 2736,
"raw": "0",
"start": 2735,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
}
],
"start": 2701,
"type": "ObjectExpression",
"type": "ObjectExpression"
}
},
{
"end": 2775,
"key": {
"end": 2749,
"name": "xAxis",
"start": 2744,
"type": "Identifier"
},
"start": 2744,
"type": "ObjectProperty",
"value": {
"end": 2775,
"properties": [
{
"end": 2759,
"key": {
"end": 2755,
"name": "x",
"start": 2754,
"type": "Identifier"
},
"start": 2754,
"type": "ObjectProperty",
"value": {
"end": 2759,
"raw": "0",
"start": 2758,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
},
{
"end": 2766,
"key": {
"end": 2762,
"name": "y",
"start": 2761,
"type": "Identifier"
},
"start": 2761,
"type": "ObjectProperty",
"value": {
"end": 2766,
"raw": "0",
"start": 2765,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
},
{
"end": 2773,
"key": {
"end": 2769,
"name": "z",
"start": 2768,
"type": "Identifier"
},
"start": 2768,
"type": "ObjectProperty",
"value": {
"end": 2773,
"raw": "1",
"start": 2772,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.0,
"suffix": "None"
}
}
}
],
"start": 2752,
"type": "ObjectExpression",
"type": "ObjectExpression"
}
},
{
"end": 2812,
"key": {
"end": 2786,
"name": "yAxis",
"start": 2781,
"type": "Identifier"
},
"start": 2781,
"type": "ObjectProperty",
"value": {
"end": 2812,
"properties": [
{
"end": 2796,
"key": {
"end": 2792,
"name": "x",
"start": 2791,
"type": "Identifier"
},
"start": 2791,
"type": "ObjectProperty",
"value": {
"end": 2796,
"raw": "1",
"start": 2795,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.0,
"suffix": "None"
}
}
},
{
"end": 2803,
"key": {
"end": 2799,
"name": "y",
"start": 2798,
"type": "Identifier"
},
"start": 2798,
"type": "ObjectProperty",
"value": {
"end": 2803,
"raw": "0",
"start": 2802,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
},
{
"end": 2810,
"key": {
"end": 2806,
"name": "z",
"start": 2805,
"type": "Identifier"
},
"start": 2805,
"type": "ObjectProperty",
"value": {
"end": 2810,
"raw": "0",
"start": 2809,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
}
],
"start": 2789,
"type": "ObjectExpression",
"type": "ObjectExpression"
}
},
{
"end": 2849,
"key": {
"end": 2823,
"name": "zAxis",
"start": 2818,
"type": "Identifier"
},
"start": 2818,
"type": "ObjectProperty",
"value": {
"end": 2849,
"properties": [
{
"end": 2833,
"key": {
"end": 2829,
"name": "x",
"start": 2828,
"type": "Identifier"
},
"start": 2828,
"type": "ObjectProperty",
"value": {
"end": 2833,
"raw": "0",
"start": 2832,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
},
{
"end": 2840,
"key": {
"end": 2836,
"name": "y",
"start": 2835,
"type": "Identifier"
},
"start": 2835,
"type": "ObjectProperty",
"value": {
"end": 2840,
"raw": "1",
"start": 2839,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.0,
"suffix": "None"
}
}
},
{
"end": 2847,
"key": {
"end": 2843,
"name": "z",
"start": 2842,
"type": "Identifier"
},
"start": 2842,
"type": "ObjectProperty",
"value": {
"end": 2847,
"raw": "0",
"start": 2846,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
}
],
"start": 2826,
"type": "ObjectExpression",
"type": "ObjectExpression"
}
}
],
"start": 2686,
"type": "ObjectExpression",
"type": "ObjectExpression"
}
}
],
"start": 2674,
"type": "ObjectExpression",
"type": "ObjectExpression"
},
"start": 2659,
"type": "VariableDeclarator"
},
"end": 2855,
"kind": "const",
"start": 2659,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 3216,
"id": {
"end": 2885,
"name": "washer",
"start": 2879,
"type": "Identifier"
},
"init": {
"body": {
"body": [
{
"declaration": {
"end": 3192,
"id": {
"end": 2941,
"name": "washerSketch",
"start": 2929,
"type": "Identifier"
},
"init": {
"body": [
{
"arguments": [
{
"end": 2963,
"name": "plane",
"start": 2958,
"type": "Identifier",
"type": "Identifier"
}
],
"callee": {
"end": 2957,
"name": "startSketchOn",
"start": 2944,
"type": "Identifier"
},
"end": 2964,
"start": 2944,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 2995,
"name": "center",
"start": 2989,
"type": "Identifier"
},
"arg": {
"elements": [
{
"computed": false,
"end": 3007,
"object": {
"end": 3004,
"name": "start",
"start": 2999,
"type": "Identifier",
"type": "Identifier"
},
"property": {
"end": 3006,
"raw": "0",
"start": 3005,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
"start": 2999,
"type": "MemberExpression",
"type": "MemberExpression"
},
{
"computed": false,
"end": 3017,
"object": {
"end": 3014,
"name": "start",
"start": 3009,
"type": "Identifier",
"type": "Identifier"
},
"property": {
"end": 3016,
"raw": "1",
"start": 3015,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.0,
"suffix": "None"
}
},
"start": 3009,
"type": "MemberExpression",
"type": "MemberExpression"
}
],
"end": 3018,
"start": 2998,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
},
{
"type": "LabeledArg",
"label": {
"end": 3035,
"name": "radius",
"start": 3029,
"type": "Identifier"
},
"arg": {
"end": 3050,
"left": {
"end": 3046,
"name": "outerDia",
"start": 3038,
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
"end": 3050,
"raw": "2",
"start": 3049,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 3038,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
}
],
"callee": {
"end": 2978,
"name": "circle",
"start": 2972,
"type": "Identifier"
},
"end": 3059,
"start": 2972,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 3095,
"name": "center",
"start": 3089,
"type": "Identifier"
},
"arg": {
"elements": [
{
"computed": false,
"end": 3107,
"object": {
"end": 3104,
"name": "start",
"start": 3099,
"type": "Identifier",
"type": "Identifier"
},
"property": {
"end": 3106,
"raw": "0",
"start": 3105,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
"start": 3099,
"type": "MemberExpression",
"type": "MemberExpression"
},
{
"computed": false,
"end": 3117,
"object": {
"end": 3114,
"name": "start",
"start": 3109,
"type": "Identifier",
"type": "Identifier"
},
"property": {
"end": 3116,
"raw": "1",
"start": 3115,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.0,
"suffix": "None"
}
},
"start": 3109,
"type": "MemberExpression",
"type": "MemberExpression"
}
],
"end": 3118,
"start": 3098,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
},
{
"type": "LabeledArg",
"label": {
"end": 3135,
"name": "radius",
"start": 3129,
"type": "Identifier"
},
"arg": {
"end": 3150,
"left": {
"end": 3146,
"name": "innerDia",
"start": 3138,
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
"end": 3150,
"raw": "2",
"start": 3149,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 3138,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
}
],
"callee": {
"end": 3078,
"name": "circle",
"start": 3072,
"type": "Identifier"
},
"end": 3159,
"start": 3072,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"end": 3162,
"start": 3161,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
"end": 3071,
"name": "hole",
"start": 3067,
"type": "Identifier"
},
"end": 3163,
"start": 3067,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 3185,
"name": "length",
"start": 3179,
"type": "Identifier"
},
"arg": {
"end": 3191,
"name": "thk",
"start": 3188,
"type": "Identifier",
"type": "Identifier"
}
}
],
"callee": {
"end": 3178,
"name": "extrude",
"start": 3171,
"type": "Identifier"
},
"end": 3192,
"start": 3171,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
}
],
"end": 3192,
"start": 2944,
"type": "PipeExpression",
"type": "PipeExpression"
},
"start": 2929,
"type": "VariableDeclarator"
},
"end": 3192,
"kind": "const",
"start": 2929,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"argument": {
"end": 3214,
"name": "washerSketch",
"start": 3202,
"type": "Identifier",
"type": "Identifier"
},
"end": 3214,
"start": 3195,
"type": "ReturnStatement",
"type": "ReturnStatement"
}
],
"end": 3216,
"start": 2925
},
"end": 3216,
"params": [
{
"type": "Parameter",
"identifier": {
"end": 2891,
"name": "plane",
"start": 2886,
"type": "Identifier"
}
},
{
"type": "Parameter",
"identifier": {
"end": 2898,
"name": "start",
"start": 2893,
"type": "Identifier"
}
},
{
"type": "Parameter",
"identifier": {
"end": 2903,
"name": "thk",
"start": 2900,
"type": "Identifier"
}
},
{
"type": "Parameter",
"identifier": {
"end": 2913,
"name": "innerDia",
"start": 2905,
"type": "Identifier"
}
},
{
"type": "Parameter",
"identifier": {
"end": 2923,
"name": "outerDia",
"start": 2915,
"type": "Identifier"
}
}
],
"start": 2885,
"type": "FunctionExpression",
"type": "FunctionExpression"
},
"start": 2879,
"type": "VariableDeclarator"
},
"end": 3216,
"kind": "fn",
"start": 2876,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 4276,
"id": {
"end": 3247,
"name": "hexNut",
"start": 3241,
"type": "Identifier"
},
"init": {
"body": {
"body": [
{
"declaration": {
"end": 4252,
"id": {
"end": 3286,
"name": "hexNutSketch",
"start": 3274,
"type": "Identifier"
},
"init": {
"body": [
{
"arguments": [
{
"end": 3614,
"properties": [
{
"end": 3605,
"key": {
"end": 3319,
"name": "plane",
"start": 3314,
"type": "Identifier"
},
"start": 3314,
"type": "ObjectProperty",
"value": {
"end": 3605,
"properties": [
{
"end": 3462,
"key": {
"end": 3341,
"name": "origin",
"start": 3335,
"type": "Identifier"
},
"start": 3335,
"type": "ObjectProperty",
"value": {
"end": 3462,
"properties": [
{
"end": 3371,
"key": {
"end": 3360,
"name": "x",
"start": 3359,
"type": "Identifier"
},
"start": 3359,
"type": "ObjectProperty",
"value": {
"computed": false,
"end": 3371,
"object": {
"end": 3368,
"name": "start",
"start": 3363,
"type": "Identifier",
"type": "Identifier"
},
"property": {
"end": 3370,
"raw": "0",
"start": 3369,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
"start": 3363,
"type": "MemberExpression",
"type": "MemberExpression"
}
},
{
"end": 3422,
"key": {
"end": 3387,
"name": "y",
"start": 3386,
"type": "Identifier"
},
"start": 3386,
"type": "ObjectProperty",
"value": {
"end": 3422,
"left": {
"argument": {
"end": 3404,
"name": "wallThickness",
"start": 3391,
"type": "Identifier",
"type": "Identifier"
},
"end": 3404,
"operator": "-",
"start": 3390,
"type": "UnaryExpression",
"type": "UnaryExpression"
},
"operator": "-",
"right": {
"end": 3422,
"name": "washerThickness",
"start": 3407,
"type": "Identifier",
"type": "Identifier"
},
"start": 3390,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
},
{
"end": 3449,
"key": {
"end": 3438,
"name": "z",
"start": 3437,
"type": "Identifier"
},
"start": 3437,
"type": "ObjectProperty",
"value": {
"computed": false,
"end": 3449,
"object": {
"end": 3446,
"name": "start",
"start": 3441,
"type": "Identifier",
"type": "Identifier"
},
"property": {
"end": 3448,
"raw": "2",
"start": 3447,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 3441,
"type": "MemberExpression",
"type": "MemberExpression"
}
}
],
"start": 3344,
"type": "ObjectExpression",
"type": "ObjectExpression"
}
},
{
"end": 3506,
"key": {
"end": 3480,
"name": "xAxis",
"start": 3475,
"type": "Identifier"
},
"start": 3475,
"type": "ObjectProperty",
"value": {
"end": 3506,
"properties": [
{
"end": 3490,
"key": {
"end": 3486,
"name": "x",
"start": 3485,
"type": "Identifier"
},
"start": 3485,
"type": "ObjectProperty",
"value": {
"end": 3490,
"raw": "1",
"start": 3489,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.0,
"suffix": "None"
}
}
},
{
"end": 3497,
"key": {
"end": 3493,
"name": "y",
"start": 3492,
"type": "Identifier"
},
"start": 3492,
"type": "ObjectProperty",
"value": {
"end": 3497,
"raw": "0",
"start": 3496,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
},
{
"end": 3504,
"key": {
"end": 3500,
"name": "z",
"start": 3499,
"type": "Identifier"
},
"start": 3499,
"type": "ObjectProperty",
"value": {
"end": 3504,
"raw": "0",
"start": 3503,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
}
],
"start": 3483,
"type": "ObjectExpression",
"type": "ObjectExpression"
}
},
{
"end": 3550,
"key": {
"end": 3524,
"name": "yAxis",
"start": 3519,
"type": "Identifier"
},
"start": 3519,
"type": "ObjectProperty",
"value": {
"end": 3550,
"properties": [
{
"end": 3534,
"key": {
"end": 3530,
"name": "x",
"start": 3529,
"type": "Identifier"
},
"start": 3529,
"type": "ObjectProperty",
"value": {
"end": 3534,
"raw": "0",
"start": 3533,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
},
{
"end": 3541,
"key": {
"end": 3537,
"name": "y",
"start": 3536,
"type": "Identifier"
},
"start": 3536,
"type": "ObjectProperty",
"value": {
"end": 3541,
"raw": "0",
"start": 3540,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
},
{
"end": 3548,
"key": {
"end": 3544,
"name": "z",
"start": 3543,
"type": "Identifier"
},
"start": 3543,
"type": "ObjectProperty",
"value": {
"end": 3548,
"raw": "1",
"start": 3547,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.0,
"suffix": "None"
}
}
}
],
"start": 3527,
"type": "ObjectExpression",
"type": "ObjectExpression"
}
},
{
"end": 3594,
"key": {
"end": 3568,
"name": "zAxis",
"start": 3563,
"type": "Identifier"
},
"start": 3563,
"type": "ObjectProperty",
"value": {
"end": 3594,
"properties": [
{
"end": 3578,
"key": {
"end": 3574,
"name": "x",
"start": 3573,
"type": "Identifier"
},
"start": 3573,
"type": "ObjectProperty",
"value": {
"end": 3578,
"raw": "0",
"start": 3577,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
},
{
"end": 3585,
"key": {
"end": 3581,
"name": "y",
"start": 3580,
"type": "Identifier"
},
"start": 3580,
"type": "ObjectProperty",
"value": {
"end": 3585,
"raw": "1",
"start": 3584,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.0,
"suffix": "None"
}
}
},
{
"end": 3592,
"key": {
"end": 3588,
"name": "z",
"start": 3587,
"type": "Identifier"
},
"start": 3587,
"type": "ObjectProperty",
"value": {
"end": 3592,
"raw": "0",
"start": 3591,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
}
],
"start": 3571,
"type": "ObjectExpression",
"type": "ObjectExpression"
}
}
],
"start": 3322,
"type": "ObjectExpression",
"type": "ObjectExpression"
}
}
],
"start": 3303,
"type": "ObjectExpression",
"type": "ObjectExpression"
}
],
"callee": {
"end": 3302,
"name": "startSketchOn",
"start": 3289,
"type": "Identifier"
},
"end": 3615,
"start": 3289,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"elements": [
{
"end": 3665,
"left": {
"end": 3640,
"raw": "0",
"start": 3639,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
"operator": "+",
"right": {
"end": 3665,
"left": {
"end": 3651,
"name": "innerDia",
"start": 3643,
"type": "Identifier",
"type": "Identifier"
},
"operator": "*",
"right": {
"end": 3665,
"name": "hexNutScale",
"start": 3654,
"type": "Identifier",
"type": "Identifier"
},
"start": 3643,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"start": 3639,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
{
"end": 3668,
"raw": "0",
"start": 3667,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
],
"end": 3669,
"start": 3638,
"type": "ArrayExpression",
"type": "ArrayExpression"
},
{
"end": 3672,
"start": 3671,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
"end": 3637,
"name": "startProfileAt",
"start": 3623,
"type": "Identifier"
},
"end": 3673,
"start": 3623,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"end": 3765,
"properties": [
{
"end": 3714,
"key": {
"end": 3708,
"name": "angle",
"start": 3703,
"type": "Identifier"
},
"start": 3703,
"type": "ObjectProperty",
"value": {
"end": 3714,
"raw": "240",
"start": 3711,
"type": "Literal",
"type": "Literal",
"value": {
"value": 240.0,
"suffix": "None"
}
}
},
{
"end": 3756,
"key": {
"end": 3731,
"name": "length",
"start": 3725,
"type": "Identifier"
},
"start": 3725,
"type": "ObjectProperty",
"value": {
"end": 3756,
"left": {
"end": 3742,
"name": "innerDia",
"start": 3734,
"type": "Identifier",
"type": "Identifier"
},
"operator": "*",
"right": {
"end": 3756,
"name": "hexNutScale",
"start": 3745,
"type": "Identifier",
"type": "Identifier"
},
"start": 3734,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
}
],
"start": 3692,
"type": "ObjectExpression",
"type": "ObjectExpression"
},
{
"end": 3768,
"start": 3767,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
"end": 3691,
"name": "angledLine",
"start": 3681,
"type": "Identifier"
},
"end": 3769,
"start": 3681,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"end": 3861,
"properties": [
{
"end": 3810,
"key": {
"end": 3804,
"name": "angle",
"start": 3799,
"type": "Identifier"
},
"start": 3799,
"type": "ObjectProperty",
"value": {
"end": 3810,
"raw": "180",
"start": 3807,
"type": "Literal",
"type": "Literal",
"value": {
"value": 180.0,
"suffix": "None"
}
}
},
{
"end": 3852,
"key": {
"end": 3827,
"name": "length",
"start": 3821,
"type": "Identifier"
},
"start": 3821,
"type": "ObjectProperty",
"value": {
"end": 3852,
"left": {
"end": 3838,
"name": "innerDia",
"start": 3830,
"type": "Identifier",
"type": "Identifier"
},
"operator": "*",
"right": {
"end": 3852,
"name": "hexNutScale",
"start": 3841,
"type": "Identifier",
"type": "Identifier"
},
"start": 3830,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
}
],
"start": 3788,
"type": "ObjectExpression",
"type": "ObjectExpression"
},
{
"end": 3864,
"start": 3863,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
"end": 3787,
"name": "angledLine",
"start": 3777,
"type": "Identifier"
},
"end": 3865,
"start": 3777,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"end": 3957,
"properties": [
{
"end": 3906,
"key": {
"end": 3900,
"name": "angle",
"start": 3895,
"type": "Identifier"
},
"start": 3895,
"type": "ObjectProperty",
"value": {
"end": 3906,
"raw": "120",
"start": 3903,
"type": "Literal",
"type": "Literal",
"value": {
"value": 120.0,
"suffix": "None"
}
}
},
{
"end": 3948,
"key": {
"end": 3923,
"name": "length",
"start": 3917,
"type": "Identifier"
},
"start": 3917,
"type": "ObjectProperty",
"value": {
"end": 3948,
"left": {
"end": 3934,
"name": "innerDia",
"start": 3926,
"type": "Identifier",
"type": "Identifier"
},
"operator": "*",
"right": {
"end": 3948,
"name": "hexNutScale",
"start": 3937,
"type": "Identifier",
"type": "Identifier"
},
"start": 3926,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
}
],
"start": 3884,
"type": "ObjectExpression",
"type": "ObjectExpression"
},
{
"end": 3960,
"start": 3959,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
"end": 3883,
"name": "angledLine",
"start": 3873,
"type": "Identifier"
},
"end": 3961,
"start": 3873,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"end": 4052,
"properties": [
{
"end": 4001,
"key": {
"end": 3996,
"name": "angle",
"start": 3991,
"type": "Identifier"
},
"start": 3991,
"type": "ObjectProperty",
"value": {
"end": 4001,
"raw": "60",
"start": 3999,
"type": "Literal",
"type": "Literal",
"value": {
"value": 60.0,
"suffix": "None"
}
}
},
{
"end": 4043,
"key": {
"end": 4018,
"name": "length",
"start": 4012,
"type": "Identifier"
},
"start": 4012,
"type": "ObjectProperty",
"value": {
"end": 4043,
"left": {
"end": 4029,
"name": "innerDia",
"start": 4021,
"type": "Identifier",
"type": "Identifier"
},
"operator": "*",
"right": {
"end": 4043,
"name": "hexNutScale",
"start": 4032,
"type": "Identifier",
"type": "Identifier"
},
"start": 4021,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
}
],
"start": 3980,
"type": "ObjectExpression",
"type": "ObjectExpression"
},
{
"end": 4055,
"start": 4054,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
"end": 3979,
"name": "angledLine",
"start": 3969,
"type": "Identifier"
},
"end": 4056,
"start": 3969,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"end": 4113,
"properties": [
{
"end": 4086,
"key": {
"end": 4082,
"name": "angle",
"start": 4077,
"type": "Identifier"
},
"start": 4077,
"type": "ObjectProperty",
"value": {
"end": 4086,
"raw": "0",
"start": 4085,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
},
{
"end": 4111,
"key": {
"end": 4094,
"name": "length",
"start": 4088,
"type": "Identifier"
},
"start": 4088,
"type": "ObjectProperty",
"value": {
"end": 4111,
"left": {
"end": 4105,
"name": "innerDia",
"start": 4097,
"type": "Identifier",
"type": "Identifier"
},
"operator": "*",
"right": {
"end": 4111,
"raw": ".90",
"start": 4108,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.9,
"suffix": "None"
}
},
"start": 4097,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
}
],
"start": 4075,
"type": "ObjectExpression",
"type": "ObjectExpression"
},
{
"end": 4116,
"start": 4115,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
"end": 4074,
"name": "angledLine",
"start": 4064,
"type": "Identifier"
},
"end": 4117,
"start": 4064,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [],
"callee": {
"end": 4130,
"name": "close",
"start": 4125,
"type": "Identifier"
},
"end": 4132,
"start": 4125,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 4168,
"name": "center",
"start": 4162,
"type": "Identifier"
},
"arg": {
"elements": [
{
"end": 4173,
"raw": "0",
"start": 4172,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"end": 4176,
"raw": "0",
"start": 4175,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
],
"end": 4177,
"start": 4171,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
},
{
"type": "LabeledArg",
"label": {
"end": 4194,
"name": "radius",
"start": 4188,
"type": "Identifier"
},
"arg": {
"end": 4209,
"left": {
"end": 4205,
"name": "innerDia",
"start": 4197,
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
"end": 4209,
"raw": "2",
"start": 4208,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 4197,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
}
],
"callee": {
"end": 4151,
"name": "circle",
"start": 4145,
"type": "Identifier"
},
"end": 4218,
"start": 4145,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"end": 4221,
"start": 4220,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
"end": 4144,
"name": "hole",
"start": 4140,
"type": "Identifier"
},
"end": 4222,
"start": 4140,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 4244,
"name": "length",
"start": 4238,
"type": "Identifier"
},
"arg": {
"argument": {
"end": 4251,
"name": "thk",
"start": 4248,
"type": "Identifier",
"type": "Identifier"
},
"end": 4251,
"operator": "-",
"start": 4247,
"type": "UnaryExpression",
"type": "UnaryExpression"
}
}
],
"callee": {
"end": 4237,
"name": "extrude",
"start": 4230,
"type": "Identifier"
},
"end": 4252,
"start": 4230,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
}
],
"end": 4252,
"start": 3289,
"type": "PipeExpression",
"type": "PipeExpression"
},
"start": 3274,
"type": "VariableDeclarator"
},
"end": 4252,
"kind": "const",
"start": 3274,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"argument": {
"end": 4274,
"name": "hexNutSketch",
"start": 4262,
"type": "Identifier",
"type": "Identifier"
},
"end": 4274,
"start": 4255,
"type": "ReturnStatement",
"type": "ReturnStatement"
}
],
"end": 4276,
"start": 3270
},
"end": 4276,
"params": [
{
"type": "Parameter",
"identifier": {
"end": 3253,
"name": "start",
"start": 3248,
"type": "Identifier"
}
},
{
"type": "Parameter",
"identifier": {
"end": 3258,
"name": "thk",
"start": 3255,
"type": "Identifier"
}
},
{
"type": "Parameter",
"identifier": {
"end": 3268,
"name": "innerDia",
"start": 3260,
"type": "Identifier"
}
}
],
"start": 3247,
"type": "FunctionExpression",
"type": "FunctionExpression"
},
"start": 3241,
"type": "VariableDeclarator"
},
"end": 4276,
"kind": "fn",
"start": 3238,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 4613,
"id": {
"end": 4323,
"name": "mountingHolePattern",
"start": 4304,
"type": "Identifier"
},
"init": {
"body": [
{
"arguments": [
{
"end": 4344,
"raw": "'XZ'",
"start": 4340,
"type": "Literal",
"type": "Literal",
"value": "XZ"
}
],
"callee": {
"end": 4339,
"name": "startSketchOn",
"start": 4326,
"type": "Identifier"
},
"end": 4345,
"start": 4326,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 4372,
"name": "center",
"start": 4366,
"type": "Identifier"
},
"arg": {
"elements": [
{
"computed": false,
"end": 4389,
"object": {
"end": 4386,
"name": "screwStart",
"start": 4376,
"type": "Identifier",
"type": "Identifier"
},
"property": {
"end": 4388,
"raw": "0",
"start": 4387,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
"start": 4376,
"type": "MemberExpression",
"type": "MemberExpression"
},
{
"computed": false,
"end": 4404,
"object": {
"end": 4401,
"name": "screwStart",
"start": 4391,
"type": "Identifier",
"type": "Identifier"
},
"property": {
"end": 4403,
"raw": "2",
"start": 4402,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 4391,
"type": "MemberExpression",
"type": "MemberExpression"
}
],
"end": 4405,
"start": 4375,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
},
{
"type": "LabeledArg",
"label": {
"end": 4420,
"name": "radius",
"start": 4414,
"type": "Identifier"
},
"arg": {
"end": 4441,
"left": {
"end": 4435,
"left": {
"end": 4431,
"name": "screwDia",
"start": 4423,
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
"end": 4435,
"raw": "2",
"start": 4434,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 4423,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"operator": "+",
"right": {
"end": 4441,
"name": "tol",
"start": 4438,
"type": "Identifier",
"type": "Identifier"
},
"start": 4423,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
}
],
"callee": {
"end": 4357,
"name": "circle",
"start": 4351,
"type": "Identifier"
},
"end": 4448,
"start": 4351,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 4490,
"name": "arcDegrees",
"start": 4480,
"type": "Identifier"
},
"arg": {
"end": 4496,
"raw": "360",
"start": 4493,
"type": "Literal",
"type": "Literal",
"value": {
"value": 360.0,
"suffix": "None"
}
}
},
{
"type": "LabeledArg",
"label": {
"end": 4511,
"name": "center",
"start": 4505,
"type": "Identifier"
},
"arg": {
"elements": [
{
"end": 4516,
"raw": "0",
"start": 4515,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"end": 4519,
"raw": "0",
"start": 4518,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
],
"end": 4520,
"start": 4514,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
},
{
"type": "LabeledArg",
"label": {
"end": 4538,
"name": "instances",
"start": 4529,
"type": "Identifier"
},
"arg": {
"end": 4542,
"raw": "7",
"start": 4541,
"type": "Literal",
"type": "Literal",
"value": {
"value": 7.0,
"suffix": "None"
}
}
},
{
"type": "LabeledArg",
"label": {
"end": 4567,
"name": "rotateDuplicates",
"start": 4551,
"type": "Identifier"
},
"arg": {
"end": 4574,
"raw": "true",
"start": 4570,
"type": "Literal",
"type": "Literal",
"value": true
}
}
],
"callee": {
"end": 4471,
"name": "patternCircular2d",
"start": 4454,
"type": "Identifier"
},
"end": 4581,
"start": 4454,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
}
],
"end": 4613,
"nonCodeMeta": {
"nonCodeNodes": {
"2": [
{
"end": 4613,
"start": 4581,
"type": "NonCodeNode",
"value": {
"type": "newLineBlockComment",
"value": "Sketch and revolve the pipe",
"style": "line"
}
}
]
},
"startNodes": []
},
"start": 4326,
"type": "PipeExpression",
"type": "PipeExpression"
},
"start": 4304,
"type": "VariableDeclarator"
},
"end": 4613,
"kind": "const",
"start": 4304,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 5225,
"id": {
"end": 4618,
"name": "pipe",
"start": 4614,
"type": "Identifier"
},
"init": {
"body": [
{
"arguments": [
{
"end": 4639,
"raw": "'XY'",
"start": 4635,
"type": "Literal",
"type": "Literal",
"value": "XY"
}
],
"callee": {
"end": 4634,
"name": "startSketchOn",
"start": 4621,
"type": "Identifier"
},
"end": 4640,
"start": 4621,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"elements": [
{
"end": 4685,
"left": {
"end": 4679,
"left": {
"end": 4675,
"name": "flangePipeDia",
"start": 4662,
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
"end": 4679,
"raw": "2",
"start": 4678,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 4662,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"operator": "-",
"right": {
"end": 4685,
"name": "tol",
"start": 4682,
"type": "Identifier",
"type": "Identifier"
},
"start": 4662,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
{
"end": 4688,
"raw": "0",
"start": 4687,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
],
"end": 4689,
"start": 4661,
"type": "ArrayExpression",
"type": "ArrayExpression"
},
{
"end": 4692,
"start": 4691,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
"end": 4660,
"name": "startProfileAt",
"start": 4646,
"type": "Identifier"
},
"end": 4693,
"start": 4646,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 4707,
"name": "end",
"start": 4704,
"type": "Identifier"
},
"arg": {
"elements": [
{
"end": 4712,
"raw": "0",
"start": 4711,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"argument": {
"end": 4716,
"raw": "2",
"start": 4715,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"end": 4716,
"operator": "-",
"start": 4714,
"type": "UnaryExpression",
"type": "UnaryExpression"
}
],
"end": 4717,
"start": 4710,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
"end": 4703,
"name": "line",
"start": 4699,
"type": "Identifier"
},
"end": 4718,
"start": 4699,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [
{
"end": 4763,
"properties": [
{
"end": 4748,
"key": {
"end": 4742,
"name": "angle",
"start": 4737,
"type": "Identifier"
},
"start": 4737,
"type": "ObjectProperty",
"value": {
"argument": {
"end": 4748,
"raw": "60",
"start": 4746,
"type": "Literal",
"type": "Literal",
"value": {
"value": 60.0,
"suffix": "None"
}
},
"end": 4748,
"operator": "-",
"start": 4745,
"type": "UnaryExpression",
"type": "UnaryExpression"
}
},
{
"end": 4761,
"key": {
"end": 4756,
"name": "length",
"start": 4750,
"type": "Identifier"
},
"start": 4750,
"type": "ObjectProperty",
"value": {
"end": 4761,
"raw": ".5",
"start": 4759,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.5,
"suffix": "None"
}
}
}
],
"start": 4735,
"type": "ObjectExpression",
"type": "ObjectExpression"
},
{
"end": 4766,
"start": 4765,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
"end": 4734,
"name": "angledLine",
"start": 4724,
"type": "Identifier"
},
"end": 4767,
"start": 4724,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 4781,
"name": "end",
"start": 4778,
"type": "Identifier"
},
"arg": {
"elements": [
{
"end": 4786,
"raw": "0",
"start": 4785,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"argument": {
"end": 4790,
"raw": "1",
"start": 4789,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.0,
"suffix": "None"
}
},
"end": 4790,
"operator": "-",
"start": 4788,
"type": "UnaryExpression",
"type": "UnaryExpression"
}
],
"end": 4791,
"start": 4784,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
"end": 4777,
"name": "line",
"start": 4773,
"type": "Identifier"
},
"end": 4792,
"start": 4773,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 4806,
"name": "end",
"start": 4803,
"type": "Identifier"
},
"arg": {
"elements": [
{
"argument": {
"end": 4826,
"name": "flangeThickness",
"start": 4811,
"type": "Identifier",
"type": "Identifier"
},
"end": 4826,
"operator": "-",
"start": 4810,
"type": "UnaryExpression",
"type": "UnaryExpression"
},
{
"end": 4829,
"raw": "0",
"start": 4828,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
],
"end": 4830,
"start": 4809,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
"end": 4802,
"name": "line",
"start": 4798,
"type": "Identifier"
},
"end": 4831,
"start": 4798,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 4845,
"name": "end",
"start": 4842,
"type": "Identifier"
},
"arg": {
"elements": [
{
"end": 4850,
"raw": "0",
"start": 4849,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"end": 4853,
"raw": "1",
"start": 4852,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.0,
"suffix": "None"
}
}
],
"end": 4854,
"start": 4848,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
"end": 4841,
"name": "line",
"start": 4837,
"type": "Identifier"
},
"end": 4855,
"start": 4837,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [
{
"end": 4901,
"properties": [
{
"end": 4886,
"key": {
"end": 4879,
"name": "angle",
"start": 4874,
"type": "Identifier"
},
"start": 4874,
"type": "ObjectProperty",
"value": {
"argument": {
"end": 4886,
"raw": "240",
"start": 4883,
"type": "Literal",
"type": "Literal",
"value": {
"value": 240.0,
"suffix": "None"
}
},
"end": 4886,
"operator": "-",
"start": 4882,
"type": "UnaryExpression",
"type": "UnaryExpression"
}
},
{
"end": 4899,
"key": {
"end": 4894,
"name": "length",
"start": 4888,
"type": "Identifier"
},
"start": 4888,
"type": "ObjectProperty",
"value": {
"end": 4899,
"raw": ".5",
"start": 4897,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.5,
"suffix": "None"
}
}
}
],
"start": 4872,
"type": "ObjectExpression",
"type": "ObjectExpression"
},
{
"end": 4904,
"start": 4903,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
"end": 4871,
"name": "angledLine",
"start": 4861,
"type": "Identifier"
},
"end": 4905,
"start": 4861,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 4919,
"name": "end",
"start": 4916,
"type": "Identifier"
},
"arg": {
"elements": [
{
"end": 4924,
"raw": "0",
"start": 4923,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"end": 4927,
"raw": "5",
"start": 4926,
"type": "Literal",
"type": "Literal",
"value": {
"value": 5.0,
"suffix": "None"
}
}
],
"end": 4928,
"start": 4922,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
"end": 4915,
"name": "line",
"start": 4911,
"type": "Identifier"
},
"end": 4929,
"start": 4911,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [
{
"end": 4973,
"properties": [
{
"end": 4958,
"key": {
"end": 4953,
"name": "angle",
"start": 4948,
"type": "Identifier"
},
"start": 4948,
"type": "ObjectProperty",
"value": {
"end": 4958,
"raw": "60",
"start": 4956,
"type": "Literal",
"type": "Literal",
"value": {
"value": 60.0,
"suffix": "None"
}
}
},
{
"end": 4971,
"key": {
"end": 4966,
"name": "length",
"start": 4960,
"type": "Identifier"
},
"start": 4960,
"type": "ObjectProperty",
"value": {
"end": 4971,
"raw": ".5",
"start": 4969,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.5,
"suffix": "None"
}
}
}
],
"start": 4946,
"type": "ObjectExpression",
"type": "ObjectExpression"
},
{
"end": 4976,
"start": 4975,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
"end": 4945,
"name": "angledLine",
"start": 4935,
"type": "Identifier"
},
"end": 4977,
"start": 4935,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 4991,
"name": "end",
"start": 4988,
"type": "Identifier"
},
"arg": {
"elements": [
{
"end": 4996,
"raw": "0",
"start": 4995,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"end": 4999,
"raw": "1",
"start": 4998,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.0,
"suffix": "None"
}
}
],
"end": 5000,
"start": 4994,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
"end": 4987,
"name": "line",
"start": 4983,
"type": "Identifier"
},
"end": 5001,
"start": 4983,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 5015,
"name": "end",
"start": 5012,
"type": "Identifier"
},
"arg": {
"elements": [
{
"end": 5034,
"name": "flangeThickness",
"start": 5019,
"type": "Identifier",
"type": "Identifier"
},
{
"end": 5037,
"raw": "0",
"start": 5036,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
],
"end": 5038,
"start": 5018,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
"end": 5011,
"name": "line",
"start": 5007,
"type": "Identifier"
},
"end": 5039,
"start": 5007,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 5053,
"name": "end",
"start": 5050,
"type": "Identifier"
},
"arg": {
"elements": [
{
"end": 5058,
"raw": "0",
"start": 5057,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"argument": {
"end": 5062,
"raw": "1",
"start": 5061,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.0,
"suffix": "None"
}
},
"end": 5062,
"operator": "-",
"start": 5060,
"type": "UnaryExpression",
"type": "UnaryExpression"
}
],
"end": 5063,
"start": 5056,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
"end": 5049,
"name": "line",
"start": 5045,
"type": "Identifier"
},
"end": 5064,
"start": 5045,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [
{
"end": 5109,
"properties": [
{
"end": 5094,
"key": {
"end": 5088,
"name": "angle",
"start": 5083,
"type": "Identifier"
},
"start": 5083,
"type": "ObjectProperty",
"value": {
"end": 5094,
"raw": "240",
"start": 5091,
"type": "Literal",
"type": "Literal",
"value": {
"value": 240.0,
"suffix": "None"
}
}
},
{
"end": 5107,
"key": {
"end": 5102,
"name": "length",
"start": 5096,
"type": "Identifier"
},
"start": 5096,
"type": "ObjectProperty",
"value": {
"end": 5107,
"raw": ".5",
"start": 5105,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.5,
"suffix": "None"
}
}
}
],
"start": 5081,
"type": "ObjectExpression",
"type": "ObjectExpression"
},
{
"end": 5112,
"start": 5111,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
"end": 5080,
"name": "angledLine",
"start": 5070,
"type": "Identifier"
},
"end": 5113,
"start": 5070,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [],
"callee": {
"end": 5124,
"name": "close",
"start": 5119,
"type": "Identifier"
},
"end": 5126,
"start": 5119,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"end": 5154,
"properties": [
{
"end": 5152,
"key": {
"end": 5146,
"name": "axis",
"start": 5142,
"type": "Identifier"
},
"start": 5142,
"type": "ObjectProperty",
"value": {
"end": 5152,
"raw": "'y'",
"start": 5149,
"type": "Literal",
"type": "Literal",
"value": "y"
}
}
],
"start": 5140,
"type": "ObjectExpression",
"type": "ObjectExpression"
},
{
"end": 5157,
"start": 5156,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
"end": 5139,
"name": "revolve",
"start": 5132,
"type": "Identifier"
},
"end": 5158,
"start": 5132,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 5180,
"name": "color",
"start": 5175,
"type": "Identifier"
},
"arg": {
"end": 5192,
"raw": "\"#7b79d7\"",
"start": 5183,
"type": "Literal",
"type": "Literal",
"value": "#7b79d7"
}
}
],
"callee": {
"end": 5174,
"name": "appearance",
"start": 5164,
"type": "Identifier"
},
"end": 5193,
"start": 5164,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
}
],
"end": 5225,
"nonCodeMeta": {
"nonCodeNodes": {
"16": [
{
"end": 5225,
"start": 5193,
"type": "NonCodeNode",
"value": {
"type": "newLineBlockComment",
"value": "Sketch and extrude the wall",
"style": "line"
}
}
]
},
"startNodes": []
},
"start": 4621,
"type": "PipeExpression",
"type": "PipeExpression"
},
"start": 4614,
"type": "VariableDeclarator"
},
"end": 5225,
"kind": "const",
"start": 4614,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 5598,
"id": {
"end": 5230,
"name": "wall",
"start": 5226,
"type": "Identifier"
},
"init": {
"body": [
{
"arguments": [
{
"end": 5251,
"raw": "'XZ'",
"start": 5247,
"type": "Literal",
"type": "Literal",
"value": "XZ"
}
],
"callee": {
"end": 5246,
"name": "startSketchOn",
"start": 5233,
"type": "Identifier"
},
"end": 5252,
"start": 5233,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"elements": [
{
"argument": {
"end": 5276,
"raw": "4",
"start": 5275,
"type": "Literal",
"type": "Literal",
"value": {
"value": 4.0,
"suffix": "None"
}
},
"end": 5276,
"operator": "-",
"start": 5274,
"type": "UnaryExpression",
"type": "UnaryExpression"
},
{
"argument": {
"end": 5280,
"raw": "4",
"start": 5279,
"type": "Literal",
"type": "Literal",
"value": {
"value": 4.0,
"suffix": "None"
}
},
"end": 5280,
"operator": "-",
"start": 5278,
"type": "UnaryExpression",
"type": "UnaryExpression"
}
],
"end": 5281,
"start": 5273,
"type": "ArrayExpression",
"type": "ArrayExpression"
},
{
"end": 5284,
"start": 5283,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
"end": 5272,
"name": "startProfileAt",
"start": 5258,
"type": "Identifier"
},
"end": 5285,
"start": 5258,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 5299,
"name": "end",
"start": 5296,
"type": "Identifier"
},
"arg": {
"elements": [
{
"end": 5304,
"raw": "0",
"start": 5303,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"end": 5307,
"raw": "8",
"start": 5306,
"type": "Literal",
"type": "Literal",
"value": {
"value": 8.0,
"suffix": "None"
}
}
],
"end": 5308,
"start": 5302,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
"end": 5295,
"name": "line",
"start": 5291,
"type": "Identifier"
},
"end": 5309,
"start": 5291,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 5323,
"name": "end",
"start": 5320,
"type": "Identifier"
},
"arg": {
"elements": [
{
"end": 5328,
"raw": "8",
"start": 5327,
"type": "Literal",
"type": "Literal",
"value": {
"value": 8.0,
"suffix": "None"
}
},
{
"end": 5331,
"raw": "0",
"start": 5330,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
],
"end": 5332,
"start": 5326,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
"end": 5319,
"name": "line",
"start": 5315,
"type": "Identifier"
},
"end": 5333,
"start": 5315,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 5347,
"name": "end",
"start": 5344,
"type": "Identifier"
},
"arg": {
"elements": [
{
"end": 5352,
"raw": "0",
"start": 5351,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"argument": {
"end": 5356,
"raw": "8",
"start": 5355,
"type": "Literal",
"type": "Literal",
"value": {
"value": 8.0,
"suffix": "None"
}
},
"end": 5356,
"operator": "-",
"start": 5354,
"type": "UnaryExpression",
"type": "UnaryExpression"
}
],
"end": 5357,
"start": 5350,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
"end": 5343,
"name": "line",
"start": 5339,
"type": "Identifier"
},
"end": 5358,
"start": 5339,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [],
"callee": {
"end": 5369,
"name": "close",
"start": 5364,
"type": "Identifier"
},
"end": 5371,
"start": 5364,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"end": 5401,
"name": "mountingHolePattern",
"start": 5382,
"type": "Identifier",
"type": "Identifier"
},
{
"end": 5404,
"start": 5403,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
"end": 5381,
"name": "hole",
"start": 5377,
"type": "Identifier"
},
"end": 5405,
"start": 5377,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 5437,
"name": "center",
"start": 5431,
"type": "Identifier"
},
"arg": {
"elements": [
{
"end": 5442,
"raw": "0",
"start": 5441,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"end": 5445,
"raw": "0",
"start": 5444,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
],
"end": 5446,
"start": 5440,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
},
{
"type": "LabeledArg",
"label": {
"end": 5461,
"name": "radius",
"start": 5455,
"type": "Identifier"
},
"arg": {
"end": 5481,
"left": {
"end": 5477,
"name": "flangePipeDia",
"start": 5464,
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
"end": 5481,
"raw": "2",
"start": 5480,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 5464,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
}
],
"callee": {
"end": 5422,
"name": "circle",
"start": 5416,
"type": "Identifier"
},
"end": 5488,
"start": 5416,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"end": 5491,
"start": 5490,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
"end": 5415,
"name": "hole",
"start": 5411,
"type": "Identifier"
},
"end": 5492,
"start": 5411,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 5512,
"name": "length",
"start": 5506,
"type": "Identifier"
},
"arg": {
"end": 5528,
"name": "wallThickness",
"start": 5515,
"type": "Identifier",
"type": "Identifier"
}
}
],
"callee": {
"end": 5505,
"name": "extrude",
"start": 5498,
"type": "Identifier"
},
"end": 5529,
"start": 5498,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 5551,
"name": "color",
"start": 5546,
"type": "Identifier"
},
"arg": {
"end": 5563,
"raw": "\"#c7aa8f\"",
"start": 5554,
"type": "Literal",
"type": "Literal",
"value": "#c7aa8f"
}
}
],
"callee": {
"end": 5545,
"name": "appearance",
"start": 5535,
"type": "Identifier"
},
"end": 5564,
"start": 5535,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
}
],
"end": 5598,
"nonCodeMeta": {
"nonCodeNodes": {
"9": [
{
"end": 5598,
"start": 5564,
"type": "NonCodeNode",
"value": {
"type": "newLineBlockComment",
"value": "Sketch and revolve the flange",
"style": "line"
}
}
]
},
"startNodes": []
},
"start": 5233,
"type": "PipeExpression",
"type": "PipeExpression"
},
"start": 5226,
"type": "VariableDeclarator"
},
"end": 5598,
"kind": "const",
"start": 5226,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 5953,
"id": {
"end": 5609,
"name": "flangeBase",
"start": 5599,
"type": "Identifier"
},
"init": {
"body": [
{
"arguments": [
{
"end": 5630,
"raw": "'XZ'",
"start": 5626,
"type": "Literal",
"type": "Literal",
"value": "XZ"
}
],
"callee": {
"end": 5625,
"name": "startSketchOn",
"start": 5612,
"type": "Identifier"
},
"end": 5631,
"start": 5612,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 5658,
"name": "center",
"start": 5652,
"type": "Identifier"
},
"arg": {
"elements": [
{
"end": 5663,
"raw": "0",
"start": 5662,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"end": 5666,
"raw": "0",
"start": 5665,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
],
"end": 5667,
"start": 5661,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
},
{
"type": "LabeledArg",
"label": {
"end": 5682,
"name": "radius",
"start": 5676,
"type": "Identifier"
},
"arg": {
"end": 5698,
"name": "flangeBaseDia",
"start": 5685,
"type": "Identifier",
"type": "Identifier"
}
}
],
"callee": {
"end": 5643,
"name": "circle",
"start": 5637,
"type": "Identifier"
},
"end": 5705,
"start": 5637,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [
{
"end": 5735,
"name": "mountingHolePattern",
"start": 5716,
"type": "Identifier",
"type": "Identifier"
},
{
"end": 5738,
"start": 5737,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
"end": 5715,
"name": "hole",
"start": 5711,
"type": "Identifier"
},
"end": 5739,
"start": 5711,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 5771,
"name": "center",
"start": 5765,
"type": "Identifier"
},
"arg": {
"elements": [
{
"end": 5776,
"raw": "0",
"start": 5775,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"end": 5779,
"raw": "0",
"start": 5778,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
],
"end": 5780,
"start": 5774,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
},
{
"type": "LabeledArg",
"label": {
"end": 5795,
"name": "radius",
"start": 5789,
"type": "Identifier"
},
"arg": {
"end": 5815,
"left": {
"end": 5811,
"name": "flangePipeDia",
"start": 5798,
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
"end": 5815,
"raw": "2",
"start": 5814,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 5798,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
}
],
"callee": {
"end": 5756,
"name": "circle",
"start": 5750,
"type": "Identifier"
},
"end": 5822,
"start": 5750,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"end": 5825,
"start": 5824,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
"end": 5749,
"name": "hole",
"start": 5745,
"type": "Identifier"
},
"end": 5826,
"start": 5745,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 5846,
"name": "length",
"start": 5840,
"type": "Identifier"
},
"arg": {
"argument": {
"end": 5865,
"name": "flangeThickness",
"start": 5850,
"type": "Identifier",
"type": "Identifier"
},
"end": 5865,
"operator": "-",
"start": 5849,
"type": "UnaryExpression",
"type": "UnaryExpression"
}
}
],
"callee": {
"end": 5839,
"name": "extrude",
"start": 5832,
"type": "Identifier"
},
"end": 5866,
"start": 5832,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 5888,
"name": "color",
"start": 5883,
"type": "Identifier"
},
"arg": {
"end": 5900,
"raw": "\"#9b9797\"",
"start": 5891,
"type": "Literal",
"type": "Literal",
"value": "#9b9797"
}
}
],
"callee": {
"end": 5882,
"name": "appearance",
"start": 5872,
"type": "Identifier"
},
"end": 5901,
"start": 5872,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
}
],
"end": 5953,
"nonCodeMeta": {
"nonCodeNodes": {
"5": [
{
"end": 5953,
"start": 5901,
"type": "NonCodeNode",
"value": {
"type": "newLineBlockComment",
"value": "Create the washer and pattern around the flange",
"style": "line"
}
}
]
},
"startNodes": []
},
"start": 5612,
"type": "PipeExpression",
"type": "PipeExpression"
},
"start": 5599,
"type": "VariableDeclarator"
},
"end": 5953,
"kind": "const",
"start": 5599,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"end": 6288,
"expression": {
"body": [
{
"arguments": [
{
"end": 5973,
"name": "workingPlane",
"start": 5961,
"type": "Identifier",
"type": "Identifier"
},
{
"elements": [
{
"computed": false,
"end": 5989,
"object": {
"end": 5986,
"name": "screwStart",
"start": 5976,
"type": "Identifier",
"type": "Identifier"
},
"property": {
"end": 5988,
"raw": "2",
"start": 5987,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 5976,
"type": "MemberExpression",
"type": "MemberExpression"
},
{
"computed": false,
"end": 6004,
"object": {
"end": 6001,
"name": "screwStart",
"start": 5991,
"type": "Identifier",
"type": "Identifier"
},
"property": {
"end": 6003,
"raw": "0",
"start": 6002,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
"start": 5991,
"type": "MemberExpression",
"type": "MemberExpression"
}
],
"end": 6005,
"start": 5975,
"type": "ArrayExpression",
"type": "ArrayExpression"
},
{
"end": 6013,
"raw": "0.0625",
"start": 6007,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0625,
"suffix": "None"
}
},
{
"end": 6029,
"left": {
"end": 6023,
"name": "screwDia",
"start": 6015,
"type": "Identifier",
"type": "Identifier"
},
"operator": "+",
"right": {
"end": 6029,
"name": "tol",
"start": 6026,
"type": "Identifier",
"type": "Identifier"
},
"start": 6015,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
{
"end": 6036,
"raw": "0.625",
"start": 6031,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.625,
"suffix": "None"
}
}
],
"callee": {
"end": 5960,
"name": "washer",
"start": 5954,
"type": "Identifier"
},
"end": 6037,
"start": 5954,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 6073,
"name": "axis",
"start": 6069,
"type": "Identifier"
},
"arg": {
"elements": [
{
"end": 6078,
"raw": "0",
"start": 6077,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"end": 6081,
"raw": "1",
"start": 6080,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.0,
"suffix": "None"
}
},
{
"end": 6084,
"raw": "0",
"start": 6083,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
],
"end": 6085,
"start": 6076,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
},
{
"type": "LabeledArg",
"label": {
"end": 6100,
"name": "center",
"start": 6094,
"type": "Identifier"
},
"arg": {
"elements": [
{
"end": 6105,
"raw": "0",
"start": 6104,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"end": 6108,
"raw": "0",
"start": 6107,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"end": 6111,
"raw": "0",
"start": 6110,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
],
"end": 6112,
"start": 6103,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
},
{
"type": "LabeledArg",
"label": {
"end": 6130,
"name": "instances",
"start": 6121,
"type": "Identifier"
},
"arg": {
"end": 6134,
"raw": "7",
"start": 6133,
"type": "Literal",
"type": "Literal",
"value": {
"value": 7.0,
"suffix": "None"
}
}
},
{
"type": "LabeledArg",
"label": {
"end": 6153,
"name": "arcDegrees",
"start": 6143,
"type": "Identifier"
},
"arg": {
"end": 6159,
"raw": "360",
"start": 6156,
"type": "Literal",
"type": "Literal",
"value": {
"value": 360.0,
"suffix": "None"
}
}
},
{
"type": "LabeledArg",
"label": {
"end": 6184,
"name": "rotateDuplicates",
"start": 6168,
"type": "Identifier"
},
"arg": {
"end": 6191,
"raw": "true",
"start": 6187,
"type": "Literal",
"type": "Literal",
"value": true
}
}
],
"callee": {
"end": 6060,
"name": "patternCircular3d",
"start": 6043,
"type": "Identifier"
},
"end": 6198,
"start": 6043,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 6220,
"name": "color",
"start": 6215,
"type": "Identifier"
},
"arg": {
"end": 6232,
"raw": "\"#d8da5d\"",
"start": 6223,
"type": "Literal",
"type": "Literal",
"value": "#d8da5d"
}
}
],
"callee": {
"end": 6214,
"name": "appearance",
"start": 6204,
"type": "Identifier"
},
"end": 6233,
"start": 6204,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
}
],
"end": 6288,
"nonCodeMeta": {
"nonCodeNodes": {
"2": [
{
"end": 6288,
"start": 6233,
"type": "NonCodeNode",
"value": {
"type": "newLineBlockComment",
"value": "Create the cap screw and pattern around the flange",
"style": "line"
}
}
]
},
"startNodes": []
},
"start": 5954,
"type": "PipeExpression",
"type": "PipeExpression"
},
"start": 5954,
"type": "ExpressionStatement",
"type": "ExpressionStatement"
},
{
"end": 6591,
"expression": {
"body": [
{
"arguments": [
{
"elements": [
{
"end": 6308,
"raw": "0",
"start": 6307,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"end": 6350,
"left": {
"end": 6332,
"name": "flangeThickness",
"start": 6317,
"type": "Identifier",
"type": "Identifier"
},
"operator": "+",
"right": {
"end": 6350,
"name": "washerThickness",
"start": 6335,
"type": "Identifier",
"type": "Identifier"
},
"start": 6317,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
{
"end": 6364,
"raw": "1.375",
"start": 6359,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.375,
"suffix": "None"
}
}
],
"end": 6371,
"start": 6298,
"type": "ArrayExpression",
"type": "ArrayExpression"
},
{
"end": 6384,
"name": "screwLength",
"start": 6373,
"type": "Identifier",
"type": "Identifier"
},
{
"end": 6394,
"name": "screwDia",
"start": 6386,
"type": "Identifier",
"type": "Identifier"
}
],
"callee": {
"end": 6297,
"name": "capScrew",
"start": 6289,
"type": "Identifier"
},
"end": 6395,
"start": 6289,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 6431,
"name": "axis",
"start": 6427,
"type": "Identifier"
},
"arg": {
"elements": [
{
"end": 6436,
"raw": "0",
"start": 6435,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"end": 6439,
"raw": "1",
"start": 6438,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.0,
"suffix": "None"
}
},
{
"end": 6442,
"raw": "0",
"start": 6441,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
],
"end": 6443,
"start": 6434,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
},
{
"type": "LabeledArg",
"label": {
"end": 6458,
"name": "center",
"start": 6452,
"type": "Identifier"
},
"arg": {
"elements": [
{
"end": 6463,
"raw": "0",
"start": 6462,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"end": 6466,
"raw": "0",
"start": 6465,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"end": 6469,
"raw": "0",
"start": 6468,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
],
"end": 6470,
"start": 6461,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
},
{
"type": "LabeledArg",
"label": {
"end": 6488,
"name": "instances",
"start": 6479,
"type": "Identifier"
},
"arg": {
"end": 6492,
"raw": "7",
"start": 6491,
"type": "Literal",
"type": "Literal",
"value": {
"value": 7.0,
"suffix": "None"
}
}
},
{
"type": "LabeledArg",
"label": {
"end": 6511,
"name": "arcDegrees",
"start": 6501,
"type": "Identifier"
},
"arg": {
"end": 6517,
"raw": "360",
"start": 6514,
"type": "Literal",
"type": "Literal",
"value": {
"value": 360.0,
"suffix": "None"
}
}
},
{
"type": "LabeledArg",
"label": {
"end": 6542,
"name": "rotateDuplicates",
"start": 6526,
"type": "Identifier"
},
"arg": {
"end": 6549,
"raw": "true",
"start": 6545,
"type": "Literal",
"type": "Literal",
"value": true
}
}
],
"callee": {
"end": 6418,
"name": "patternCircular3d",
"start": 6401,
"type": "Identifier"
},
"end": 6556,
"start": 6401,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 6578,
"name": "color",
"start": 6573,
"type": "Identifier"
},
"arg": {
"end": 6590,
"raw": "\"#4cd411\"",
"start": 6581,
"type": "Literal",
"type": "Literal",
"value": "#4cd411"
}
}
],
"callee": {
"end": 6572,
"name": "appearance",
"start": 6562,
"type": "Identifier"
},
"end": 6591,
"start": 6562,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
}
],
"end": 6591,
"start": 6289,
"type": "PipeExpression",
"type": "PipeExpression"
},
"start": 6289,
"type": "ExpressionStatement",
"type": "ExpressionStatement"
},
{
"declaration": {
"end": 6709,
"id": {
"end": 6608,
"name": "screwBodySketch",
"start": 6593,
"type": "Identifier"
},
"init": {
"body": [
{
"arguments": [
{
"end": 6635,
"name": "screwPlane",
"start": 6625,
"type": "Identifier",
"type": "Identifier"
}
],
"callee": {
"end": 6624,
"name": "startSketchOn",
"start": 6611,
"type": "Identifier"
},
"end": 6636,
"start": 6611,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 6663,
"name": "center",
"start": 6657,
"type": "Identifier"
},
"arg": {
"elements": [
{
"end": 6668,
"raw": "0",
"start": 6667,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"end": 6671,
"raw": "0",
"start": 6670,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
],
"end": 6672,
"start": 6666,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
},
{
"type": "LabeledArg",
"label": {
"end": 6687,
"name": "radius",
"start": 6681,
"type": "Identifier"
},
"arg": {
"end": 6702,
"left": {
"end": 6698,
"name": "screwDia",
"start": 6690,
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
"end": 6702,
"raw": "2",
"start": 6701,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 6690,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
}
],
"callee": {
"end": 6648,
"name": "circle",
"start": 6642,
"type": "Identifier"
},
"end": 6709,
"start": 6642,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
}
],
"end": 6709,
"start": 6611,
"type": "PipeExpression",
"type": "PipeExpression"
},
"start": 6593,
"type": "VariableDeclarator"
},
"end": 6709,
"kind": "const",
"start": 6593,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 7029,
"id": {
"end": 6719,
"name": "screwBody",
"start": 6710,
"type": "Identifier"
},
"init": {
"body": [
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 6753,
"name": "length",
"start": 6747,
"type": "Identifier"
},
"arg": {
"argument": {
"end": 6768,
"name": "screwLength",
"start": 6757,
"type": "Identifier",
"type": "Identifier"
},
"end": 6768,
"operator": "-",
"start": 6756,
"type": "UnaryExpression",
"type": "UnaryExpression"
}
}
],
"callee": {
"end": 6729,
"name": "extrude",
"start": 6722,
"type": "Identifier"
},
"end": 6769,
"start": 6722,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": {
"end": 6745,
"name": "screwBodySketch",
"start": 6730,
"type": "Identifier",
"type": "Identifier"
}
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 6805,
"name": "axis",
"start": 6801,
"type": "Identifier"
},
"arg": {
"elements": [
{
"end": 6810,
"raw": "0",
"start": 6809,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"end": 6813,
"raw": "1",
"start": 6812,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.0,
"suffix": "None"
}
},
{
"end": 6816,
"raw": "0",
"start": 6815,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
],
"end": 6817,
"start": 6808,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
},
{
"type": "LabeledArg",
"label": {
"end": 6832,
"name": "center",
"start": 6826,
"type": "Identifier"
},
"arg": {
"elements": [
{
"end": 6837,
"raw": "0",
"start": 6836,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"end": 6840,
"raw": "0",
"start": 6839,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"end": 6843,
"raw": "0",
"start": 6842,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
],
"end": 6844,
"start": 6835,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
},
{
"type": "LabeledArg",
"label": {
"end": 6862,
"name": "instances",
"start": 6853,
"type": "Identifier"
},
"arg": {
"end": 6866,
"raw": "7",
"start": 6865,
"type": "Literal",
"type": "Literal",
"value": {
"value": 7.0,
"suffix": "None"
}
}
},
{
"type": "LabeledArg",
"label": {
"end": 6885,
"name": "arcDegrees",
"start": 6875,
"type": "Identifier"
},
"arg": {
"end": 6891,
"raw": "360",
"start": 6888,
"type": "Literal",
"type": "Literal",
"value": {
"value": 360.0,
"suffix": "None"
}
}
},
{
"type": "LabeledArg",
"label": {
"end": 6916,
"name": "rotateDuplicates",
"start": 6900,
"type": "Identifier"
},
"arg": {
"end": 6923,
"raw": "true",
"start": 6919,
"type": "Literal",
"type": "Literal",
"value": true
}
}
],
"callee": {
"end": 6792,
"name": "patternCircular3d",
"start": 6775,
"type": "Identifier"
},
"end": 6930,
"start": 6775,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 6952,
"name": "color",
"start": 6947,
"type": "Identifier"
},
"arg": {
"end": 6964,
"raw": "\"#4cd411\"",
"start": 6955,
"type": "Literal",
"type": "Literal",
"value": "#4cd411"
}
}
],
"callee": {
"end": 6946,
"name": "appearance",
"start": 6936,
"type": "Identifier"
},
"end": 6965,
"start": 6936,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
}
],
"end": 7029,
"nonCodeMeta": {
"nonCodeNodes": {
"2": [
{
"end": 7029,
"start": 6965,
"type": "NonCodeNode",
"value": {
"type": "newLineBlockComment",
"value": "Create a plane for the washers on the back side of the wall",
"style": "line"
}
}
]
},
"startNodes": []
},
"start": 6722,
"type": "PipeExpression",
"type": "PipeExpression"
},
"start": 6710,
"type": "VariableDeclarator"
},
"end": 7029,
"kind": "const",
"start": 6710,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 7272,
"id": {
"end": 7049,
"name": "backSideWasherPlane",
"start": 7030,
"type": "Identifier"
},
"init": {
"end": 7272,
"properties": [
{
"end": 7270,
"key": {
"end": 7061,
"name": "plane",
"start": 7056,
"type": "Identifier"
},
"start": 7056,
"type": "ObjectProperty",
"value": {
"end": 7270,
"properties": [
{
"end": 7155,
"key": {
"end": 7076,
"name": "origin",
"start": 7070,
"type": "Identifier"
},
"start": 7070,
"type": "ObjectProperty",
"value": {
"end": 7155,
"properties": [
{
"end": 7092,
"key": {
"end": 7088,
"name": "x",
"start": 7087,
"type": "Identifier"
},
"start": 7087,
"type": "ObjectProperty",
"value": {
"end": 7092,
"raw": "0",
"start": 7091,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
},
{
"end": 7136,
"key": {
"end": 7101,
"name": "y",
"start": 7100,
"type": "Identifier"
},
"start": 7100,
"type": "ObjectProperty",
"value": {
"end": 7136,
"left": {
"argument": {
"end": 7118,
"name": "wallThickness",
"start": 7105,
"type": "Identifier",
"type": "Identifier"
},
"end": 7118,
"operator": "-",
"start": 7104,
"type": "UnaryExpression",
"type": "UnaryExpression"
},
"operator": "-",
"right": {
"end": 7136,
"name": "washerThickness",
"start": 7121,
"type": "Identifier",
"type": "Identifier"
},
"start": 7104,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
},
{
"end": 7149,
"key": {
"end": 7145,
"name": "z",
"start": 7144,
"type": "Identifier"
},
"start": 7144,
"type": "ObjectProperty",
"value": {
"end": 7149,
"raw": "0",
"start": 7148,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
}
],
"start": 7079,
"type": "ObjectExpression",
"type": "ObjectExpression"
}
},
{
"end": 7192,
"key": {
"end": 7166,
"name": "xAxis",
"start": 7161,
"type": "Identifier"
},
"start": 7161,
"type": "ObjectProperty",
"value": {
"end": 7192,
"properties": [
{
"end": 7176,
"key": {
"end": 7172,
"name": "x",
"start": 7171,
"type": "Identifier"
},
"start": 7171,
"type": "ObjectProperty",
"value": {
"end": 7176,
"raw": "0",
"start": 7175,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
},
{
"end": 7183,
"key": {
"end": 7179,
"name": "y",
"start": 7178,
"type": "Identifier"
},
"start": 7178,
"type": "ObjectProperty",
"value": {
"end": 7183,
"raw": "0",
"start": 7182,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
},
{
"end": 7190,
"key": {
"end": 7186,
"name": "z",
"start": 7185,
"type": "Identifier"
},
"start": 7185,
"type": "ObjectProperty",
"value": {
"end": 7190,
"raw": "1",
"start": 7189,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.0,
"suffix": "None"
}
}
}
],
"start": 7169,
"type": "ObjectExpression",
"type": "ObjectExpression"
}
},
{
"end": 7229,
"key": {
"end": 7203,
"name": "yAxis",
"start": 7198,
"type": "Identifier"
},
"start": 7198,
"type": "ObjectProperty",
"value": {
"end": 7229,
"properties": [
{
"end": 7213,
"key": {
"end": 7209,
"name": "x",
"start": 7208,
"type": "Identifier"
},
"start": 7208,
"type": "ObjectProperty",
"value": {
"end": 7213,
"raw": "1",
"start": 7212,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.0,
"suffix": "None"
}
}
},
{
"end": 7220,
"key": {
"end": 7216,
"name": "y",
"start": 7215,
"type": "Identifier"
},
"start": 7215,
"type": "ObjectProperty",
"value": {
"end": 7220,
"raw": "0",
"start": 7219,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
},
{
"end": 7227,
"key": {
"end": 7223,
"name": "z",
"start": 7222,
"type": "Identifier"
},
"start": 7222,
"type": "ObjectProperty",
"value": {
"end": 7227,
"raw": "0",
"start": 7226,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
}
],
"start": 7206,
"type": "ObjectExpression",
"type": "ObjectExpression"
}
},
{
"end": 7266,
"key": {
"end": 7240,
"name": "zAxis",
"start": 7235,
"type": "Identifier"
},
"start": 7235,
"type": "ObjectProperty",
"value": {
"end": 7266,
"properties": [
{
"end": 7250,
"key": {
"end": 7246,
"name": "x",
"start": 7245,
"type": "Identifier"
},
"start": 7245,
"type": "ObjectProperty",
"value": {
"end": 7250,
"raw": "0",
"start": 7249,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
},
{
"end": 7257,
"key": {
"end": 7253,
"name": "y",
"start": 7252,
"type": "Identifier"
},
"start": 7252,
"type": "ObjectProperty",
"value": {
"end": 7257,
"raw": "1",
"start": 7256,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.0,
"suffix": "None"
}
}
},
{
"end": 7264,
"key": {
"end": 7260,
"name": "z",
"start": 7259,
"type": "Identifier"
},
"start": 7259,
"type": "ObjectProperty",
"value": {
"end": 7264,
"raw": "0",
"start": 7263,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
}
],
"start": 7243,
"type": "ObjectExpression",
"type": "ObjectExpression"
}
}
],
"start": 7064,
"type": "ObjectExpression",
"type": "ObjectExpression"
}
}
],
"start": 7052,
"type": "ObjectExpression",
"type": "ObjectExpression"
},
"start": 7030,
"type": "VariableDeclarator"
},
"end": 7272,
"kind": "const",
"start": 7030,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"end": 7663,
"expression": {
"body": [
{
"arguments": [
{
"end": 7350,
"name": "backSideWasherPlane",
"start": 7331,
"type": "Identifier",
"type": "Identifier"
},
{
"elements": [
{
"computed": false,
"end": 7366,
"object": {
"end": 7363,
"name": "screwStart",
"start": 7353,
"type": "Identifier",
"type": "Identifier"
},
"property": {
"end": 7365,
"raw": "2",
"start": 7364,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 7353,
"type": "MemberExpression",
"type": "MemberExpression"
},
{
"computed": false,
"end": 7381,
"object": {
"end": 7378,
"name": "screwStart",
"start": 7368,
"type": "Identifier",
"type": "Identifier"
},
"property": {
"end": 7380,
"raw": "0",
"start": 7379,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
"start": 7368,
"type": "MemberExpression",
"type": "MemberExpression"
}
],
"end": 7382,
"start": 7352,
"type": "ArrayExpression",
"type": "ArrayExpression"
},
{
"end": 7390,
"raw": "0.0625",
"start": 7384,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0625,
"suffix": "None"
}
},
{
"end": 7406,
"left": {
"end": 7400,
"name": "screwDia",
"start": 7392,
"type": "Identifier",
"type": "Identifier"
},
"operator": "+",
"right": {
"end": 7406,
"name": "tol",
"start": 7403,
"type": "Identifier",
"type": "Identifier"
},
"start": 7392,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
{
"end": 7413,
"raw": "0.625",
"start": 7408,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.625,
"suffix": "None"
}
}
],
"callee": {
"end": 7330,
"name": "washer",
"start": 7324,
"type": "Identifier"
},
"end": 7414,
"start": 7324,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 7450,
"name": "axis",
"start": 7446,
"type": "Identifier"
},
"arg": {
"elements": [
{
"end": 7455,
"raw": "0",
"start": 7454,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"end": 7458,
"raw": "1",
"start": 7457,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.0,
"suffix": "None"
}
},
{
"end": 7461,
"raw": "0",
"start": 7460,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
],
"end": 7462,
"start": 7453,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
},
{
"type": "LabeledArg",
"label": {
"end": 7477,
"name": "center",
"start": 7471,
"type": "Identifier"
},
"arg": {
"elements": [
{
"end": 7482,
"raw": "0",
"start": 7481,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"end": 7485,
"raw": "0",
"start": 7484,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"end": 7488,
"raw": "0",
"start": 7487,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
],
"end": 7489,
"start": 7480,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
},
{
"type": "LabeledArg",
"label": {
"end": 7507,
"name": "instances",
"start": 7498,
"type": "Identifier"
},
"arg": {
"end": 7511,
"raw": "7",
"start": 7510,
"type": "Literal",
"type": "Literal",
"value": {
"value": 7.0,
"suffix": "None"
}
}
},
{
"type": "LabeledArg",
"label": {
"end": 7530,
"name": "arcDegrees",
"start": 7520,
"type": "Identifier"
},
"arg": {
"end": 7536,
"raw": "360",
"start": 7533,
"type": "Literal",
"type": "Literal",
"value": {
"value": 360.0,
"suffix": "None"
}
}
},
{
"type": "LabeledArg",
"label": {
"end": 7561,
"name": "rotateDuplicates",
"start": 7545,
"type": "Identifier"
},
"arg": {
"end": 7568,
"raw": "true",
"start": 7564,
"type": "Literal",
"type": "Literal",
"value": true
}
}
],
"callee": {
"end": 7437,
"name": "patternCircular3d",
"start": 7420,
"type": "Identifier"
},
"end": 7575,
"start": 7420,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 7597,
"name": "color",
"start": 7592,
"type": "Identifier"
},
"arg": {
"end": 7609,
"raw": "\"#e8ec09\"",
"start": 7600,
"type": "Literal",
"type": "Literal",
"value": "#e8ec09"
}
}
],
"callee": {
"end": 7591,
"name": "appearance",
"start": 7581,
"type": "Identifier"
},
"end": 7610,
"start": 7581,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
}
],
"end": 7663,
"nonCodeMeta": {
"nonCodeNodes": {
"2": [
{
"end": 7663,
"start": 7610,
"type": "NonCodeNode",
"value": {
"type": "newLineBlockComment",
"value": "Create the hex nut and pattern around the flange",
"style": "line"
}
}
]
},
"startNodes": []
},
"start": 7324,
"type": "PipeExpression",
"type": "PipeExpression"
},
"start": 7324,
"type": "ExpressionStatement",
"type": "ExpressionStatement"
},
{
"end": 7962,
"expression": {
"body": [
{
"arguments": [
{
"elements": [
{
"computed": false,
"end": 7693,
"object": {
"end": 7690,
"name": "screwStart",
"start": 7680,
"type": "Identifier",
"type": "Identifier"
},
"property": {
"end": 7692,
"raw": "0",
"start": 7691,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
"start": 7680,
"type": "MemberExpression",
"type": "MemberExpression"
},
{
"computed": false,
"end": 7715,
"object": {
"end": 7712,
"name": "screwStart",
"start": 7702,
"type": "Identifier",
"type": "Identifier"
},
"property": {
"end": 7714,
"raw": "1",
"start": 7713,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.0,
"suffix": "None"
}
},
"start": 7702,
"type": "MemberExpression",
"type": "MemberExpression"
},
{
"computed": false,
"end": 7737,
"object": {
"end": 7734,
"name": "screwStart",
"start": 7724,
"type": "Identifier",
"type": "Identifier"
},
"property": {
"end": 7736,
"raw": "2",
"start": 7735,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 7724,
"type": "MemberExpression",
"type": "MemberExpression"
}
],
"end": 7744,
"start": 7671,
"type": "ArrayExpression",
"type": "ArrayExpression"
},
{
"end": 7749,
"raw": ".25",
"start": 7746,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.25,
"suffix": "None"
}
},
{
"end": 7765,
"left": {
"end": 7759,
"name": "screwDia",
"start": 7751,
"type": "Identifier",
"type": "Identifier"
},
"operator": "+",
"right": {
"end": 7765,
"name": "tol",
"start": 7762,
"type": "Identifier",
"type": "Identifier"
},
"start": 7751,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
],
"callee": {
"end": 7670,
"name": "hexNut",
"start": 7664,
"type": "Identifier"
},
"end": 7766,
"start": 7664,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 7802,
"name": "axis",
"start": 7798,
"type": "Identifier"
},
"arg": {
"elements": [
{
"end": 7807,
"raw": "0",
"start": 7806,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"end": 7810,
"raw": "1",
"start": 7809,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.0,
"suffix": "None"
}
},
{
"end": 7813,
"raw": "0",
"start": 7812,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
],
"end": 7814,
"start": 7805,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
},
{
"type": "LabeledArg",
"label": {
"end": 7829,
"name": "center",
"start": 7823,
"type": "Identifier"
},
"arg": {
"elements": [
{
"end": 7834,
"raw": "0",
"start": 7833,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"end": 7837,
"raw": "0",
"start": 7836,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"end": 7840,
"raw": "0",
"start": 7839,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
],
"end": 7841,
"start": 7832,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
},
{
"type": "LabeledArg",
"label": {
"end": 7859,
"name": "instances",
"start": 7850,
"type": "Identifier"
},
"arg": {
"end": 7863,
"raw": "7",
"start": 7862,
"type": "Literal",
"type": "Literal",
"value": {
"value": 7.0,
"suffix": "None"
}
}
},
{
"type": "LabeledArg",
"label": {
"end": 7882,
"name": "arcDegrees",
"start": 7872,
"type": "Identifier"
},
"arg": {
"end": 7888,
"raw": "360",
"start": 7885,
"type": "Literal",
"type": "Literal",
"value": {
"value": 360.0,
"suffix": "None"
}
}
},
{
"type": "LabeledArg",
"label": {
"end": 7913,
"name": "rotateDuplicates",
"start": 7897,
"type": "Identifier"
},
"arg": {
"end": 7920,
"raw": "true",
"start": 7916,
"type": "Literal",
"type": "Literal",
"value": true
}
}
],
"callee": {
"end": 7789,
"name": "patternCircular3d",
"start": 7772,
"type": "Identifier"
},
"end": 7927,
"start": 7772,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 7949,
"name": "color",
"start": 7944,
"type": "Identifier"
},
"arg": {
"end": 7961,
"raw": "\"#bc3434\"",
"start": 7952,
"type": "Literal",
"type": "Literal",
"value": "#bc3434"
}
}
],
"callee": {
"end": 7943,
"name": "appearance",
"start": 7933,
"type": "Identifier"
},
"end": 7962,
"start": 7933,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
}
],
"end": 7962,
"start": 7664,
"type": "PipeExpression",
"type": "PipeExpression"
},
"start": 7664,
"type": "ExpressionStatement",
"type": "ExpressionStatement"
}
],
"end": 7963,
"innerAttrs": [
{
"end": 379,
"name": {
"end": 355,
"name": "settings",
"start": 347,
"type": "Identifier"
},
"properties": [
{
"end": 378,
"key": {
"end": 373,
"name": "defaultLengthUnit",
"start": 356,
"type": "Identifier"
},
"start": 356,
"type": "ObjectProperty",
"value": {
"end": 378,
"name": "in",
"start": 376,
"type": "Identifier",
"type": "Identifier"
}
}
],
"start": 346,
"type": "Annotation"
}
],
"nonCodeMeta": {
"nonCodeNodes": {
"12": [
{
"end": 738,
"start": 702,
"type": "NonCodeNode",
"value": {
"type": "inlineComment",
"value": "Ratio grabbed from another screw",
"style": "line"
}
}
],
"13": [
{
"end": 799,
"start": 763,
"type": "NonCodeNode",
"value": {
"type": "inlineComment",
"value": "Ratio grabbed from another screw",
"style": "line"
}
}
],
"14": [
{
"end": 862,
"start": 822,
"type": "NonCodeNode",
"value": {
"type": "inlineComment",
"value": "first angle of hex pattern (degrees)",
"style": "line"
}
}
],
"15": [
{
"end": 896,
"start": 885,
"type": "NonCodeNode",
"value": {
"type": "inlineComment",
"value": "degrees",
"style": "line"
}
}
],
"16": [
{
"end": 947,
"start": 936,
"type": "NonCodeNode",
"value": {
"type": "inlineComment",
"value": "degrees",
"style": "line"
}
},
{
"end": 950,
"start": 947,
"type": "NonCodeNode",
"value": {
"type": "newLine"
}
}
],
"17": [
{
"end": 1190,
"start": 1188,
"type": "NonCodeNode",
"value": {
"type": "newLine"
}
}
],
"18": [
{
"end": 2659,
"start": 2657,
"type": "NonCodeNode",
"value": {
"type": "newLine"
}
}
],
"19": [
{
"end": 2875,
"start": 2855,
"type": "NonCodeNode",
"value": {
"type": "newLineBlockComment",
"value": "Washer function",
"style": "line"
}
}
],
"20": [
{
"end": 3237,
"start": 3216,
"type": "NonCodeNode",
"value": {
"type": "newLineBlockComment",
"value": "Hex nut function",
"style": "line"
}
}
],
"21": [
{
"end": 4303,
"start": 4276,
"type": "NonCodeNode",
"value": {
"type": "newLineBlockComment",
"value": "Mounting holes pattern",
"style": "line"
}
}
],
"27": [
{
"end": 6593,
"start": 6591,
"type": "NonCodeNode",
"value": {
"type": "newLine"
}
}
],
"30": [
{
"end": 7323,
"start": 7272,
"type": "NonCodeNode",
"value": {
"type": "newLineBlockComment",
"value": "Create the washers on the backside of the wall",
"style": "line"
}
}
]
},
"startNodes": [
{
"end": 27,
"start": 0,
"type": "NonCodeNode",
"value": {
"type": "blockComment",
"value": "Pipe and Flange Assembly",
"style": "line"
}
},
{
"end": 330,
"start": 28,
"type": "NonCodeNode",
"value": {
"type": "blockComment",
"value": "A crucial component in various piping systems, designed to facilitate the connection, disconnection, and access to piping for inspection, cleaning, and modifications. This assembly combines pipes (long cylindrical conduits) with flanges (plate-like fittings) to create a secure yet detachable joint.",
"style": "line"
}
},
{
"end": 333,
"start": 330,
"type": "NonCodeNode",
"value": {
"type": "newLine"
}
},
{
"end": 345,
"start": 333,
"type": "NonCodeNode",
"value": {
"type": "blockComment",
"value": "Set units",
"style": "line"
}
},
{
"end": 382,
"start": 379,
"type": "NonCodeNode",
"value": {
"type": "newLine"
}
},
{
"end": 401,
"start": 382,
"type": "NonCodeNode",
"value": {
"type": "blockComment",
"value": "Define constants",
"style": "line"
}
}
]
},
"start": 0
}
}