Kwargs: startProfileAt (#6424)

Previous:

```
startProfileAt([x, y], %)
startProfileAt([x, y], sketch001)
```

New:
```
startProfile(%, at = [x, y])
startProfile(sketch001, at = [x, y])
```
This commit is contained in:
Adam Chalmers
2025-04-25 16:01:35 -05:00
committed by GitHub
parent 9547e95e9d
commit ffbe20b586
573 changed files with 19805 additions and 16552 deletions

View File

@ -1,5 +1,5 @@
const part001 = startSketchOn(XY)
|> startProfileAt([4.83, 12.56], %)
|> startProfile(at = [4.83, 12.56])
|> line(end = [15.1, 2.48])
|> line(end = [3.15, -9.85], tag = $seg01)
|> line(end = [-15.17, -4.1])

View File

@ -1,5 +1,5 @@
const part001 = startSketchOn(XY)
|> startProfileAt([0,0], %)
|> startProfile(at = [0,0])
|> line(end = [0, 10], tag = $thing)
|> line(end = [10, 0])
|> line(end = [0, -10], tag = $thing2)

View File

@ -1,5 +1,5 @@
const part001 = startSketchOn(XY)
|> startProfileAt([0,0], %)
|> startProfile(at = [0,0])
|> line(end = [0, 10], tag = $thing)
|> line(end = [10, 0])
|> line(end = [0, -10], tag = $thing2)

View File

@ -1,5 +1,5 @@
const part001 = startSketchOn(XY)
|> startProfileAt([0,0], %)
|> startProfile(at = [0,0])
|> line(end = [0, 10], tag = $thing)
|> line(end = [10, 0], tag = $thing1)
|> line(end = [0, -10], tag = $thing2)

View File

@ -1,5 +1,5 @@
const part001 = startSketchOn(XY)
|> startProfileAt([0,0], %)
|> startProfile(at = [0,0])
|> line(end = [0, 10], tag = $thing)
|> line(end = [10, 0], tag = $thing1)
|> line(end = [0, -10], tag = $thing2)

View File

@ -1,5 +1,5 @@
const part001 = startSketchOn(XY)
|> startProfileAt([0,0], %)
|> startProfile(at = [0,0])
|> line(end = [0, 10], tag = $thing)
|> line(end = [10, 0])
|> line(end = [0, -10], tag = $thing2)

View File

@ -0,0 +1,9 @@
const part001 = startSketchOn(XY)
|> startProfile(at = [0, 0])
|> line(end = [1, 3.82], tag = $seg01)
|> angled(
angle = -angleToMatchLengthX(seg01, 3, %),
endAbsoluteX = 3,
)
|> close()
|> extrude(length = 10)

View File

@ -0,0 +1,9 @@
const part001 = startSketchOn(XY)
|> startProfile(at = [0, 0])
|> line(end = [1, 3.82], tag = $seg01)
|> angledLine(
angle = -angleToMatchLengthY(seg01, 3, %),
endAbsoluteX = 3,
)
|> close()
|> extrude(length = 10)

View File

@ -4,7 +4,7 @@ sketch001 = startSketchOn(XZ)
profile001 = circle(sketch001, center = [154.36, 113.92], radius = 41.09)
extrude001 = extrude(profile001, length = 200)
sketch002 = startSketchOn(XY)
profile002 = startProfileAt([72.24, -52.05], sketch002)
profile002 = startProfile(sketch002, at = [72.24, -52.05])
|> angledLine(angle = 0, length = 181.26, tag = $rectangleSegmentA001)
|> angledLine(angle = segAng(rectangleSegmentA001) - 90, length = 21.54)
|> angledLine(angle = segAng(rectangleSegmentA001), length = -segLen(rectangleSegmentA001), tag = $mySeg)
@ -19,7 +19,7 @@ extrude002 = extrude(profile002, length = 150)
)
sketch003 = startSketchOn(extrude002, face = mySeg)
profile003 = startProfileAt([207.36, 126.19], sketch003)
profile003 = startProfile(sketch003, at = [207.36, 126.19])
|> angledLine(angle = 0, length = 33.57, tag = $rectangleSegmentA002)
|> angledLine(angle = segAng(rectangleSegmentA002) - 90, length = 99.11)
|> angledLine(angle = segAng(rectangleSegmentA002), length = -segLen(rectangleSegmentA002), tag = $seg01)
@ -27,7 +27,7 @@ profile003 = startProfileAt([207.36, 126.19], sketch003)
|> close()
extrude003 = extrude(profile003, length = -20)
sketch004 = startSketchOn(extrude003, face = seg01)
profile004 = startProfileAt([-235.38, 66.16], sketch004)
profile004 = startProfile(sketch004, at = [-235.38, 66.16])
|> angledLine(angle = 0, length = 24.21, tag = $rectangleSegmentA003)
|> angledLine(angle = segAng(rectangleSegmentA003) - 90, length = 3.72)
|> angledLine(angle = segAng(rectangleSegmentA003), length = -segLen(rectangleSegmentA003))
@ -36,7 +36,7 @@ profile004 = startProfileAt([-235.38, 66.16], sketch004)
extrude004 = extrude(profile004, length = 30)
sketch005 = startSketchOn(extrude002, face = seg02)
profile005 = startProfileAt([-129.93, -59.19], sketch005)
profile005 = startProfile(sketch005, at = [-129.93, -59.19])
|> xLine(length = 48.79)
|> line(end = [1.33, 11.03])
|> xLine(length = -60.56, tag = $seg03)
@ -44,7 +44,7 @@ profile005 = startProfileAt([-129.93, -59.19], sketch005)
|> close()
extrude005 = extrude(profile005, length = -10)
sketch006 = startSketchOn(extrude005, face = seg03)
profile006 = startProfileAt([-95.86, 38.73], sketch006)
profile006 = startProfile(sketch006, at = [-95.86, 38.73])
|> angledLine(angle = 0, length = 3.48, tag = $rectangleSegmentA004)
|> angledLine(angle = segAng(rectangleSegmentA004) - 90, length = 3.36)
|> angledLine(angle = segAng(rectangleSegmentA004), length = -segLen(rectangleSegmentA004))

View File

@ -21,7 +21,7 @@ const filletR = 0.25
// Sketch the bracket and extrude with fillets
const bracket = startSketchOn(XY)
|> startProfileAt([0, 0], %)
|> startProfile(at = [0, 0])
|> line(end = [0, wallMountL], tag = 'outerEdge')
|> line(end = [-shelfMountL, 0])
|> line(end = [0, -thickness])

View File

@ -1,5 +1,5 @@
exampleSketch = startSketchOn(XZ)
|> startProfileAt([0, 0], %)
|> startProfile(at = [0, 0])
|> line(end = [0, 2])
|> line(end = [3, 1])
|> line(end = [0, -4])

View File

@ -3,7 +3,7 @@ const radius = 40
const height = 3
const body = startSketchOn(XY)
|> startProfileAt([center[0]+radius, center[1]], %)
|> startProfile(at = [center[0]+radius, center[1]])
|> arc(angleEnd = 360, angleStart = 0, radius = radius)
|> close()
|> extrude(length = height)

View File

@ -8,7 +8,7 @@ fn cube(length, center) {
p3 = [ l + x, -l + y]
return startSketchOn(XY)
|> startProfileAt(p0, %)
|> startProfile(at = p0)
|> line(endAbsolute = p1)
|> line(endAbsolute = p2)
|> line(endAbsolute = p3)

View File

@ -1,5 +1,5 @@
const part001 = startSketchOn(XY)
|> startProfileAt([-10, -10], %)
|> startProfile(at = [-10, -10])
|> line(end = [20, 0])
|> line(end = [0, 20])
|> line(end = [-20, 0])

View File

@ -1,6 +1,6 @@
@settings(defaultLengthUnit = in)
sketch001 = startSketchOn(XZ)
|> startProfileAt([75.8, 317.2], %)
|> startProfile(at = [75.8, 317.2])
|> angledLine(angle = 0, length = 268.43, tag = $rectangleSegmentA001)
|> angledLine(angle = segAng(rectangleSegmentA001) - 90, length = 217.26, tag = $seg01)
|> angledLine(angle = segAng(rectangleSegmentA001), length = -segLen(rectangleSegmentA001), tag = $yo)

View File

@ -1,6 +1,6 @@
@settings(defaultLengthUnit = in)
sketch001 = startSketchOn(XZ)
|> startProfileAt([75.8, 317.2], %) // [$startCapTag, $EndCapTag]
|> startProfile(at = [75.8, 317.2]) // [$startCapTag, $EndCapTag]
|> angledLine(angle = 0, length = 268.43, tag = $rectangleSegmentA001)
|> angledLine(angle = segAng(rectangleSegmentA001) - 90, length = 217.26, tag = $seg01)
|> angledLine(angle = segAng(rectangleSegmentA001), length = -segLen(rectangleSegmentA001), tag = $yo)

View File

@ -1,6 +1,6 @@
// create a sketch with name sketch000
const sketch000 = startSketchOn(XY)
|> startProfileAt([0.0, 0.0], %)
|> startProfile(at = [0.0, 0.0])
|> line(end = [1.0, 1.0], tag = $line000)
|> line(end = [0.0, -1.0], tag = $line001)
|> line(end = [-1.0, 0.0], tag = $line002)
@ -18,7 +18,7 @@ const plane005 = {
// create a sketch with name sketch001
const sketch001 = startSketchOn(plane005)
|> startProfileAt([0.100000, 0.250000], %)
|> startProfile(at = [0.100000, 0.250000])
|> line(end = [0.075545, 0.494260], tag = $line003)
|> line(end = [0.741390, -0.113317], tag = $line004)
|> line(end = [-0.816935, -0.380943], tag = $line005)

View File

@ -16,7 +16,7 @@ const tabThk = 4
// define a rectangular shape func
fn rectShape = (pos, w, l) => {
const rr = startSketchOn(XY)
|> startProfileAt([pos[0] - (w / 2), pos[1] - (l / 2)], %)
|> startProfile(at = [pos[0] - (w / 2), pos[1] - (l / 2)])
|> line(endAbsolute = [pos[0] + w / 2, pos[1] - (l / 2)], tag = $edge01)
|> line(endAbsolute = [pos[0] + w / 2, pos[1] + l / 2], tag = $edge02)
|> line(endAbsolute = [pos[0] - (w / 2), pos[1] + l / 2], tag = $edge03)
@ -35,7 +35,7 @@ const bracketPlane = {
// build the bracket sketch around the body
fn bracketSketch = (w, d, t) => {
const s = startSketchOn(bracketPlane)
|> startProfileAt([-w / 2 - t, d + t], %)
|> startProfile(at = [-w / 2 - t, d + t])
|> line(endAbsolute = [-w / 2 - t, -t], tag = $edge1)
|> line(endAbsolute = [w / 2 + t, -t], tag = $edge2)
|> line(endAbsolute = [w / 2 + t, d + t], tag = $edge3)
@ -64,7 +64,7 @@ const bracketBody = bs
// sketch on the face
const retBack = startSketchOn(bs, face = bs.sketch.tags.edge4)
|> startProfileAt([length / 2 + thk, 0], %)
|> startProfile(at = [length / 2 + thk, 0])
|> line(end = [0, thk])
|> line(end = [-thk, 0])
|> line(end = [0, -thk])

View File

@ -23,10 +23,7 @@ microUsbWidth = 7.4
connectorPadding = 4
miniHdmiHole = startSketchOn(XY)
|> startProfileAt([
0,
border + miniHdmiDistance - (miniHdmiWidth / 2)
], %)
|> startProfile(at = [0, border + miniHdmiDistance - (miniHdmiWidth / 2)])
|> lineTo([
0,
border + miniHdmiDistance + miniHdmiWidth / 2
@ -42,7 +39,7 @@ miniHdmiHole = startSketchOn(XY)
|> close()
case = startSketchOn(XY)
|> startProfileAt([0, 0], %)
|> startProfile(at = [0, 0])
|> line(endAbsolute = [caseWidth, 0], $edge1)
|> line(endAbsolute = [caseWidth, caseLength], $edge2)
|> line(endAbsolute = [0, caseLength], $edge3)
@ -61,7 +58,7 @@ case = startSketchOn(XY)
fn m25Screw = (x, y, height) => {
screw = startSketchOn(XY)
|> startProfileAt([0, 0], %)
|> startProfile(at = [0, 0])
|> circle(center= [x, y], radius=2.5)
|> hole(circle(center= [x, y], radius = 1.25), %)
|> extrude(length = height)

View File

@ -1,4 +1,4 @@
startProfileAt([0, 0], startSketchOn("XY"))
startProfile(startSketchOn("XY"), at = [0, 0])
|> xLine(length = 10, tag = $line000)
|> yLine(length = 10, tag = $line001)
|> xLine(endAbsolute = profileStartX(%), tag = $line002)

View File

@ -16,7 +16,7 @@ const tabThk = 4
// define a rectangular shape func
fn rectShape = (pos, w, l) => {
const rr = startSketchOn('xy')
|> startProfileAt([pos[0] - (w / 2), pos[1] - (l / 2)], %)
|> startProfile(at = [pos[0] - (w / 2), pos[1] - (l / 2)])
|> line(endAbsolute = [pos[0] + w / 2, pos[1] - (l / 2)], tag = $edge01)
|> line(endAbsolute = [pos[0] + w / 2, pos[1] + l / 2], tag = $edge02)
|> line(endAbsolute = [pos[0] - (w / 2), pos[1] + l / 2], tag = $edge03)
@ -35,7 +35,7 @@ const bracketPlane = {
// build the bracket sketch around the body
fn bracketSketch = (w, d, t) => {
const s = startSketchOn(bracketPlane)
|> startProfileAt([-w / 2 - t, d + t], %)
|> startProfile(at = [-w / 2 - t, d + t])
|> line(endAbsolute = [-w / 2 - t, -t], tag = $edge1)
|> line(endAbsolute = [w / 2 + t, -t], tag = $edge2)
|> line(endAbsolute = [w / 2 + t, d + t], tag = $edge3)
@ -71,7 +71,7 @@ const tabPlane = {
// build the tabs of the mounting bracket (right side)
const tabsR = startSketchOn(tabPlane)
|> startProfileAt([width / 2 + thk, length / 2 + thk], %)
|> startProfile(at = [width / 2 + thk, length / 2 + thk])
|> line(end = [tabWidth, -tabLength / 3], tag = $edge11)
|> line(end = [0, -tabLength / 3 * 2], tag = $edge12)
|> line(end = [-tabWidth, -tabLength / 3], tag = $edge13)
@ -99,7 +99,7 @@ const tabsR = startSketchOn(tabPlane)
// build the tabs of the mounting bracket (left side)
const tabsL = startSketchOn(tabPlane)
|> startProfileAt([-width / 2 - thk, length / 2 + thk], %)
|> startProfile(at = [-width / 2 - thk, length / 2 + thk])
|> line(end = [-tabWidth, -tabLength / 3], tag = $edge21)
|> line(end = [0, -tabLength / 3 * 2], tag = $edge22)
|> line(end = [tabWidth, -tabLength / 3], tag = $edge23)
@ -135,7 +135,7 @@ const retPlane = {
// build the retention bump in the front
const retFront = startSketchOn(retPlane)
|> startProfileAt([-length / 2 - thk, 0], %)
|> startProfile(at = [-length / 2 - thk, 0])
|> line(end = [0, thk])
|> line(end = [thk, -thk])
|> close()
@ -143,7 +143,7 @@ const retFront = startSketchOn(retPlane)
// build the retention bump in the back
const retBack = startSketchOn(retPlane)
|> startProfileAt([length / 2 + thk, 0], %)
|> startProfile(at = [length / 2 + thk, 0])
|> line(end = [0, thk])
|> line(end = [-thk, 0])
|> line(end = [0, -thk])

View File

@ -1,6 +1,6 @@
fn box = (h, l, w) => {
const myBox = startSketchOn(XY)
|> startProfileAt([0,0], %)
|> startProfile(at = [0,0])
|> line(end = [0, l])
|> line(end = [w, 0])
|> line(end = [0, -l])

View File

@ -1,6 +1,6 @@
fn box = (p, h, l, w) => {
const myBox = startSketchOn(XY)
|> startProfileAt(p, %)
|> startProfile(at = p)
|> line(end = [0, l])
|> line(end = [w, 0])
|> line(end = [0, -l])

View File

@ -16,7 +16,7 @@ const tabThk = 4
// define a rectangular shape func
fn rectShape = (pos, w, l) => {
const rr = startSketchOn('xy')
|> startProfileAt([pos[0] - (w / 2), pos[1] - (l / 2)], %)
|> startProfile(at = [pos[0] - (w / 2), pos[1] - (l / 2)])
|> line(endAbsolute = [pos[0] + w / 2, pos[1] - (l / 2)], tag = $edge01)
|> line(endAbsolute = [pos[0] + w / 2, pos[1] + l / 2], tag = $edge02)
|> line(endAbsolute = [pos[0] - (w / 2), pos[1] + l / 2], tag = $edge03)
@ -35,7 +35,7 @@ const bracketPlane = {
// build the bracket sketch around the body
fn bracketSketch = (w, d, t) => {
const s = startSketchOn(bracketPlane)
|> startProfileAt([-w / 2 - t, d + t], %)
|> startProfile(at = [-w / 2 - t, d + t])
|> line(endAbsolute = [-w / 2 - t, -t], tag = $edge1)
|> line(endAbsolute = [w / 2 + t, -t], tag = $edge2)
|> line(endAbsolute = [w / 2 + t, d + t], tag = $edge3)
@ -71,7 +71,7 @@ const tabPlane = {
// build the tabs of the mounting bracket (right side)
const tabsR = startSketchOn(tabPlane)
|> startProfileAt([width / 2 + thk, length / 2 + thk], %)
|> startProfile(at = [width / 2 + thk, length / 2 + thk])
|> line(end = [tabWidth, -tabLength / 3], tag = $edge11)
|> line(end = [0, -tabLength / 3 * 2], tag = $edge12)
|> line(end = [-tabWidth, -tabLength / 3], tag = $edge13)
@ -99,7 +99,7 @@ const tabsR = startSketchOn(tabPlane)
// build the tabs of the mounting bracket (left side)
const tabsL = startSketchOn(tabPlane)
|> startProfileAt([-width / 2 - thk, length / 2 + thk], %)
|> startProfile(at = [-width / 2 - thk, length / 2 + thk])
|> line(end = [-tabWidth, -tabLength / 3], tag = $edge21)
|> line(end = [0, -tabLength / 3 * 2], tag = $edge22)
|> line(end = [tabWidth, -tabLength / 3], tag = $edge23)
@ -135,7 +135,7 @@ const retPlane = {
// build the retention bump in the front
const retFront = startSketchOn(retPlane)
|> startProfileAt([-length / 2 - thk, 0], %)
|> startProfile(at = [-length / 2 - thk, 0])
|> line(end = [0, thk])
|> line(end = [thk, -thk])
|> close()
@ -143,7 +143,7 @@ const retFront = startSketchOn(retPlane)
// build the retention bump in the back
const retBack = startSketchOn(retPlane)
|> startProfileAt([length / 2 + thk, 0], %)
|> startProfile(at = [length / 2 + thk, 0])
|> line(end = [0, thk])
|> line(end = [-thk, 0])
|> line(end = [0, -thk])

View File

@ -8,7 +8,7 @@ let corner_radius = 5.0
// but I measured intentionally to not be symmetric,
// because your wrist isn't a perfect cylindrical surface
let brace_base = startSketchOn(XY)
|> startProfileAt([corner_radius, 0], %)
|> startProfile(at = [corner_radius, 0])
|> line(end = [width - corner_radius, 0.0])
|> tangentialArc(end = [corner_radius, corner_radius])
|> yLine(length = 25.0 - corner_radius)
@ -36,7 +36,7 @@ let brace_base = startSketchOn(XY)
|> close()
let inner = startSketchOn(XY)
|> startProfileAt([0, 0], %)
|> startProfile(at = [0, 0])
|> xLine(length = 1.0)
|> tangentialArc(end = [corner_radius, corner_radius])
|> yLine(length = 25.0 - (corner_radius * 2))

View File

@ -1,5 +1,5 @@
const svg = startSketchOn(XY)
|> startProfileAt([0, 0], %)
|> startProfile(at = [0, 0])
|> line(endAbsolute = [2.52, -26.04]) // MoveAbsolute
|> line(endAbsolute = [2.52, -25.2]) // VerticalLineAbsolute

View File

@ -20,7 +20,7 @@ const wSegments = total_width / (wbumps + 1)
// make the base
const s = startSketchOn(XY)
|> startProfileAt([-total_width / 2, -total_length / 2], %)
|> startProfile(at = [-total_width / 2, -total_length / 2])
|> line(end = [total_width, 0])
|> line(end = [0, total_length])
|> line(end = [-total_width, 0])
@ -28,10 +28,7 @@ const s = startSketchOn(XY)
|> extrude(length = height)
const shellExtrude = startSketchOn(s, face = "start")
|> startProfileAt([
-(total_width / 2 - t),
-(total_length / 2 - t)
], %)
|> startProfile(at = [-(total_width / 2 - t), -(total_length / 2 - t)])
|> line(end = [total_width - (2 * t), 0])
|> line(end = [0, total_length - (2 * t)])
|> line(end = [-(total_width - (2 * t)), 0])

View File

@ -1,5 +1,5 @@
exampleSketch = startSketchOn(XZ)
|> startProfileAt([0, 0], %)
|> startProfile(at = [0, 0])
|> line(end = [0, 2])
|> line(end = [3, 1])
|> line(end = [0, -4])

View File

@ -101,7 +101,7 @@ fn F = (state, F) => {
fn LSystem = (args, axioms) => {
myThing = startSketchOn(XY)
|> startProfileAt([0, 0], %)
|> startProfile(at = [0, 0])
return axioms({
depthMax: args.iterations,
depth: 0,

View File

@ -1,6 +1,6 @@
fn square = (pos, scale) => {
sg = startSketchOn(XY)
|> startProfileAt(pos, %)
|> startProfile(at = pos)
|> line(end = [0, scale])
|> line(end = [scale, 0])
|> line(end = [0, -scale])

View File

@ -1,5 +1,5 @@
const part001 = startSketchOn(XY)
|> startProfileAt([0.0, 0.0], %)
|> startProfile(at = [0.0, 0.0])
|> line(end = [-0.3670208139314082, 0.21201331909674526])
|> line(end = [-0.4707511307971115, 0.4905279615419764])
|> line(end = [-0.8328324229085962, 0.4677492878818803])

View File

@ -1,5 +1,5 @@
part001 = startSketchOn('-XZ')
|> startProfileAt([0, 0], %)
|> startProfile(at = [0, 0])
|> line(endAbsolute = [100, 100])
|> line(endAbsolute = [100, 0])
|> close()

View File

@ -4,7 +4,7 @@ const length = 12
fn box = (sk1, sk2, scale) => {
const boxSketch = startSketchOn(XY)
|> startProfileAt([sk1, sk2], %)
|> startProfile(at = [sk1, sk2])
|> line(end = [0, scale])
|> line(end = [scale, 0])
|> line(end = [0, -scale])

View File

@ -2,4 +2,4 @@ export fn foo = () => { return 0 }
// This interacts with the engine.
part001 = startSketchOn(XY)
|> startProfileAt([0, 0], %)
|> startProfile(at = [0, 0])

View File

@ -16,7 +16,7 @@ const plane94894440791888 = {
// create a sketch with UID 94894440902176
const sketch94894440902176 = startSketchOn('-XZ')
|> startProfileAt([-0.005, -0.005], %)
|> startProfile(at = [-0.005, -0.005])
|> line(end = [0.01, 0.0], tag = $line94894439494384)
|> line(end = [0.0, 0.01], tag = $line94894439429616)
|> line(end = [-0.01, 0.0], tag = $line94894439638160)
@ -27,10 +27,7 @@ const extrude94894439487136 = extrude(sketch94894440902176, length = 0.01)
// create a sketch with UID 94894439448464
const sketch94894439448464 = startSketchOn(plane94894440791888)
|> startProfileAt([
0.00074557205559017,
0.00306415853984399
], %)
|> startProfile(at = [0.00074557205559017, 0.00306415853984399])
|> line(end = [0.004999999999999999, 0.0], tag = $line94894440230336)
|> line(end = [0.0, -0.005], tag = $line94894439497168)
|> line(end = [-0.004999999999999999, 0.0], tag = $line94894439496768)

View File

@ -16,7 +16,7 @@ const plane94894440791888 = {
// create a sketch with UID 94894440902176
const sketch94894440902176 = startSketchOn('-XZ')
|> startProfileAt([-0.005, -0.005], %)
|> startProfile(at = [-0.005, -0.005])
|> line(end = [0.01, 0.0], tag = $line94894439494384)
|> line(end = [0.0, 0.01], tag = $line94894439429616)
|> line(end = [-0.01, 0.0], tag = $line94894439638160)
@ -24,10 +24,7 @@ const sketch94894440902176 = startSketchOn('-XZ')
// create a sketch with UID 94894439448464
const sketch94894439448464 = startSketchOn(plane94894440791888)
|> startProfileAt([
0.00074557205559017,
0.00306415853984399
], %)
|> startProfile(at = [0.00074557205559017, 0.00306415853984399])
|> line(end = [0.004999999999999999, 0.0], tag = $line94894440230336)
|> line(end = [0.0, -0.005], tag = $line94894439497168)
|> line(end = [-0.004999999999999999, 0.0], tag = $line94894439496768)

View File

@ -8,7 +8,7 @@ const leg1 = 5 // inches
const leg2 = 8 // inches
const thickness = sqrt(distance * p * FOS * 6 / sigmaAllow / width) // inches
const bracket = startSketchOn(XY)
|> startProfileAt([0, 0], %)
|> startProfile(at = [0, 0])
|> line(end = [0, leg1])
|> line(end = [leg2, 0])
|> line(end = [0, -thickness])

View File

@ -9,7 +9,7 @@ const shelfMountL = 9
const wallMountL = 8
const bracket = startSketchOn(XY)
|> startProfileAt([0, 0], %)
|> startProfile(at = [0, 0])
|> line(end = [0, wallMountL])
|> tangentialArc(
radius = filletR,

View File

@ -4,7 +4,7 @@ let radius = 80
let triangleLen = 500
const p = startSketchOn(XY)
|> startProfileAt([0, 0], %)
|> startProfile(at = [0, 0])
|> angledLine(angle = 60, length = triangleLen, tag = $a)
|> angledLine(angle = 180, length = triangleLen, tag = $b)
|> angledLine(angle = 300, length = triangleLen, tag = $c)
@ -12,7 +12,7 @@ const p = startSketchOn(XY)
fn circl = (x, face) => {
return startSketchOn(p, face = face)
|> startProfileAt([x + radius, triangleHeight/2], %)
|> startProfile(at = [x + radius, triangleHeight/2])
|> arc(
angleStart = 0,
angleEnd = 360,

View File

@ -8,7 +8,7 @@ fn cube = (length, center) => {
let p3 = [ l + x, -l + y]
return startSketchOn(XY)
|> startProfileAt(p0, %)
|> startProfile(at = p0)
|> line(endAbsolute = p1)
|> line(endAbsolute = p2)
|> line(endAbsolute = p3)

View File

@ -1,5 +1,5 @@
const svg = startSketchOn(XY)
|> startProfileAt([0, 0], %)
|> startProfile(at = [0, 0])
|> line(endAbsolute = [22.687663, -2.7664351]) // MoveRelative
|> line(endAbsolute = [15.687664000000002, -5.7664351]) // MoveRelative

View File

@ -0,0 +1,52 @@
wall_thickness = 0.125
back_walls_width = 2
front_walls_width = 2.5
height = 5.5
filletRadius = 0.050
back_length = 7
exit_height = 1
front_length = 6
Fx = 0.5
Fy = 0.5
sketch001 = startSketchOn('-YZ')
|> startProfile(at = [back_walls_width / 2, 0])
|> xLine(length = wall_thickness / 2)
|> angledLine(angle = 45, endAbsoluteX = back_walls_width, tag = $seg01)
|> yLine(endAbsolute = height)
|> xLine(length = -wall_thickness)
|> yLine(endAbsolute = segEndY(seg01))
|> angledLine(angle = 45, endAbsoluteX = back_walls_width / 2 + wall_thickness / 2)
|> xLine(length = -wall_thickness)
|> angledLine(angle = 180 - 45, endAbsoluteX = wall_thickness)
|> yLine(endAbsolute = height)
|> xLine(endAbsolute = 0)
|> yLine(endAbsolute = segEndY(seg01))
|> angledLine(angle = 180 - 45, endAbsoluteY = 0)
|> close()
part001 = revolve({
angle: 90,
axis: {
custom: {
axis: [1.0, 0.0],
origin: [0.0, height + .0000001]
}
}
}, sketch001)
sketch002 = startSketchOn('-YZ')
|> startProfile(at = [back_walls_width / 2, 0])
|> xLine(length = wall_thickness / 2)
|> angledLine(angle = 45, endAbsoluteX = back_walls_width, tag = $seg02)
|> yLine(endAbsolute = height)
|> xLine(length = -wall_thickness)
|> yLine(endAbsolute = segEndY(seg01))
|> angledLine(angle = 45, endAbsoluteX = back_walls_width / 2 + wall_thickness / 2)
|> xLine(length = -wall_thickness)
|> angledLine(angle = 180 - 45, endAbsoluteX = wall_thickness)
|> yLine(endAbsolute = height)
|> xLine(endAbsolute = 0)
|> yLine(endAbsolute = segEndY(seg02))
|> angledLine(angle = 180 - 45, endAbsoluteY = 0)
|> close()
|> extrude(length = back_length - height)

View File

@ -7,7 +7,7 @@ fn p = (xs, ys) => {
let ox = 35 - (m(xs) % 70)
let oy = 35 - (m(ys) % 70)
const r = startSketchOn(XZ)
|> startProfileAt([ox, oy], %)
|> startProfile(at = [ox, oy])
|> line(end = [1, 0])
|> line(end = [0, -1])
|> line(end = [-1, 0])

View File

@ -9,7 +9,7 @@ let ys = 71816
let ox = 35 - (t(xs) % 70)
let oy = 35 - (t(ys) % 70)
const r = startSketchOn(XZ)
|> startProfileAt([ox, oy], %)
|> startProfile(at = [ox, oy])
|> line(end = [1, 0])
|> line(end = [0, -1])
|> line(end = [-1, 0])

View File

@ -10,7 +10,7 @@ const depth = 30
const length001 = slateWidthHalf - radius
const length002 = depth + minClampingDistance
const sketch001 = startSketchOn(XZ)
|> startProfileAt([0, depth - templateGap], %)
|> startProfile(at = [0, depth - templateGap])
|> xLine(length = length001, tag = $seg01)
|> arc(
angleEnd = 0,
@ -34,10 +34,7 @@ const sketch001 = startSketchOn(XZ)
|> close()
const extrude001 = extrude(sketch001, length = 5)
const sketch002 = startSketchOn(extrude001, face = 'START')
|> startProfileAt([
-slateWidthHalf,
-templateGap * 2 - (templateDiameter / 2)
], %)
|> startProfile(at = [-slateWidthHalf, -templateGap * 2 - (templateDiameter / 2)])
|> xLine(length = -7, tag = $rectangleSegmentA001)
|> angledLine(angle = segAng(rectangleSegmentA001, %) + 90, length = minClampingDistance, tag = $rectangleSegmentB001)
|> angledLine(angle = segAng(rectangleSegmentA001, %), length = -segLen(rectangleSegmentA001, %), tag = $rectangleSegmentC001)
@ -45,10 +42,7 @@ const sketch002 = startSketchOn(extrude001, face = 'START')
|> close()
const extrude002 = extrude(sketch002, length = 7.5)
const sketch003 = startSketchOn(extrude001, face = 'START')
|> startProfileAt([
slateWidthHalf,
-templateGap * 2 - (templateDiameter / 2)
], %)
|> startProfile(at = [slateWidthHalf, -templateGap * 2 - (templateDiameter / 2)])
|> xLine(length = 7, tag = $rectangleSegmentA002)
|> angledLine(angle = segAng(rectangleSegmentA002, %) - 90, length = minClampingDistance)
|> angledLine(angle = segAng(rectangleSegmentA002, %), length = -segLen(rectangleSegmentA002, %))

View File

@ -1,6 +1,6 @@
fn rect = (origin) => {
return startSketchOn(XZ)
|> startProfileAt(origin, %)
|> startProfile(at = origin)
|> angledLine(
angle = 0,
length = 191.26,

View File

@ -22,7 +22,7 @@ fn caster = (originStart) => {
}
const sketch001c = startSketchOn(plane001c)
|> startProfileAt([0, 0], %)
|> startProfile(at = [0, 0])
|> xLine(length = 3.543)
|> yLine(length = 3.543)
|> xLine(length = -3.543)
@ -47,7 +47,7 @@ fn caster = (originStart) => {
|> extrude(length = -.25)
const sketch002c = startSketchOn(sketch001c, face = 'START')
|> startProfileAt([-originStart[0], 2.2 + originStart[1]], %)
|> startProfile(at = [-originStart[0], 2.2 + originStart[1]])
|> arc(
angle_start = 30,
angle_end = 330,
@ -103,7 +103,7 @@ const plane001 = {
}
const sketch001l = startSketchOn(plane001)
|> startProfileAt([0, 0], %)
|> startProfile(at = [0, 0])
|> xLine(length = serverDepth + .8)
|> angledLine(angle = -45, endAbsoluteY = 1)
|> xLine(length = -serverDepth + 2 - .8, tag = $seg01)
@ -112,7 +112,7 @@ const sketch001l = startSketchOn(plane001)
const extrude001l = extrude(sketch001l, length = 1)
const sketch002l = startSketchOn(plane001)
|> startProfileAt([serverDepth + .8, 0], %)
|> startProfile(at = [serverDepth + .8, 0])
|> yLine(length = railHeight * 1.75 + 2)
|> angledLine(angle = -135, endAbsoluteX = serverDepth - 1 + .8)
|> yLine(length = -railHeight * 1.75)
@ -121,10 +121,7 @@ const sketch002l = startSketchOn(plane001)
const extrude002l = extrude(sketch002l, length = 1)
const sketch003l = startSketchOn(plane001)
|> startProfileAt([
serverDepth + .8,
railHeight * 1.75 + 2
], %)
|> startProfile(at = [serverDepth + .8, railHeight * 1.75 + 2])
|> xLine(length = -serverDepth - .8, tag = $seg02)
|> angledLine(angle = -45, endAbsoluteY = railHeight * 1.75 - 1 + 2)
|> xLine(length = serverDepth - 2 + .8)
@ -133,7 +130,7 @@ const sketch003l = startSketchOn(plane001)
const extrude003l = extrude(sketch003l, length = 1)
const sketch004l = startSketchOn(plane001)
|> startProfileAt([0, 0], %)
|> startProfile(at = [0, 0])
|> yLine(length = railHeight * 1.75 + 2)
|> angledLine(angle = 135, endAbsoluteY = railHeight * 1.75 + 2 - 1)
|> yLine(length = -railHeight * 1.75)
@ -142,7 +139,7 @@ const sketch004l = startSketchOn(plane001)
const extrude004l = extrude(sketch004l, length = 1)
const sketch005l = startSketchOn(plane001)
|> startProfileAt([serverDepth - 1.25, 1], %)
|> startProfile(at = [serverDepth - 1.25, 1])
|> line(end = [-serverDepth + 2.25, railHeight * 1.75], tag = $lineToIntersect4)
|> xLine(length = 1)
|> line(end = [serverDepth - 2.25, -railHeight * 1.75], tag = $lineToIntersect5)
@ -151,7 +148,7 @@ const sketch005l = startSketchOn(plane001)
const extrude005l = extrude(sketch005l, length = 1)
const sketch006l = startSketchOn(plane001)
|> startProfileAt([1, 1], %)
|> startProfile(at = [1, 1])
|> angledLineThatIntersects(
angle = 70,
intersectTag = lineToIntersect4,
@ -164,10 +161,7 @@ const sketch006l = startSketchOn(plane001)
const extrude006l = extrude(sketch006l, length = 1)
const sketch007l = startSketchOn(plane001)
|> startProfileAt([
serverDepth - 1.2,
railHeight * 1.75 + 1
], %)
|> startProfile(at = [serverDepth - 1.2, railHeight * 1.75 + 1])
|> angledLineThatIntersects(
angle = 70,
intersectTag = lineToIntersect5,
@ -192,7 +186,7 @@ const plane002 = {
}
const sketch001w = startSketchOn(plane002)
|> startProfileAt([0, 0], %)
|> startProfile(at = [0, 0])
|> xLine(length = depth)
|> angledLine(angle = -45, endAbsoluteY = 1)
|> xLine(length = -depth + 2, tag = $seg01w)
@ -201,7 +195,7 @@ const sketch001w = startSketchOn(plane002)
const extrude001w = extrude(sketch001w, length = 1)
const sketch002w = startSketchOn(plane002)
|> startProfileAt([depth, 0], %)
|> startProfile(at = [depth, 0])
|> yLine(length = railHeight * 1.75 + 2)
|> angledLine(angle = -135, endAbsoluteX = depth - 1)
|> yLine(length = -railHeight * 1.75)
@ -210,7 +204,7 @@ const sketch002w = startSketchOn(plane002)
const extrude002w = extrude(sketch002w, length = 1)
const sketch003w = startSketchOn(plane002)
|> startProfileAt([depth, railHeight * 1.75 + 2], %)
|> startProfile(at = [depth, railHeight * 1.75 + 2])
|> xLine(length = -depth, tag = $seg02w)
|> angledLine(angle = -45, endAbsoluteY = railHeight * 1.75 - 1 + 2)
|> xLine(length = depth - 2)
@ -219,7 +213,7 @@ const sketch003w = startSketchOn(plane002)
const extrude003w = extrude(sketch003w, length = 1)
const sketch004w = startSketchOn(plane002)
|> startProfileAt([0, 0], %)
|> startProfile(at = [0, 0])
|> yLine(length = railHeight * 1.75 + 2)
|> angledLine(angle = 135, endAbsoluteY = railHeight * 1.75 + 2 - 1)
|> yLine(length = -railHeight * 1.75)
@ -228,7 +222,7 @@ const sketch004w = startSketchOn(plane002)
const extrude004w = extrude(sketch004w, length = 1)
const sketch005w = startSketchOn(plane002)
|> startProfileAt([1, 40.6 + 1.75 / 2], %)
|> startProfile(at = [1, 40.6 + 1.75 / 2])
|> angledLine(angle = -23, length = 35.5 )
|> angledLine(angle = -23 + 90 + 45, length = 1.413 )
|> angledLine(angle = -23, endAbsoluteX = 1, tag = $lineToIntersect)
@ -237,10 +231,7 @@ const sketch005w = startSketchOn(plane002)
const extrude005w = extrude(sketch005w, length = 1)
const sketch006w = startSketchOn(plane002)
|> startProfileAt([
1 + 35.5 * cos(23 * pi() / 180),
40.6 - (35.5 * sin(23 * pi() / 180)) + 1.75 / 2
], %)
|> startProfile(at = [1 + 35.5 * cos(23 * pi() / 180), 40.6 - (35.5 * sin(23 * pi() / 180)) + 1.75 / 2])
|> angledLine(angle = -23 + 90, endAbsoluteX = depth - 1)
|> yLine(length = 2.56)
|> angledLineThatIntersects(
@ -254,7 +245,7 @@ const sketch006w = startSketchOn(plane002)
const extrude006w = extrude(sketch006w, length = 1)
const sketch007w = startSketchOn(plane002)
|> startProfileAt([depth - 1, 60.65 + 1.75 / 2], %)
|> startProfile(at = [depth - 1, 60.65 + 1.75 / 2])
|> angledLine(angle = -23 + 180, length = 34.93 , tag = $lineToIntersect3)
|> angledLine(angle = 23 - 90, length = 1.414 )
|> angledLineThatIntersects(
@ -267,7 +258,7 @@ const sketch007w = startSketchOn(plane002)
const extrude007w = extrude(sketch007w, length = 1)
const sketch008w = startSketchOn(plane002)
|> startProfileAt([1, 41.7 + 1.75 / 2], %)
|> startProfile(at = [1, 41.7 + 1.75 / 2])
|> angledLineThatIntersects(
angle = -23 + 90,
intersectTag = lineToIntersect3,
@ -284,7 +275,7 @@ const sketch008w = startSketchOn(plane002)
const extrude008w = extrude(sketch008w, length = 1)
const sketch009w = startSketchOn(plane002)
|> startProfileAt([31.2, 33.3 + 1.75 / 2], %)
|> startProfile(at = [31.2, 33.3 + 1.75 / 2])
|> angledLine(angle = -23 - 45, length = 1.414 )
|> angledLine(angle = 90 - 23, length = 28 )
|> angledLine(angle = -23 + 45, length = -1.414 )
@ -293,7 +284,7 @@ const sketch009w = startSketchOn(plane002)
const extrude009w = extrude(sketch009w, length = 1)
const sketch010w = startSketchOn(plane002)
|> startProfileAt([31.2, 33.3 + 1.75 / 2], %)
|> startProfile(at = [31.2, 33.3 + 1.75 / 2])
|> angledLine(angle = -23 - 45, length = 1.414 )
|> angledLine(angle = 180 - 23, length = 28 )
|> angledLine(angle = -23 + 45, length = 1.414 )
@ -302,10 +293,7 @@ const sketch010w = startSketchOn(plane002)
const extrude010w = extrude(sketch010w, length = 1)
const sketch011w = startSketchOn(plane002)
|> startProfileAt([
31.2 - ((28 - 2) * cos(23 * pi() / 180)),
33.3 + (28 - 2) * sin(23 * pi() / 180) + 1.75 / 2
], %)
|> startProfile(at = [31.2 - ((28 - 2) * cos(23 * pi() / 180)), 33.3 + (28 - 2) * sin(23 * pi() / 180) + 1.75 / 2])
|> angledLine(angle = 90 - 23, length = 28 - 2 )
|> angledLine(angle = -23 - 45, length = -1.414 )
|> angledLine(angle = 90 - 23 + 180, length = 28 )
@ -314,10 +302,7 @@ const sketch011w = startSketchOn(plane002)
const extrude011w = extrude(sketch011w, length = 1)
const sketch012w = startSketchOn(plane002)
|> startProfileAt([
31.2 + (28 - 2) * sin(23 * pi() / 180),
33.3 + (28 - 2) * cos(23 * pi() / 180) + 1.75 / 2
], %)
|> startProfile(at = [31.2 + (28 - 2) * sin(23 * pi() / 180), 33.3 + (28 - 2) * cos(23 * pi() / 180) + 1.75 / 2])
|> angledLine(angle = 180 - 23, length = 28 - 2 )
|> angledLine(angle = -23 - 45, length = -1.414 )
|> angledLine(angle = -23, length = 28 )
@ -326,10 +311,7 @@ const sketch012w = startSketchOn(plane002)
const extrude012w = extrude(sketch012w, length = 1)
const sketch013w = startSketchOn(plane002)
|> startProfileAt([
1 + 4 * cos(23 * pi() / 180),
40.6 - (4 * sin(23 * pi() / 180)) + 1.75 / 2
], %)
|> startProfile(at = [1 + 4 * cos(23 * pi() / 180), 40.6 - (4 * sin(23 * pi() / 180)) + 1.75 / 2])
|> angledLine(angle = -23, length = 1 )
|> angledLine(angle = -23 + 90, endAbsoluteX = 1)
|> yLine(length = 2.56)
@ -338,10 +320,7 @@ const sketch013w = startSketchOn(plane002)
const extrude013w = extrude(sketch013w, length = 1)
const sketch014w = startSketchOn(plane002)
|> startProfileAt([
1 + 12 * cos(23 * pi() / 180),
40.6 - (12 * sin(23 * pi() / 180)) + 1.75 / 2
], %)
|> startProfile(at = [1 + 12 * cos(23 * pi() / 180), 40.6 - (12 * sin(23 * pi() / 180)) + 1.75 / 2])
|> angledLine(angle = -23 - 90, length = 36 / 2 )
|> angledLine(angle = -23, length = 1 )
|> angledLine(angle = -23 - 90, length = -36 / 2 )
@ -350,10 +329,7 @@ const sketch014w = startSketchOn(plane002)
const extrude014w = extrude(sketch014w, length = 1)
const sketch015w = startSketchOn(plane002)
|> startProfileAt([
1 + (36 - 5.55 - 8) * cos(23 * pi() / 180),
40.6 - ((36 - 5.55 - 8) * sin(23 * pi() / 180)) + 1.75 / 2
], %)
|> startProfile(at = [1 + (36 - 5.55 - 8) * cos(23 * pi() / 180), 40.6 - ((36 - 5.55 - 8) * sin(23 * pi() / 180)) + 1.75 / 2])
|> angledLine(angle = -23 - 90, length = 36 / 2 )
|> angledLine(angle = -23, length = 1 )
|> angledLine(angle = -23 - 90, length = -36 / 2 )
@ -362,10 +338,7 @@ const sketch015w = startSketchOn(plane002)
const extrude015w = extrude(sketch015w, length = 1)
const sketch016w = startSketchOn(plane002)
|> startProfileAt([
1 + (36 - 5.5) * cos(23 * pi() / 180),
40.6 - ((36 - 5.5) * sin(23 * pi() / 180)) + 1.75 / 2
], %)
|> startProfile(at = [1 + (36 - 5.5) * cos(23 * pi() / 180), 40.6 - ((36 - 5.5) * sin(23 * pi() / 180)) + 1.75 / 2])
|> angledLine(angle = -23 - 90, length = 36 / 2 )
|> angledLine(angle = -23, length = 1 )
|> angledLine(angle = -23 - 90, length = -36 / 2 )
@ -374,10 +347,7 @@ const sketch016w = startSketchOn(plane002)
const extrude016w = extrude(sketch016w, length = 1)
const sketch017w = startSketchOn(plane002)
|> startProfileAt([
depth - 1 - (3.7 * cos(23 * pi() / 180)),
60.65 + 3.7 * sin(23 * pi() / 180) + 1.75 / 2
], %)
|> startProfile(at = [depth - 1 - (3.7 * cos(23 * pi() / 180)), 60.65 + 3.7 * sin(23 * pi() / 180) + 1.75 / 2])
|> arc(angleStart = -23, angleEnd = 180 - 23, radius = 7 / 2 + 2)
|> angledLine(angle = -23 + 180, length = -1 )
|> arc(angleStart = 180 - 23, angleEnd = -23, radius = 7 / 2 + 1)
@ -386,10 +356,7 @@ const sketch017w = startSketchOn(plane002)
const extrude017w = extrude(sketch017w, length = 1)
const sketch018w = startSketchOn(plane002)
|> startProfileAt([
depth - 1 - (19.3 * cos(23 * pi() / 180)),
60.65 + 19.3 * sin(23 * pi() / 180) + 1.75 / 2
], %)
|> startProfile(at = [depth - 1 - (19.3 * cos(23 * pi() / 180)), 60.65 + 19.3 * sin(23 * pi() / 180) + 1.75 / 2])
|> arc(angleStart = -23, angleEnd = 180 - 23, radius = 7 / 2 + 2)
|> angledLine(angle = -23 + 180, length = -1 )
|> arc(angleStart = 180 - 23, angleEnd = -23, radius = 7 / 2 + 1)
@ -398,7 +365,7 @@ const sketch018w = startSketchOn(plane002)
const extrude018w = extrude(sketch018w, length = 1)
const sketch019w = startSketchOn(plane002)
|> startProfileAt([1, 27.8 + 1.75 / 2], %)
|> startProfile(at = [1, 27.8 + 1.75 / 2])
|> angledLine(angle = -23, length = 7 )
|> angledLine(angle = -23 + 90, length = -1 )
|> angledLine(angle = -23, endAbsoluteX = 1)
@ -407,10 +374,7 @@ const sketch019w = startSketchOn(plane002)
const extrude019w = extrude(sketch019w, length = 1)
const sketch020w = startSketchOn(plane002)
|> startProfileAt([
1 + (36 - 5.53 - 12) * cos(23 * pi() / 180),
27.8 + 1.75 / 2 - ((36 - 5.53 - 12) * sin(23 * pi() / 180))
], %)
|> startProfile(at = [1 + (36 - 5.53 - 12) * cos(23 * pi() / 180), 27.8 + 1.75 / 2 - ((36 - 5.53 - 12) * sin(23 * pi() / 180))])
|> angledLine(angle = -23, length = 7 )
|> angledLine(angle = -23 + 90, length = -1 )
|> angledLine(angle = -23 + 180, length = 7 )
@ -419,7 +383,7 @@ const sketch020w = startSketchOn(plane002)
const extrude020w = extrude(sketch020w, length = 1)
const sketch021w = startSketchOn(plane002)
|> startProfileAt([1, 21.9], %)
|> startProfile(at = [1, 21.9])
|> angledLine(angle = -23, endAbsoluteX = depth - 1)
|> yLine(length = -1.1)
|> angledLine(angle = -23, endAbsoluteX = 1)
@ -428,7 +392,7 @@ const sketch021w = startSketchOn(plane002)
const extrude021w = extrude(sketch021w, length = 1)
const sketch022w = startSketchOn(plane002)
|> startProfileAt([depth - 1, 74.1], %)
|> startProfile(at = [depth - 1, 74.1])
|> angledLine(angle = 180 - 23, endAbsoluteY = railHeight * 1.75 + 1)
|> xLine(length = -2.56)
|> angledLine(angle = -23, endAbsoluteX = depth - 1)
@ -437,7 +401,7 @@ const sketch022w = startSketchOn(plane002)
const extrude022w = extrude(sketch022w, length = 1)
const sketch023w = startSketchOn(plane002)
|> startProfileAt([1, 69.53 + 1.75], %)
|> startProfile(at = [1, 69.53 + 1.75])
|> angledLine(angle = 90 - 23, endAbsoluteY = railHeight * 1.75 + 1)
|> xLine(length = 1.086)
|> angledLine(angle = 90 - 23, endAbsoluteX = 1)
@ -446,7 +410,7 @@ const sketch023w = startSketchOn(plane002)
const extrude023w = extrude(sketch023w, length = 1)
const sketch024w = startSketchOn(plane002)
|> startProfileAt([1, 16.5], %)
|> startProfile(at = [1, 16.5])
|> angledLine(angle = -23, endAbsoluteY = 1)
|> xLine(length = -2.56)
|> angledLine(angle = -23, endAbsoluteX = 1)
@ -455,7 +419,7 @@ const sketch024w = startSketchOn(plane002)
const extrude024w = extrude(sketch024w, length = 1)
const sketch025w = startSketchOn(plane002)
|> startProfileAt([1, 4], %)
|> startProfile(at = [1, 4])
|> angledLine(angle = -23, endAbsoluteY = 1)
|> xLine(length = -2.56)
|> angledLine(angle = -23, endAbsoluteX = 1)
@ -472,7 +436,7 @@ const plane003 = {
}
const sketch005 = startSketchOn(plane003)
|> startProfileAt([width - 1, 0], %)
|> startProfile(at = [width - 1, 0])
|> line(end = [-width + 2, 3])
|> line(end = [0, 1])
|> line(end = [width - 2, -3])
@ -482,7 +446,7 @@ const sketch005 = startSketchOn(plane003)
const extrude005 = extrude(sketch005, length = 1)
const sketch006 = startSketchOn(plane003)
|> startProfileAt([width - 1, 0 + 2.756], %)
|> startProfile(at = [width - 1, 0 + 2.756])
|> line(end = [-width + 2, 3])
|> line(end = [0, 1])
|> line(end = [width - 2, -3])
@ -492,7 +456,7 @@ const sketch006 = startSketchOn(plane003)
const extrude006 = extrude(sketch006, length = 1)
const sketch007 = startSketchOn(plane003)
|> startProfileAt([width - 1, depth], %)
|> startProfile(at = [width - 1, depth])
|> line(end = [-width + 1, -depth + serverDepth + 3.8])
|> line(end = [1, 0])
|> line(end = [0, -.75])
@ -505,7 +469,7 @@ const sketch007 = startSketchOn(plane003)
const extrude007 = extrude(sketch007, length = 1)
const sketch008 = startSketchOn(plane003)
|> startProfileAt([width - 1, depth - 2.8], %)
|> startProfile(at = [width - 1, depth - 2.8])
|> line(end = [-width + 2, -depth + serverDepth + 4.4])
|> line(end = [0, -1.32])
|> line(end = [width - 2, depth - serverDepth - 4.4])
@ -523,7 +487,7 @@ const plane004 = {
}
const sketch005t = startSketchOn(plane004)
|> startProfileAt([width - 1, 0], %)
|> startProfile(at = [width - 1, 0])
|> line(end = [-width + 2, 3])
|> line(end = [0, 1])
|> line(end = [width - 2, -3])
@ -533,7 +497,7 @@ const sketch005t = startSketchOn(plane004)
const extrude005t = extrude(sketch005t, length = -1)
const sketch007t = startSketchOn(plane004)
|> startProfileAt([width - 1, depth], %)
|> startProfile(at = [width - 1, depth])
|> line(end = [-width + 1, -depth + serverDepth + 3.8])
|> line(end = [1, 0])
|> line(end = [0, -.75])
@ -546,7 +510,7 @@ const sketch007t = startSketchOn(plane004)
const extrude007t = extrude(sketch007t, length = -1)
const sketch008t = startSketchOn(plane004)
|> startProfileAt([width - 1, 0 + 2.756], %)
|> startProfile(at = [width - 1, 0 + 2.756])
|> line(end = [-width + 2, 3])
|> line(end = [0, 1])
|> line(end = [width - 2, -3])
@ -555,7 +519,7 @@ const sketch008t = startSketchOn(plane004)
const extrude008t = extrude(sketch008t, length = -1)
const sketch009t = startSketchOn(plane004)
|> startProfileAt([width - 1, depth - 2.8], %)
|> startProfile(at = [width - 1, depth - 2.8])
|> line(end = [-width + 2, -depth + serverDepth + 4.4])
|> line(end = [0, -1.32])
|> line(end = [width - 2, depth - serverDepth - 4.4])
@ -589,7 +553,7 @@ const planeYZfl = {
// Base flange
const sketch001fl = startSketchOn(planeXZfl)
|> startProfileAt([bendRad + thickness, 0], %)
|> startProfile(at = [bendRad + thickness, 0])
|> angledLine(angle = 0, length = 2 - bendRad - thickness, tag = $rectangleSegmentA001fl)
|> angledLine(angle = segAng(rectangleSegmentA001fl) + 90, length = railHeight * 1.75, tag = $rectangleSegmentB001fl)
|> angledLine(angle = segAng(rectangleSegmentA001fl), length = -segLen(rectangleSegmentA001fl), tag = $rectangleSegmentC001fl)
@ -599,7 +563,7 @@ const extrude001fl = extrude(sketch001fl, length = thickness)
// First flange
const sketch002fl = startSketchOn(planeYZfl)
|> startProfileAt([-bendRad - thickness, 0], %)
|> startProfile(at = [-bendRad - thickness, 0])
|> angledLine(angle = 180, length = 0.89 - bendRad - thickness, tag = $rectangleSegmentA002fl)
|> angledLine(angle = segAng(rectangleSegmentA002fl) - 90, length = railHeight * 1.75, tag = $rectangleSegmentB002fl)
|> angledLine(angle = segAng(rectangleSegmentA002fl), length = -segLen(rectangleSegmentA002fl), tag = $rectangleSegmentC002fl)
@ -610,7 +574,7 @@ const extrude002fl = extrude(sketch002fl, length = thickness)
// Bend
const sketch003fl = startSketchOn(planeXYfl)
|> startProfileAt([0 + thickness + bendRad+originStart[1], originStart[0]], %)
|> startProfile(at = [0 + thickness + bendRad+originStart[1], originStart[0]])
|> arc(angleStart = 270, angleEnd = 180, radius = bendRad + thickness)
|> xLine(length = thickness)
|> arc(angleStart = 180, angleEnd = 270, radius = bendRad)
@ -621,7 +585,7 @@ const extrude003fl = extrude(sketch003fl, length = railHeight * 1.75)
// EIA-310-D standard hole pattern
const sketch004fl = startSketchOn(extrude002fl, face = 'START')
|> startProfileAt([0.72 + originStart[1], originStart[2] + 0.15], %)
|> startProfile(at = [0.72 + originStart[1], originStart[2] + 0.15])
|> angledLine(angle = 0, length = -0.375, tag = $rectangleSegmentA003fl)
|> angledLine(angle = segAng(rectangleSegmentA003fl) - 90, length = 0.375, tag = $rectangleSegmentB003fl)
|> angledLine(angle = segAng(rectangleSegmentA003fl), length = -segLen(rectangleSegmentA003fl), tag = $rectangleSegmentC003fl)
@ -636,7 +600,7 @@ const extrude004fl = extrude(sketch004fl, length = -thickness)
// EIA-310-D standard hole pattern
const sketch005fl = startSketchOn(extrude002fl, face = 'START')
|> startProfileAt([0.72 + originStart[1],originStart[2] + 0.15 + .62], %)
|> startProfile(at = [0.72 + originStart[1],originStart[2] + 0.15 + .62])
|> angledLine(angle = 0, length = -0.375, tag = $rectangleSegmentA004fl)
|> angledLine(angle = segAng(rectangleSegmentA004fl) - 90, length = 0.375, tag = $rectangleSegmentB004fl)
|> angledLine(angle = segAng(rectangleSegmentA004fl), length = -segLen(rectangleSegmentA004fl), tag = $rectangleSegmentC004fl)
@ -651,10 +615,7 @@ const extrude005fl = extrude(sketch005fl, length = -thickness)
// EIA-310-D standard hole pattern
const sketch006fl = startSketchOn(extrude002fl, face = 'START')
|> startProfileAt([
0.72 + originStart[1],
originStart[2] + 0.15 + 0.62 + 0.50
], %)
|> startProfile(at = [0.72 + originStart[1], originStart[2] + 0.15 + 0.62 + 0.50])
|> angledLine(angle = 0, length = -0.375, tag = $rectangleSegmentA005fl)
|> angledLine(angle = segAng(rectangleSegmentA005fl) - 90, length = 0.375, tag = $rectangleSegmentB005fl)
|> angledLine(angle = segAng(rectangleSegmentA005fl), length = -segLen(rectangleSegmentA005fl), tag = $rectangleSegmentC005fl)
@ -669,7 +630,7 @@ const extrude006fl = extrude(sketch006fl, length = -thickness)
// EIA-310-D standard hole pattern
const sketch007fl = startSketchOn(extrude001fl, face = 'START')
|> startProfileAt([-1.45 - originStart[0], originStart[2] + 0.15], %)
|> startProfile(at = [-1.45 - originStart[0], originStart[2] + 0.15])
|> angledLine(angle = 0, length = -0.375, tag = $rectangleSegmentA006fl)
|> angledLine(angle = segAng(rectangleSegmentA006fl) - 90, length = 0.375, tag = $rectangleSegmentB006fl)
|> angledLine(angle = segAng(rectangleSegmentA006fl), length = -segLen(rectangleSegmentA006fl), tag = $rectangleSegmentC006fl)
@ -684,7 +645,7 @@ const extrude007fl = extrude(sketch007fl, length = -thickness)
// EIA-310-D standard hole pattern
const sketch008fl = startSketchOn(extrude001fl, face = 'START')
|> startProfileAt([-1.45 - originStart[0],originStart[2] + 0.15 + 0.62], %)
|> startProfile(at = [-1.45 - originStart[0],originStart[2] + 0.15 + 0.62])
|> angledLine(angle = 0, length = -0.375, tag = $rectangleSegmentA007fl)
|> angledLine(angle = segAng(rectangleSegmentA007fl) - 90, length = 0.375, tag = $rectangleSegmentB007fl)
|> angledLine(angle = segAng(rectangleSegmentA007fl), length = -segLen(rectangleSegmentA007fl), tag = $rectangleSegmentC007fl)
@ -699,10 +660,7 @@ const extrude008fl = extrude(sketch008fl, length = -thickness)
// EIA-310-D standard hole pattern
const sketch009fl = startSketchOn(extrude001fl, face = 'START')
|> startProfileAt([
-1.45 - originStart[0],
originStart[2] + 0.15 + 0.62 + 0.5
], %)
|> startProfile(at = [-1.45 - originStart[0], originStart[2] + 0.15 + 0.62 + 0.5])
|> angledLine(angle = 0, length = -0.375, tag = $rectangleSegmentA008fl)
|> angledLine(angle = segAng(rectangleSegmentA008fl) - 90, length = 0.375, tag = $rectangleSegmentB008fl)
|> angledLine(angle = segAng(rectangleSegmentA008fl), length = -segLen(rectangleSegmentA008fl), tag = $rectangleSegmentC008fl)
@ -717,10 +675,7 @@ const extrude009fl = extrude(sketch009fl, length = -thickness)
// define slots
const sketch010fl = startSketchOn(extrude001fl, face = 'START')
|> startProfileAt([
-1.12 + (.75 - .438) / 2 - originStart[0],
originStart[2] + .81 - (.438 / 2)
], %)
|> startProfile(at = [-1.12 + (.75 - .438) / 2 - originStart[0], originStart[2] + .81 - (.438 / 2)])
|> xLine(length = 0.75 - .438)
|> tangentialArc(endAbsolute = [-0.66 - originStart[0],originStart[2] + .81 + .438 / 2])
|> xLine(length = -0.75 + .438)
@ -735,10 +690,7 @@ const extrude010fl = extrude(sketch010fl, length = -thickness)
// define slots
const sketch011fl = startSketchOn(extrude001fl, face = 'START')
|> startProfileAt([
-1.12 + (.75 - .438) / 2 - originStart[0],
originStart[2] + railHeight * 1.75 / 2 + .438 / 2
], %)
|> startProfile(at = [-1.12 + (.75 - .438) / 2 - originStart[0], originStart[2] + railHeight * 1.75 / 2 + .438 / 2])
|> xLine(length = 0.75 - .438)
|> tangentialArc(endAbsolute = [
-0.66 - originStart[0],
@ -752,10 +704,10 @@ const extrude011fl = extrude(sketch011fl, length = -thickness)
// define slots
const sketch012fl = startSketchOn(extrude001fl, face = 'START')
|> startProfileAt([
|> startProfile(at = [
-1.12 + (.75 - .438) / 2 - originStart[0], originStart[2] +
railHeight * 1.75 - .81 + .438 / 2
], %)
])
|> xLine(length = 0.75 - .438)
|> tangentialArc(endAbsolute = [
-0.66 - originStart[0], originStart[2]+
@ -804,7 +756,7 @@ const planeYZfr = {
// Base flange
const sketch001fr = startSketchOn(planeXZfr)
|> startProfileAt([bendRad + thickness, 0], %)
|> startProfile(at = [bendRad + thickness, 0])
|> angledLine(angle = 0, length = 2 - bendRad - thickness, tag = $rectangleSegmentA001fr)
|> angledLine(angle = segAng(rectangleSegmentA001fr) + 90, length = railHeight * 1.75, tag = $rectangleSegmentB001fr)
|> angledLine(angle = segAng(rectangleSegmentA001fr), length = -segLen(rectangleSegmentA001fr), tag = $rectangleSegmentC001fr)
@ -814,7 +766,7 @@ const extrude001fr = extrude(sketch001fr, length = thickness)
// First flange
const sketch002fr = startSketchOn(planeYZfr)
|> startProfileAt([0.89, 0], %)
|> startProfile(at = [0.89, 0])
|> angledLine(angle = 180, length = 0.89 - bendRad - thickness, tag = $rectangleSegmentA002fr)
|> angledLine(angle = segAng(rectangleSegmentA002fr) - 90, length = railHeight * 1.75, tag = $rectangleSegmentB002fr)
|> angledLine(angle = segAng(rectangleSegmentA002fr), length = -segLen(rectangleSegmentA002fr), tag = $rectangleSegmentC002fr)
@ -825,10 +777,7 @@ const extrude002fr = extrude(sketch002fr, length = thickness)
// Bend
const sketch003fr = startSketchOn(planeXYfr)
|> startProfileAt([
bendRad + originStart[1] + width - 2 - thickness - bendRad,
originStart[0] + bendRad + thickness
], %)
|> startProfile(at = [bendRad + originStart[1] + width - 2 - thickness - bendRad, originStart[0] + bendRad + thickness])
|> arc(angleStart = 0, angleEnd = -90, radius = bendRad)
|> yLine(length = -thickness)
|> arc(angleStart = -90, angleEnd = 0, radius = bendRad + thickness)
@ -838,10 +787,7 @@ const extrude003fr = extrude(sketch003fr, length = railHeight * 1.75)
// EIA-310-D standard hole pattern
const sketch004fr = startSketchOn(extrude002fr, face = 'START')
|> startProfileAt([
-0.35 + originStart[1] + width - 2,
originStart[2] + 0.15
], %)
|> startProfile(at = [-0.35 + originStart[1] + width - 2, originStart[2] + 0.15])
|> angledLine(angle = 0, length = -0.375, tag = $rectangleSegmentA003fr)
|> angledLine(angle = segAng(rectangleSegmentA003fr) - 90, length = 0.375, tag = $rectangleSegmentB003fr)
|> angledLine(angle = segAng(rectangleSegmentA003fr), length = -segLen(rectangleSegmentA003fr), tag = $rectangleSegmentC003fr)
@ -856,10 +802,7 @@ const extrude004fr = extrude(sketch004fr, length = -thickness)
// EIA-310-D standard hole pattern
const sketch005fr = startSketchOn(extrude002fr, face = 'START')
|> startProfileAt([
-0.35 + originStart[1] + width - 2,
originStart[2] + 0.15 + .62
], %)
|> startProfile(at = [-0.35 + originStart[1] + width - 2, originStart[2] + 0.15 + .62])
|> angledLine(angle = 0, length = -0.375, tag = $rectangleSegmentA004fr)
|> angledLine(angle = segAng(rectangleSegmentA004fr) - 90, length = 0.375, tag = $rectangleSegmentB004fr)
|> angledLine(angle = segAng(rectangleSegmentA004fr), length = -segLen(rectangleSegmentA004fr), tag = $rectangleSegmentC004fr)
@ -874,10 +817,7 @@ const extrude005fr = extrude(sketch005fr, length = -thickness)
// EIA-310-D standard hole pattern
const sketch006fr = startSketchOn(extrude002fr, face = 'START')
|> startProfileAt([
-0.35 + originStart[1] + width - 2,
originStart[2] + 0.15 + 0.62 + 0.50
], %)
|> startProfile(at = [-0.35 + originStart[1] + width - 2, originStart[2] + 0.15 + 0.62 + 0.50])
|> angledLine(angle = 0, length = -0.375, tag = $rectangleSegmentA005fr)
|> angledLine(angle = segAng(rectangleSegmentA005fr) - 90, length = 0.375, tag = $rectangleSegmentB005fr)
|> angledLine(angle = segAng(rectangleSegmentA005fr), length = -segLen(rectangleSegmentA005fr), tag = $rectangleSegmentC005fr)
@ -892,10 +832,7 @@ const extrude006fr = extrude(sketch006fr, length = -thickness)
// EIA-310-D standard hole pattern
const sketch007fr = startSketchOn(extrude001fr, face = 'START')
|> startProfileAt([
-1.45 - originStart[0],
originStart[2] + 0.15
], %)
|> startProfile(at = [-1.45 - originStart[0], originStart[2] + 0.15])
|> angledLine(angle = 0, length = -0.375, tag = $rectangleSegmentA006fr)
|> angledLine(angle = segAng(rectangleSegmentA006fr) - 90, length = 0.375, tag = $rectangleSegmentB006fr)
|> angledLine(angle = segAng(rectangleSegmentA006fr), length = -segLen(rectangleSegmentA006fr), tag = $rectangleSegmentC006fr)
@ -910,10 +847,7 @@ const extrude007fr = extrude(sketch007fr, length = -thickness)
// EIA-310-D standard hole pattern
const sketch008fr = startSketchOn(extrude001fr, face = 'START')
|> startProfileAt([
-1.45 - originStart[0],
originStart[2] + 0.15 + 0.62
], %)
|> startProfile(at = [-1.45 - originStart[0], originStart[2] + 0.15 + 0.62])
|> angledLine(angle = 0, length = -0.375, tag = $rectangleSegmentA007fr)
|> angledLine(angle = segAng(rectangleSegmentA007fr) - 90, length = 0.375, tag = $rectangleSegmentB007fr)
|> angledLine(angle = segAng(rectangleSegmentA007fr), length = -segLen(rectangleSegmentA007fr), tag = $rectangleSegmentC007fr)
@ -928,10 +862,7 @@ const extrude008fr = extrude(sketch008fr, length = -thickness)
// EIA-310-D standard hole pattern
const sketch009fr = startSketchOn(extrude001fr, face = 'START')
|> startProfileAt([
-1.45 - originStart[0],
originStart[2] + 0.15 + 0.62 + 0.5
], %)
|> startProfile(at = [-1.45 - originStart[0], originStart[2] + 0.15 + 0.62 + 0.5])
|> angledLine(angle = 0, length = -0.375, tag = $rectangleSegmentA008fr)
|> angledLine(angle = segAng(rectangleSegmentA008fr) - 90, length = 0.375, tag = $rectangleSegmentB008fr)
|> angledLine(angle = segAng(rectangleSegmentA008fr), length = -segLen(rectangleSegmentA008fr), tag = $rectangleSegmentC008fr)
@ -946,10 +877,7 @@ const extrude009fr = extrude(sketch009fr, length = -thickness)
// define slots
const sketch010fr = startSketchOn(extrude001fr, face = 'START')
|> startProfileAt([
-1.12 + (.75 - .438) / 2 - originStart[0],
originStart[2] + .81 - (.438 / 2)
], %)
|> startProfile(at = [-1.12 + (.75 - .438) / 2 - originStart[0], originStart[2] + .81 - (.438 / 2)])
|> xLine(length = 0.75 - .438)
|> tangentialArc(endAbsolute = [
-0.66 - originStart[0],
@ -967,10 +895,7 @@ const extrude010fr = extrude(sketch010fr, length = -thickness)
// define slots
const sketch011fr = startSketchOn(extrude001fr, face = 'START')
|> startProfileAt([
-1.12 + (.75 - .438) / 2 - originStart[0],
originStart[2] + railHeight * 1.75 / 2 + .438 / 2
], %)
|> startProfile(at = [-1.12 + (.75 - .438) / 2 - originStart[0], originStart[2] + railHeight * 1.75 / 2 + .438 / 2])
|> xLine(length = 0.75 - .438)
|> tangentialArc(endAbsolute = [
-0.66 - originStart[0],
@ -984,10 +909,7 @@ const extrude011fr = extrude(sketch011fr, length = -thickness)
// define slots
const sketch012fr = startSketchOn(extrude001fr, face = 'START')
|> startProfileAt([
-1.12 + (.75 - .438) / 2 - originStart[0],
originStart[2] + railHeight * 1.75 - .81 + .438 / 2
], %)
|> startProfile(at = [-1.12 + (.75 - .438) / 2 - originStart[0], originStart[2] + railHeight * 1.75 - .81 + .438 / 2])
|> xLine(length = 0.75 - .438)
|> tangentialArc(endAbsolute = [
-0.66 - originStart[0],
@ -1036,7 +958,7 @@ const planeYZrr = {
// Base flange
const sketch001rr = startSketchOn(planeXZrr)
|> startProfileAt([bendRad + thickness, 0], %)
|> startProfile(at = [bendRad + thickness, 0])
|> angledLine(angle = 0, length = 2 - bendRad - thickness, tag = $rectangleSegmentA001rr)
|> angledLine(angle = segAng(rectangleSegmentA001rr) + 90, length = railHeight * 1.75, tag = $rectangleSegmentB001rr)
|> angledLine(angle = segAng(rectangleSegmentA001rr), length = -segLen(rectangleSegmentA001rr), tag = $rectangleSegmentC001rr)
@ -1046,7 +968,7 @@ const extrude001rr = extrude(sketch001rr, length = thickness)
// First flange
const sketch002rr = startSketchOn(planeYZrr)
|> startProfileAt([0.89, 0], %)
|> startProfile(at = [0.89, 0])
|> angledLine(angle = 180, length = 0.89 - bendRad - thickness, tag = $rectangleSegmentA002rr)
|> angledLine(angle = segAng(rectangleSegmentA002rr) - 90, length = railHeight * 1.75, tag = $rectangleSegmentB002rr)
|> angledLine(angle = segAng(rectangleSegmentA002rr), length = -segLen(rectangleSegmentA002rr), tag = $rectangleSegmentC002rr)
@ -1057,10 +979,7 @@ const extrude002rr = extrude(sketch002rr, length = thickness)
// Bend
const sketch003rr = startSketchOn(planeXYrr)
|> startProfileAt([
bendRad + originStart[1] + width - 2-bendRad,
originStart[0]-bendRad
], %)
|> startProfile(at = [bendRad + originStart[1] + width - 2-bendRad, originStart[0]-bendRad])
|> arc(angleStart = 0, angleEnd = 90, radius = bendRad+thickness)
|> yLine(length = -thickness)
|> arc(angleStart = 90, angleEnd = 0, radius = bendRad)
@ -1070,10 +989,7 @@ const extrude003rr = extrude(sketch003rr, length = railHeight * 1.75)
// EIA-310-D standard hole pattern
const sketch004rr = startSketchOn(extrude002rr, face = 'START')
|> startProfileAt([
-0.35 + originStart[1] + width - 2,
originStart[2] + 0.15
], %)
|> startProfile(at = [-0.35 + originStart[1] + width - 2, originStart[2] + 0.15])
|> angledLine(angle = 0, length = -0.375, tag = $rectangleSegmentA003rr)
|> angledLine(angle = segAng(rectangleSegmentA003rr) - 90, length = 0.375, tag = $rectangleSegmentB003rr)
|> angledLine(angle = segAng(rectangleSegmentA003rr), length = -segLen(rectangleSegmentA003rr), tag = $rectangleSegmentC003rr)
@ -1088,10 +1004,7 @@ const extrude004rr = extrude(sketch004rr, length = -thickness)
// EIA-310-D standard hole pattern
const sketch005rr = startSketchOn(extrude002rr, face = 'START')
|> startProfileAt([
-0.35 + originStart[1] + width - 2,
originStart[2] + 0.15 + .62
], %)
|> startProfile(at = [-0.35 + originStart[1] + width - 2, originStart[2] + 0.15 + .62])
|> angledLine(angle = 0, length = -0.375, tag = $rectangleSegmentA004rr)
|> angledLine(angle = segAng(rectangleSegmentA004rr) - 90, length = 0.375, tag = $rectangleSegmentB004rr)
|> angledLine(angle = segAng(rectangleSegmentA004rr), length = -segLen(rectangleSegmentA004rr), tag = $rectangleSegmentC004rr)
@ -1106,10 +1019,7 @@ const extrude005rr = extrude(sketch005rr, length = -thickness)
// EIA-310-D standard hole pattern
const sketch006rr = startSketchOn(extrude002rr, face = 'START')
|> startProfileAt([
-0.35 + originStart[1] + width - 2,
originStart[2] + 0.15 + 0.62 + 0.50
], %)
|> startProfile(at = [-0.35 + originStart[1] + width - 2, originStart[2] + 0.15 + 0.62 + 0.50])
|> angledLine(angle = 0, length = -0.375, tag = $rectangleSegmentA005rr)
|> angledLine(angle = segAng(rectangleSegmentA005rr) - 90, length = 0.375, tag = $rectangleSegmentB005rr)
|> angledLine(angle = segAng(rectangleSegmentA005rr), length = -segLen(rectangleSegmentA005rr), tag = $rectangleSegmentC005rr)
@ -1124,10 +1034,7 @@ const extrude006rr = extrude(sketch006rr, length = -thickness)
// EIA-310-D standard hole pattern
const sketch007rr = startSketchOn(extrude001rr, face = 'START')
|> startProfileAt([
-originStart[0]-serverDepth+1.7,
originStart[2] + 0.15
], %)
|> startProfile(at = [-originStart[0]-serverDepth+1.7, originStart[2] + 0.15])
|> angledLine(angle = 0, length = -0.375, tag = $rectangleSegmentA006rr)
|> angledLine(angle = segAng(rectangleSegmentA006rr) - 90, length = 0.375, tag = $rectangleSegmentB006rr)
|> angledLine(angle = segAng(rectangleSegmentA006rr), length = -segLen(rectangleSegmentA006rr), tag = $rectangleSegmentC006rr)
@ -1142,10 +1049,7 @@ const extrude007rr = extrude(sketch007rr, length = -thickness)
// EIA-310-D standard hole pattern
const sketch008rr = startSketchOn(extrude001rr, face = 'START')
|> startProfileAt([
-originStart[0]-serverDepth+1.7,
originStart[2] + 0.15 + 0.62
], %)
|> startProfile(at = [-originStart[0]-serverDepth+1.7, originStart[2] + 0.15 + 0.62])
|> angledLine(angle = 0, length = -0.375, tag = $rectangleSegmentA007rr)
|> angledLine(angle = segAng(rectangleSegmentA007rr) - 90, length = 0.375, tag = $rectangleSegmentB007rr)
|> angledLine(angle = segAng(rectangleSegmentA007rr), length = -segLen(rectangleSegmentA007rr), tag = $rectangleSegmentC007rr)
@ -1160,10 +1064,7 @@ const extrude008rr = extrude(sketch008rr, length = -thickness)
// EIA-310-D standard hole pattern
const sketch009rr = startSketchOn(extrude001rr, face = 'START')
|> startProfileAt([
-originStart[0]-serverDepth+1.7,
originStart[2] + 0.15 + 0.62 + 0.5
], %)
|> startProfile(at = [-originStart[0]-serverDepth+1.7, originStart[2] + 0.15 + 0.62 + 0.5])
|> angledLine(angle = 0, length = -0.375, tag = $rectangleSegmentA008rr)
|> angledLine(angle = segAng(rectangleSegmentA008rr) - 90, length = 0.375, tag = $rectangleSegmentB008rr)
|> angledLine(angle = segAng(rectangleSegmentA008rr), length = -segLen(rectangleSegmentA008rr), tag = $rectangleSegmentC008rr)
@ -1178,10 +1079,7 @@ const extrude009rr = extrude(sketch009rr, length = -thickness)
// define slots
const sketch010rr = startSketchOn(extrude001rr, face = 'START')
|> startProfileAt([
-1.12 + (.75 - .438) / 2 - originStart[0]+1.5-serverDepth,
originStart[2] + .81 - (.438 / 2)
], %)
|> startProfile(at = [-1.12 + (.75 - .438) / 2 - originStart[0]+1.5-serverDepth, originStart[2] + .81 - (.438 / 2)])
|> xLine(length = 0.75 - .438)
|> tangentialArc(endAbsolute = [
-0.66 - originStart[0]+1.5-serverDepth,
@ -1199,10 +1097,7 @@ const extrude010rr = extrude(sketch010rr, length = -thickness)
// define slots
const sketch011rr = startSketchOn(extrude001rr, face = 'START')
|> startProfileAt([
-1.12 + (.75 - .438) / 2 - originStart[0]+1.5-serverDepth,
originStart[2] + railHeight * 1.75 / 2 + .438 / 2
], %)
|> startProfile(at = [-1.12 + (.75 - .438) / 2 - originStart[0]+1.5-serverDepth, originStart[2] + railHeight * 1.75 / 2 + .438 / 2])
|> xLine(length = 0.75 - .438)
|> tangentialArc(endAbsolute = [
-0.66 - originStart[0]+1.5-serverDepth,
@ -1216,10 +1111,7 @@ const extrude011rr = extrude(sketch011rr, length = -thickness)
// define slots
const sketch012rr = startSketchOn(extrude001rr, face = 'START')
|> startProfileAt([
-1.12 + (.75 - .438) / 2 - originStart[0]+1.5-serverDepth,
originStart[2] + railHeight * 1.75 - .81 + .438 / 2
], %)
|> startProfile(at = [-1.12 + (.75 - .438) / 2 - originStart[0]+1.5-serverDepth, originStart[2] + railHeight * 1.75 - .81 + .438 / 2])
|> xLine(length = 0.75 - .438)
|> tangentialArc(endAbsolute = [
-0.66 - originStart[0]+1.5-serverDepth,
@ -1267,7 +1159,7 @@ const planeYZrl = {
}
// Base flange
const sketch001rl = startSketchOn(planeXZrl)
|> startProfileAt([bendRad + thickness, 0], %)
|> startProfile(at = [bendRad + thickness, 0])
|> angledLine(angle = 0, length = 2 - bendRad - thickness, tag = $rectangleSegmentA001rl)
|> angledLine(angle = segAng(rectangleSegmentA001rl) + 90, length = railHeight * 1.75, tag = $rectangleSegmentB001rl)
|> angledLine(angle = segAng(rectangleSegmentA001rl), length = -segLen(rectangleSegmentA001rl), tag = $rectangleSegmentC001rl)
@ -1277,7 +1169,7 @@ const extrude001rl = extrude(sketch001rl, length = thickness)
// First flange
const sketch002rl = startSketchOn(planeYZrl)
|> startProfileAt([-bendRad - thickness, 0], %)
|> startProfile(at = [-bendRad - thickness, 0])
|> angledLine(angle = 180, length = 0.89 - bendRad - thickness, tag = $rectangleSegmentA002rl)
|> angledLine(angle = segAng(rectangleSegmentA002rl) - 90, length = railHeight * 1.75, tag = $rectangleSegmentB002rl)
|> angledLine(angle = segAng(rectangleSegmentA002rl), length = -segLen(rectangleSegmentA002rl), tag = $rectangleSegmentC002rl)
@ -1288,10 +1180,7 @@ const extrude002rl = extrude(sketch002rl, length = thickness)
// Bend
const sketch003rl = startSketchOn(planeXYrl)
|> startProfileAt([
bendRad + originStart[1] + thickness,
originStart[0]
], %)
|> startProfile(at = [bendRad + originStart[1] + thickness, originStart[0]])
|> arc(angleStart = 90, angleEnd = 180, radius = bendRad)
|> xLine(length = -thickness)
|> arc(angleStart = 180, angleEnd = 90, radius = bendRad + thickness)
@ -1301,10 +1190,7 @@ const extrude003rl = extrude(sketch003rl, length = railHeight * 1.75)
// EIA-310-D standard hole pattern
const sketch004rl = startSketchOn(extrude002rl, face = 'START')
|> startProfileAt([
-1.38 + 2 + thickness + originStart[1],
originStart[2] + 0.15
], %)
|> startProfile(at = [-1.38 + 2 + thickness + originStart[1], originStart[2] + 0.15])
|> angledLine(angle = 0, length = -0.375, tag = $rectangleSegmentA003rl)
|> angledLine(angle = segAng(rectangleSegmentA003rl) - 90, length = 0.375, tag = $rectangleSegmentB003rl)
|> angledLine(angle = segAng(rectangleSegmentA003rl), length = -segLen(rectangleSegmentA003rl), tag = $rectangleSegmentC003rl)
@ -1319,10 +1205,7 @@ const extrude004rl = extrude(sketch004rl, length = -thickness)
// EIA-310-D standard hole pattern
const sketch005rl = startSketchOn(extrude002rl, face = 'START')
|> startProfileAt([
-1.38 + 2 + thickness + originStart[1],
originStart[2] + 0.15 + .62
], %)
|> startProfile(at = [-1.38 + 2 + thickness + originStart[1], originStart[2] + 0.15 + .62])
|> angledLine(angle = 0, length = -0.375, tag = $rectangleSegmentA004rl)
|> angledLine(angle = segAng(rectangleSegmentA004rl) - 90, length = 0.375, tag = $rectangleSegmentB004rl)
|> angledLine(angle = segAng(rectangleSegmentA004rl), length = -segLen(rectangleSegmentA004rl), tag = $rectangleSegmentC004rl)
@ -1337,10 +1220,7 @@ const extrude005rl = extrude(sketch005rl, length = -thickness)
// EIA-310-D standard hole pattern
const sketch006rl = startSketchOn(extrude002rl, face = 'START')
|> startProfileAt([
-1.38 + 2 + thickness + originStart[1],
originStart[2] + 0.15 + 0.62 + 0.50
], %)
|> startProfile(at = [-1.38 + 2 + thickness + originStart[1], originStart[2] + 0.15 + 0.62 + 0.50])
|> angledLine(angle = 0, length = -0.375, tag = $rectangleSegmentA005rl)
|> angledLine(angle = segAng(rectangleSegmentA005rl) - 90, length = 0.375, tag = $rectangleSegmentB005rl)
|> angledLine(angle = segAng(rectangleSegmentA005rl), length = -segLen(rectangleSegmentA005rl), tag = $rectangleSegmentC005rl)
@ -1355,10 +1235,7 @@ const extrude006rl = extrude(sketch006rl, length = -thickness)
// EIA-310-D standard hole pattern
const sketch007rl = startSketchOn(extrude001rl, face = 'START')
|> startProfileAt([
1.75 - originStart[0] - serverDepth,
originStart[2] + 0.15
], %)
|> startProfile(at = [1.75 - originStart[0] - serverDepth, originStart[2] + 0.15])
|> angledLine(angle = 0, length = -0.375, tag = $rectangleSegmentA006rl)
|> angledLine(angle = segAng(rectangleSegmentA006rl) - 90, length = 0.375, tag = $rectangleSegmentB006rl)
|> angledLine(angle = segAng(rectangleSegmentA006rl), length = -segLen(rectangleSegmentA006rl), tag = $rectangleSegmentC006rl)
@ -1373,10 +1250,7 @@ const extrude007rl = extrude(sketch007rl, length = -thickness)
// EIA-310-D standard hole pattern
const sketch008rl = startSketchOn(extrude001rl, face = 'START')
|> startProfileAt([
1.75 - originStart[0] - serverDepth,
originStart[2] + 0.15 + 0.62
], %)
|> startProfile(at = [1.75 - originStart[0] - serverDepth, originStart[2] + 0.15 + 0.62])
|> angledLine(angle = 0, length = -0.375, tag = $rectangleSegmentA007rl)
|> angledLine(angle = segAng(rectangleSegmentA007rl) - 90, length = 0.375, tag = $rectangleSegmentB007rl)
|> angledLine(angle = segAng(rectangleSegmentA007rl), length = -segLen(rectangleSegmentA007rl), tag = $rectangleSegmentC007rl)
@ -1391,10 +1265,7 @@ const extrude008rl = extrude(sketch008rl, length = -thickness)
// EIA-310-D standard hole pattern
const sketch009rl = startSketchOn(extrude001rl, face = 'START')
|> startProfileAt([
1.75 - originStart[0] - serverDepth,
originStart[2] + 0.15 + 0.62 + 0.5
], %)
|> startProfile(at = [1.75 - originStart[0] - serverDepth, originStart[2] + 0.15 + 0.62 + 0.5])
|> angledLine(angle = 0, length = -0.375, tag = $rectangleSegmentA008rl)
|> angledLine(angle = segAng(rectangleSegmentA008rl) - 90, length = 0.375, tag = $rectangleSegmentB008rl)
|> angledLine(angle = segAng(rectangleSegmentA008rl), length = -segLen(rectangleSegmentA008rl), tag = $rectangleSegmentC008rl)
@ -1409,10 +1280,7 @@ const extrude009rl = extrude(sketch009rl, length = -thickness)
// define slots
const sketch010rl = startSketchOn(extrude001rl, face = 'START')
|> startProfileAt([
-1.12 + (.75 - .438) / 2 - originStart[0] - serverDepth + 1.5,
originStart[2] + .81 - (.438 / 2)
], %)
|> startProfile(at = [-1.12 + (.75 - .438) / 2 - originStart[0] - serverDepth + 1.5, originStart[2] + .81 - (.438 / 2)])
|> xLine(length = 0.75 - .438)
|> tangentialArc(endAbsolute = [
-0.66 - originStart[0] - serverDepth + 1.5,
@ -1430,10 +1298,7 @@ const extrude010rl = extrude(sketch010rl, length = -thickness)
// define slots
const sketch011rl = startSketchOn(extrude001rl, face = 'START')
|> startProfileAt([
-1.12 + (.75 - .438) / 2 - originStart[0] - serverDepth + 1.5,
originStart[2] + railHeight * 1.75 / 2 + .438 / 2
], %)
|> startProfile(at = [-1.12 + (.75 - .438) / 2 - originStart[0] - serverDepth + 1.5, originStart[2] + railHeight * 1.75 / 2 + .438 / 2])
|> xLine(length = 0.75 - .438)
|> tangentialArc(endAbsolute = [
-0.66 - originStart[0] - serverDepth + 1.5,
@ -1447,10 +1312,7 @@ const extrude011rl = extrude(sketch011rl, length = -thickness)
// define slots
const sketch012rl = startSketchOn(extrude001rl, face = 'START')
|> startProfileAt([
-1.12 + (.75 - .438) / 2 - originStart[0] - serverDepth + 1.5,
originStart[2] + railHeight * 1.75 - .81 + .438 / 2
], %)
|> startProfile(at = [-1.12 + (.75 - .438) / 2 - originStart[0] - serverDepth + 1.5, originStart[2] + railHeight * 1.75 - .81 + .438 / 2])
|> xLine(length = 0.75 - .438)
|> tangentialArc(endAbsolute = [
-0.66 - originStart[0] - serverDepth + 1.5,
@ -1490,7 +1352,7 @@ fn streamServer = (serverPos) => {
}
const sketch001s = startSketchOn(planeXYs)
|> startProfileAt([1 + 1.2, 1], %)
|> startProfile(at = [1 + 1.2, 1])
|> angledLine(angle = 0, length = 17.2, tag = $rectangleSegmentA001)
|> angledLine(angle = segAng(rectangleSegmentA001) + 90, length = 29, tag = $rectangleSegmentB001)
|> angledLine(angle = segAng(rectangleSegmentA001), length = -segLen(rectangleSegmentA001), tag = $rectangleSegmentC001)
@ -1499,7 +1361,7 @@ fn streamServer = (serverPos) => {
const extrude001s = extrude(sketch001s, length = 7)
const sketch002s = startSketchOn(planeXZs)
|> startProfileAt([-1, 4.114 + 1 + serverPos * 1.75], %)
|> startProfile(at = [-1, 4.114 + 1 + serverPos * 1.75])
|> yLine(length = 6.98)
|> xLine(length = 0.2)
|> yLine(length = -0.36)
@ -1523,7 +1385,7 @@ fn streamServer = (serverPos) => {
const extrude002s = extrude(sketch002s, length = 1.8 / 2)
const sketch003s = startSketchOn(planeXZs2)
|> startProfileAt([-1, 4.114 + 1 + serverPos * 1.75], %)
|> startProfile(at = [-1, 4.114 + 1 + serverPos * 1.75])
|> yLine(length = 6.98)
|> xLine(length = 0.2)
|> yLine(length = -0.36)

View File

@ -20,7 +20,7 @@ fn caster = (originStart) => {
}
const sketch001c = startSketchOn(plane001c)
|> startProfileAt([0, 0], %)
|> startProfile(at = [0, 0])
|> xLine(length = 3.543)
|> yLine(length = 3.543)
|> xLine(length = -3.543)
@ -45,7 +45,7 @@ fn caster = (originStart) => {
|> extrude(length = -.25)
const sketch002c = startSketchOn(sketch001c, face = 'START')
|> startProfileAt([-originStart[0], 2.2 + originStart[1]], %)
|> startProfile(at = [-originStart[0], 2.2 + originStart[1]])
|> arc(
angle_start = 30,
angle_end = 330,
@ -101,7 +101,7 @@ const plane001 = {
}
const sketch001l = startSketchOn(plane001)
|> startProfileAt([0, 0], %)
|> startProfile(at = [0, 0])
|> xLine(length = serverDepth + .8)
|> angledLine(angle = -45, endAbsoluteY = 1)
|> xLine(length = -serverDepth + 2 - .8, tag = $seg01)
@ -110,7 +110,7 @@ const sketch001l = startSketchOn(plane001)
const extrude001l = extrude(sketch001l, length = 1)
const sketch002l = startSketchOn(plane001)
|> startProfileAt([serverDepth + .8, 0], %)
|> startProfile(at = [serverDepth + .8, 0])
|> yLine(length = railHeight * 1.75 + 2)
|> angledLine(angle = -135, endAbsoluteX = serverDepth - 1 + .8)
|> yLine(length = -railHeight * 1.75)
@ -119,10 +119,7 @@ const sketch002l = startSketchOn(plane001)
const extrude002l = extrude(sketch002l, length = 1)
const sketch003l = startSketchOn(plane001)
|> startProfileAt([
serverDepth + .8,
railHeight * 1.75 + 2
], %)
|> startProfile(at = [serverDepth + .8, railHeight * 1.75 + 2])
|> xLine(length = -serverDepth - .8, tag = $seg02)
|> angledLine(angle = -45, endAbsoluteY = railHeight * 1.75 - 1 + 2)
|> xLine(length = serverDepth - 2 + .8)
@ -131,7 +128,7 @@ const sketch003l = startSketchOn(plane001)
const extrude003l = extrude(sketch003l, length = 1)
const sketch004l = startSketchOn(plane001)
|> startProfileAt([0, 0], %)
|> startProfile(at = [0, 0])
|> yLine(length = railHeight * 1.75 + 2)
|> angledLine(angle = 135, endAbsoluteY = railHeight * 1.75 + 2 - 1)
|> yLine(length = -railHeight * 1.75)
@ -140,7 +137,7 @@ const sketch004l = startSketchOn(plane001)
const extrude004l = extrude(sketch004l, length = 1)
const sketch005l = startSketchOn(plane001)
|> startProfileAt([serverDepth - 1.25, 1], %)
|> startProfile(at = [serverDepth - 1.25, 1])
|> line(end = [-serverDepth + 2.25, railHeight * 1.75], tag = $lineToIntersect4)
|> xLine(length = 1)
|> line(end = [serverDepth - 2.25, -railHeight * 1.75], tag = $lineToIntersect5)
@ -149,7 +146,7 @@ const sketch005l = startSketchOn(plane001)
const extrude005l = extrude(sketch005l, length = 1)
const sketch006l = startSketchOn(plane001)
|> startProfileAt([1, 1], %)
|> startProfile(at = [1, 1])
|> angledLineThatIntersects(angle = 70, intersectTag = lineToIntersect4, offset = 0)
|> angledLine(angle = -70, length = 1.414 )
|> angledLine(angle = 70 + 180, endAbsoluteY = 2 - 1)
@ -158,10 +155,7 @@ const sketch006l = startSketchOn(plane001)
const extrude006l = extrude(sketch006l, length = 1)
const sketch007l = startSketchOn(plane001)
|> startProfileAt([
serverDepth - 1.2,
railHeight * 1.75 + 1
], %)
|> startProfile(at = [serverDepth - 1.2, railHeight * 1.75 + 1])
|> angledLineThatIntersects(angle = 70, intersectTag = lineToIntersect5, offset = 0)
|> angledLine(angle = -70, length = 1.414 )
|> angledLine(angle = 70 + 180, endAbsoluteY = railHeight * 1.75 + 1)
@ -182,7 +176,7 @@ const plane002 = {
}
const sketch001w = startSketchOn(plane002)
|> startProfileAt([0, 0], %)
|> startProfile(at = [0, 0])
|> xLine(length = depth)
|> angledLine(angle = -45, endAbsoluteY = 1)
|> xLine(length = -depth + 2, tag = $seg01w)
@ -191,7 +185,7 @@ const sketch001w = startSketchOn(plane002)
const extrude001w = extrude(sketch001w, length = 1)
const sketch002w = startSketchOn(plane002)
|> startProfileAt([depth, 0], %)
|> startProfile(at = [depth, 0])
|> yLine(length = railHeight * 1.75 + 2)
|> angledLine(angle = -135, endAbsoluteX = depth - 1)
|> yLine(length = -railHeight * 1.75)
@ -200,7 +194,7 @@ const sketch002w = startSketchOn(plane002)
const extrude002w = extrude(sketch002w, length = 1)
const sketch003w = startSketchOn(plane002)
|> startProfileAt([depth, railHeight * 1.75 + 2], %)
|> startProfile(at = [depth, railHeight * 1.75 + 2])
|> xLine(length = -depth, tag = $seg02w)
|> angledLine(angle = -45, endAbsoluteY = railHeight * 1.75 - 1 + 2)
|> xLine(length = depth - 2)
@ -209,7 +203,7 @@ const sketch003w = startSketchOn(plane002)
const extrude003w = extrude(sketch003w, length = 1)
const sketch004w = startSketchOn(plane002)
|> startProfileAt([0, 0], %)
|> startProfile(at = [0, 0])
|> yLine(length = railHeight * 1.75 + 2)
|> angledLine(angle = 135, endAbsoluteY = railHeight * 1.75 + 2 - 1)
|> yLine(length = -railHeight * 1.75)
@ -218,7 +212,7 @@ const sketch004w = startSketchOn(plane002)
const extrude004w = extrude(sketch004w, length = 1)
const sketch005w = startSketchOn(plane002)
|> startProfileAt([1, 40.6 + 1.75 / 2], %)
|> startProfile(at = [1, 40.6 + 1.75 / 2])
|> angledLine(angle = -23, length = 35.5 )
|> angledLine(angle = -23 + 90 + 45, length = 1.413 )
|> angledLine(angle = -23, endAbsoluteX = 1, tag = $lineToIntersect)
@ -227,10 +221,7 @@ const sketch005w = startSketchOn(plane002)
const extrude005w = extrude(sketch005w, length = 1)
const sketch006w = startSketchOn(plane002)
|> startProfileAt([
1 + 35.5 * cos(23 * pi() / 180),
40.6 - (35.5 * sin(23 * pi() / 180)) + 1.75 / 2
], %)
|> startProfile(at = [1 + 35.5 * cos(23 * pi() / 180), 40.6 - (35.5 * sin(23 * pi() / 180)) + 1.75 / 2])
|> angledLine(angle = -23 + 90, endAbsoluteX = depth - 1)
|> yLine(length = 2.56)
|> angledLineThatIntersects(
@ -244,7 +235,7 @@ const sketch006w = startSketchOn(plane002)
const extrude006w = extrude(sketch006w, length = 1)
const sketch007w = startSketchOn(plane002)
|> startProfileAt([depth - 1, 60.65 + 1.75 / 2], %)
|> startProfile(at = [depth - 1, 60.65 + 1.75 / 2])
|> angledLine(angle = -23 + 180, length = 34.93 , tag = $lineToIntersect3)
|> angledLine(angle = 23 - 90, length = 1.414 )
|> angledLineThatIntersects(
@ -257,7 +248,7 @@ const sketch007w = startSketchOn(plane002)
const extrude007w = extrude(sketch007w, length = 1)
const sketch008w = startSketchOn(plane002)
|> startProfileAt([1, 41.7 + 1.75 / 2], %)
|> startProfile(at = [1, 41.7 + 1.75 / 2])
|> angledLineThatIntersects(
angle = -23 + 90,
intersectTag = lineToIntersect3,
@ -274,7 +265,7 @@ const sketch008w = startSketchOn(plane002)
const extrude008w = extrude(sketch008w, length = 1)
const sketch009w = startSketchOn(plane002)
|> startProfileAt([31.2, 33.3 + 1.75 / 2], %)
|> startProfile(at = [31.2, 33.3 + 1.75 / 2])
|> angledLine(angle = -23 - 45, length = 1.414 )
|> angledLine(angle = 90 - 23, length = 28 )
|> angledLine(angle = -23 + 45, length = -1.414 )
@ -283,7 +274,7 @@ const sketch009w = startSketchOn(plane002)
const extrude009w = extrude(sketch009w, length = 1)
const sketch010w = startSketchOn(plane002)
|> startProfileAt([31.2, 33.3 + 1.75 / 2], %)
|> startProfile(at = [31.2, 33.3 + 1.75 / 2])
|> angledLine(angle = -23 - 45, length = 1.414 )
|> angledLine(angle = 180 - 23, length = 28 )
|> angledLine(angle = -23 + 45, length = 1.414 )
@ -292,10 +283,7 @@ const sketch010w = startSketchOn(plane002)
const extrude010w = extrude(sketch010w, length = 1)
const sketch011w = startSketchOn(plane002)
|> startProfileAt([
31.2 - ((28 - 2) * cos(23 * pi() / 180)),
33.3 + (28 - 2) * sin(23 * pi() / 180) + 1.75 / 2
], %)
|> startProfile(at = [31.2 - ((28 - 2) * cos(23 * pi() / 180)), 33.3 + (28 - 2) * sin(23 * pi() / 180) + 1.75 / 2])
|> angledLine(angle = 90 - 23, length = 28 - 2 )
|> angledLine(angle = -23 - 45, length = -1.414 )
|> angledLine(angle = 90 - 23 + 180, length = 28 )
@ -304,10 +292,7 @@ const sketch011w = startSketchOn(plane002)
const extrude011w = extrude(sketch011w, length = 1)
const sketch012w = startSketchOn(plane002)
|> startProfileAt([
31.2 + (28 - 2) * sin(23 * pi() / 180),
33.3 + (28 - 2) * cos(23 * pi() / 180) + 1.75 / 2
], %)
|> startProfile(at = [31.2 + (28 - 2) * sin(23 * pi() / 180), 33.3 + (28 - 2) * cos(23 * pi() / 180) + 1.75 / 2])
|> angledLine(angle = 180 - 23, length = 28 - 2 )
|> angledLine(angle = -23 - 45, length = -1.414 )
|> angledLine(angle = -23, length = 28 )
@ -316,10 +301,7 @@ const sketch012w = startSketchOn(plane002)
const extrude012w = extrude(sketch012w, length = 1)
const sketch013w = startSketchOn(plane002)
|> startProfileAt([
1 + 4 * cos(23 * pi() / 180),
40.6 - (4 * sin(23 * pi() / 180)) + 1.75 / 2
], %)
|> startProfile(at = [1 + 4 * cos(23 * pi() / 180), 40.6 - (4 * sin(23 * pi() / 180)) + 1.75 / 2])
|> angledLine(angle = -23, length = 1 )
|> angledLine(angle = -23 + 90, endAbsoluteX = 1)
|> yLine(length = 2.56)
@ -328,10 +310,7 @@ const sketch013w = startSketchOn(plane002)
const extrude013w = extrude(sketch013w, length = 1)
const sketch014w = startSketchOn(plane002)
|> startProfileAt([
1 + 12 * cos(23 * pi() / 180),
40.6 - (12 * sin(23 * pi() / 180)) + 1.75 / 2
], %)
|> startProfile(at = [1 + 12 * cos(23 * pi() / 180), 40.6 - (12 * sin(23 * pi() / 180)) + 1.75 / 2])
|> angledLine(angle = -23 - 90, length = 36 / 2 )
|> angledLine(angle = -23, length = 1 )
|> angledLine(angle = -23 - 90, length = -36 / 2 )
@ -340,10 +319,7 @@ const sketch014w = startSketchOn(plane002)
const extrude014w = extrude(sketch014w, length = 1)
const sketch015w = startSketchOn(plane002)
|> startProfileAt([
1 + (36 - 5.55 - 8) * cos(23 * pi() / 180),
40.6 - ((36 - 5.55 - 8) * sin(23 * pi() / 180)) + 1.75 / 2
], %)
|> startProfile(at = [1 + (36 - 5.55 - 8) * cos(23 * pi() / 180), 40.6 - ((36 - 5.55 - 8) * sin(23 * pi() / 180)) + 1.75 / 2])
|> angledLine(angle = -23 - 90, length = 36 / 2 )
|> angledLine(angle = -23, length = 1 )
|> angledLine(angle = -23 - 90, length = -36 / 2 )
@ -352,10 +328,7 @@ const sketch015w = startSketchOn(plane002)
const extrude015w = extrude(sketch015w, length = 1)
const sketch016w = startSketchOn(plane002)
|> startProfileAt([
1 + (36 - 5.5) * cos(23 * pi() / 180),
40.6 - ((36 - 5.5) * sin(23 * pi() / 180)) + 1.75 / 2
], %)
|> startProfile(at = [1 + (36 - 5.5) * cos(23 * pi() / 180), 40.6 - ((36 - 5.5) * sin(23 * pi() / 180)) + 1.75 / 2])
|> angledLine(angle = -23 - 90, length = 36 / 2 )
|> angledLine(angle = -23, length = 1 )
|> angledLine(angle = -23 - 90, length = -36 / 2 )
@ -364,10 +337,7 @@ const sketch016w = startSketchOn(plane002)
const extrude016w = extrude(sketch016w, length = 1)
const sketch017w = startSketchOn(plane002)
|> startProfileAt([
depth - 1 - (3.7 * cos(23 * pi() / 180)),
60.65 + 3.7 * sin(23 * pi() / 180) + 1.75 / 2
], %)
|> startProfile(at = [depth - 1 - (3.7 * cos(23 * pi() / 180)), 60.65 + 3.7 * sin(23 * pi() / 180) + 1.75 / 2])
|> arc(angleStart = -23, angleEnd = 180 - 23, radius = 7 / 2 + 2)
|> angledLine(angle = -23 + 180, length = -1 )
|> arc(angleStart = 180 - 23, angleEnd = -23, radius = 7 / 2 + 1)
@ -376,10 +346,7 @@ const sketch017w = startSketchOn(plane002)
const extrude017w = extrude(sketch017w, length = 1)
const sketch018w = startSketchOn(plane002)
|> startProfileAt([
depth - 1 - (19.3 * cos(23 * pi() / 180)),
60.65 + 19.3 * sin(23 * pi() / 180) + 1.75 / 2
], %)
|> startProfile(at = [depth - 1 - (19.3 * cos(23 * pi() / 180)), 60.65 + 19.3 * sin(23 * pi() / 180) + 1.75 / 2])
|> arc(angleStart = -23, angleEnd = 180 - 23, radius = 7 / 2 + 2)
|> angledLine(angle = -23 + 180, length = -1 )
|> arc(angleStart = 180 - 23, angleEnd = -23, radius = 7 / 2 + 1)
@ -388,7 +355,7 @@ const sketch018w = startSketchOn(plane002)
const extrude018w = extrude(sketch018w, length = 1)
const sketch019w = startSketchOn(plane002)
|> startProfileAt([1, 27.8 + 1.75 / 2], %)
|> startProfile(at = [1, 27.8 + 1.75 / 2])
|> angledLine(angle = -23, length = 7 )
|> angledLine(angle = -23 + 90, length = -1 )
|> angledLine(angle = -23, endAbsoluteX = 1)
@ -397,10 +364,7 @@ const sketch019w = startSketchOn(plane002)
const extrude019w = extrude(sketch019w, length = 1)
const sketch020w = startSketchOn(plane002)
|> startProfileAt([
1 + (36 - 5.53 - 12) * cos(23 * pi() / 180),
27.8 + 1.75 / 2 - ((36 - 5.53 - 12) * sin(23 * pi() / 180))
], %)
|> startProfile(at = [1 + (36 - 5.53 - 12) * cos(23 * pi() / 180), 27.8 + 1.75 / 2 - ((36 - 5.53 - 12) * sin(23 * pi() / 180))])
|> angledLine(angle = -23, length = 7 )
|> angledLine(angle = -23 + 90, length = -1 )
|> angledLine(angle = -23 + 180, length = 7 )
@ -409,7 +373,7 @@ const sketch020w = startSketchOn(plane002)
const extrude020w = extrude(sketch020w, length = 1)
const sketch021w = startSketchOn(plane002)
|> startProfileAt([1, 21.9], %)
|> startProfile(at = [1, 21.9])
|> angledLine(angle = -23, endAbsoluteX = depth - 1)
|> yLine(length = -1.1)
|> angledLine(angle = -23, endAbsoluteX = 1)
@ -418,7 +382,7 @@ const sketch021w = startSketchOn(plane002)
const extrude021w = extrude(sketch021w, length = 1)
const sketch022w = startSketchOn(plane002)
|> startProfileAt([depth - 1, 74.1], %)
|> startProfile(at = [depth - 1, 74.1])
|> angledLine(angle = 180 - 23, endAbsoluteY = railHeight * 1.75 + 1)
|> xLine(length = -2.56)
|> angledLine(angle = -23, endAbsoluteX = depth - 1)
@ -427,7 +391,7 @@ const sketch022w = startSketchOn(plane002)
const extrude022w = extrude(sketch022w, length = 1)
const sketch023w = startSketchOn(plane002)
|> startProfileAt([1, 69.53 + 1.75], %)
|> startProfile(at = [1, 69.53 + 1.75])
|> angledLine(angle = 90 - 23, endAbsoluteY = railHeight * 1.75 + 1)
|> xLine(length = 1.086)
|> angledLine(angle = 90 - 23, endAbsoluteX = 1)
@ -436,7 +400,7 @@ const sketch023w = startSketchOn(plane002)
const extrude023w = extrude(sketch023w, length = 1)
const sketch024w = startSketchOn(plane002)
|> startProfileAt([1, 16.5], %)
|> startProfile(at = [1, 16.5])
|> angledLine(angle = -23, endAbsoluteY = 1)
|> xLine(length = -2.56)
|> angledLine(angle = -23, endAbsoluteX = 1)
@ -445,7 +409,7 @@ const sketch024w = startSketchOn(plane002)
const extrude024w = extrude(sketch024w, length = 1)
const sketch025w = startSketchOn(plane002)
|> startProfileAt([1, 4], %)
|> startProfile(at = [1, 4])
|> angledLine(angle = -23, endAbsoluteY = 1)
|> xLine(length = -2.56)
|> angledLine(angle = -23, endAbsoluteX = 1)
@ -462,7 +426,7 @@ const plane003 = {
}
const sketch005 = startSketchOn(plane003)
|> startProfileAt([width - 1, 0], %)
|> startProfile(at = [width - 1, 0])
|> line(end = [-width + 2, 3])
|> line(end = [0, 1])
|> line(end = [width - 2, -3])
@ -472,7 +436,7 @@ const sketch005 = startSketchOn(plane003)
const extrude005 = extrude(sketch005, length = 1)
const sketch006 = startSketchOn(plane003)
|> startProfileAt([width - 1, 0 + 2.756], %)
|> startProfile(at = [width - 1, 0 + 2.756])
|> line(end = [-width + 2, 3])
|> line(end = [0, 1])
|> line(end = [width - 2, -3])
@ -482,7 +446,7 @@ const sketch006 = startSketchOn(plane003)
const extrude006 = extrude(sketch006, length = 1)
const sketch007 = startSketchOn(plane003)
|> startProfileAt([width - 1, depth], %)
|> startProfile(at = [width - 1, depth])
|> line(end = [-width + 1, -depth + serverDepth + 3.8])
|> line(end = [1, 0])
|> line(end = [0, -.75])
@ -495,7 +459,7 @@ const sketch007 = startSketchOn(plane003)
const extrude007 = extrude(sketch007, length = 1)
const sketch008 = startSketchOn(plane003)
|> startProfileAt([width - 1, depth - 2.8], %)
|> startProfile(at = [width - 1, depth - 2.8])
|> line(end = [-width + 2, -depth + serverDepth + 4.4])
|> line(end = [0, -1.32])
|> line(end = [width - 2, depth - serverDepth - 4.4])
@ -513,7 +477,7 @@ const plane004 = {
}
const sketch005t = startSketchOn(plane004)
|> startProfileAt([width - 1, 0], %)
|> startProfile(at = [width - 1, 0])
|> line(end = [-width + 2, 3])
|> line(end = [0, 1])
|> line(end = [width - 2, -3])
@ -523,7 +487,7 @@ const sketch005t = startSketchOn(plane004)
const extrude005t = extrude(sketch005t, length = -1)
const sketch007t = startSketchOn(plane004)
|> startProfileAt([width - 1, depth], %)
|> startProfile(at = [width - 1, depth])
|> line(end = [-width + 1, -depth + serverDepth + 3.8])
|> line(end = [1, 0])
|> line(end = [0, -.75])
@ -536,7 +500,7 @@ const sketch007t = startSketchOn(plane004)
const extrude007t = extrude(sketch007t, length = -1)
const sketch008t = startSketchOn(plane004)
|> startProfileAt([width - 1, 0 + 2.756], %)
|> startProfile(at = [width - 1, 0 + 2.756])
|> line(end = [-width + 2, 3])
|> line(end = [0, 1])
|> line(end = [width - 2, -3])
@ -545,7 +509,7 @@ const sketch008t = startSketchOn(plane004)
const extrude008t = extrude(sketch008t, length = -1)
const sketch009t = startSketchOn(plane004)
|> startProfileAt([width - 1, depth - 2.8], %)
|> startProfile(at = [width - 1, depth - 2.8])
|> line(end = [-width + 2, -depth + serverDepth + 4.4])
|> line(end = [0, -1.32])
|> line(end = [width - 2, depth - serverDepth - 4.4])
@ -587,7 +551,7 @@ const planeYZfl = {
// Base flange
const sketch001fl = startSketchOn(planeXZfl)
|> startProfileAt([bendRad + thickness, 0], %)
|> startProfile(at = [bendRad + thickness, 0])
|> angledLine(angle = 0, length = 2 - bendRad - thickness, tag = $rectangleSegmentA001fl)
|> angledLine(angle = segAng(rectangleSegmentA001fl) + 90, length = railHeight * 1.75, tag = $rectangleSegmentB001fl)
|> angledLine(angle = segAng(rectangleSegmentA001fl), length = -segLen(rectangleSegmentA001fl), tag = $rectangleSegmentC001fl)
@ -597,7 +561,7 @@ const extrude001fl = extrude(sketch001fl, length = thickness)
// First flange
const sketch002fl = startSketchOn(planeYZfl)
|> startProfileAt([-bendRad - thickness, 0], %)
|> startProfile(at = [-bendRad - thickness, 0])
|> angledLine(angle = 180, length = 0.89 - bendRad - thickness, tag = $rectangleSegmentA002fl)
|> angledLine(angle = segAng(rectangleSegmentA002fl) - 90, length = railHeight * 1.75, tag = $rectangleSegmentB002fl)
|> angledLine(angle = segAng(rectangleSegmentA002fl), length = -segLen(rectangleSegmentA002fl), tag = $rectangleSegmentC002fl)
@ -608,10 +572,7 @@ const extrude002fl = extrude(sketch002fl, length = thickness)
// Bend
const sketch003fl = startSketchOn(planeXYfl)
|> startProfileAt([
0 + thickness + bendRad + originStart[1],
originStart[0]
], %)
|> startProfile(at = [0 + thickness + bendRad + originStart[1], originStart[0]])
|> arc(angleStart = 270, angleEnd = 180, radius = bendRad + thickness)
|> xLine(length = thickness)
|> arc(angleStart = 180, angleEnd = 270, radius = bendRad)
@ -622,10 +583,7 @@ const extrude003fl = extrude(sketch003fl, length = railHeight * 1.75)
// define slots
const sketch010fl = startSketchOn(extrude001fl, face = 'START')
|> startProfileAt([
-1.12 + (.75 - .438) / 2 - originStart[0],
originStart[2] + .81 - (.438 / 2)
], %)
|> startProfile(at = [-1.12 + (.75 - .438) / 2 - originStart[0], originStart[2] + .81 - (.438 / 2)])
|> xLine(length = 0.75 - .438)
|> tangentialArc(endAbsolute = [
-0.66 - originStart[0],
@ -643,10 +601,7 @@ const extrude010fl = extrude(sketch010fl, length = -thickness)
// define slots
const sketch011fl = startSketchOn(extrude001fl, face = 'START')
|> startProfileAt([
-1.12 + (.75 - .438) / 2 - originStart[0],
originStart[2] + railHeight * 1.75 / 2 + .438 / 2
], %)
|> startProfile(at = [-1.12 + (.75 - .438) / 2 - originStart[0], originStart[2] + railHeight * 1.75 / 2 + .438 / 2])
|> xLine(length = 0.75 - .438)
|> tangentialArc(endAbsolute = [
-0.66 - originStart[0],
@ -660,10 +615,7 @@ const extrude011fl = extrude(sketch011fl, length = -thickness)
// define slots
const sketch012fl = startSketchOn(extrude001fl, face = 'START')
|> startProfileAt([
-1.12 + (.75 - .438) / 2 - originStart[0],
originStart[2] + railHeight * 1.75 - .81 + .438 / 2
], %)
|> startProfile(at = [-1.12 + (.75 - .438) / 2 - originStart[0], originStart[2] + railHeight * 1.75 - .81 + .438 / 2])
|> xLine(length = 0.75 - .438)
|> tangentialArc(endAbsolute = [
-0.66 - originStart[0],
@ -712,7 +664,7 @@ const planeYZfr = {
// Base flange
const sketch001fr = startSketchOn(planeXZfr)
|> startProfileAt([bendRad + thickness, 0], %)
|> startProfile(at = [bendRad + thickness, 0])
|> angledLine(angle = 0, length = 2 - bendRad - thickness, tag = $rectangleSegmentA001fr)
|> angledLine(angle = segAng(rectangleSegmentA001fr) + 90, length = railHeight * 1.75, tag = $rectangleSegmentB001fr)
|> angledLine(angle = segAng(rectangleSegmentA001fr), length = -segLen(rectangleSegmentA001fr), tag = $rectangleSegmentC001fr)
@ -722,7 +674,7 @@ const extrude001fr = extrude(sketch001fr, length = thickness)
// First flange
const sketch002fr = startSketchOn(planeYZfr)
|> startProfileAt([0.89, 0], %)
|> startProfile(at = [0.89, 0])
|> angledLine(angle = 180, length = 0.89 - bendRad - thickness, tag = $rectangleSegmentA002fr)
|> angledLine(angle = segAng(rectangleSegmentA002fr) - 90, length = railHeight * 1.75, tag = $rectangleSegmentB002fr)
|> angledLine(angle = segAng(rectangleSegmentA002fr), length = -segLen(rectangleSegmentA002fr), tag = $rectangleSegmentC002fr)
@ -733,10 +685,7 @@ const extrude002fr = extrude(sketch002fr, length = thickness)
// Bend
const sketch003fr = startSketchOn(planeXYfr)
|> startProfileAt([
bendRad + originStart[1] + width - 2 - thickness - bendRad,
originStart[0] + bendRad + thickness
], %)
|> startProfile(at = [bendRad + originStart[1] + width - 2 - thickness - bendRad, originStart[0] + bendRad + thickness])
|> arc(angleStart = 0, angleEnd = -90, radius = bendRad)
|> yLine(length = -thickness)
|> arc(angleStart = -90, angleEnd = 0, radius = bendRad + thickness)
@ -746,10 +695,7 @@ const extrude003fr = extrude(sketch003fr, length = railHeight * 1.75)
// define slots
const sketch010fr = startSketchOn(extrude001fr, face = 'START')
|> startProfileAt([
-1.12 + (.75 - .438) / 2 - originStart[0],
originStart[2] + .81 - (.438 / 2)
], %)
|> startProfile(at = [-1.12 + (.75 - .438) / 2 - originStart[0], originStart[2] + .81 - (.438 / 2)])
|> xLine(length = 0.75 - .438)
|> tangentialArc(endAbsolute = [
-0.66 - originStart[0],
@ -767,10 +713,7 @@ const extrude010fr = extrude(sketch010fr, length = -thickness)
// define slots
const sketch011fr = startSketchOn(extrude001fr, face = 'START')
|> startProfileAt([
-1.12 + (.75 - .438) / 2 - originStart[0],
originStart[2] + railHeight * 1.75 / 2 + .438 / 2
], %)
|> startProfile(at = [-1.12 + (.75 - .438) / 2 - originStart[0], originStart[2] + railHeight * 1.75 / 2 + .438 / 2])
|> xLine(length = 0.75 - .438)
|> tangentialArc(endAbsolute = [
-0.66 - originStart[0],
@ -784,10 +727,7 @@ const extrude011fr = extrude(sketch011fr, length = -thickness)
// define slots
const sketch012fr = startSketchOn(extrude001fr, face = 'START')
|> startProfileAt([
-1.12 + (.75 - .438) / 2 - originStart[0],
originStart[2] + railHeight * 1.75 - .81 + .438 / 2
], %)
|> startProfile(at = [-1.12 + (.75 - .438) / 2 - originStart[0], originStart[2] + railHeight * 1.75 - .81 + .438 / 2])
|> xLine(length = 0.75 - .438)
|> tangentialArc(endAbsolute = [
-0.66 - originStart[0],
@ -836,7 +776,7 @@ const planeYZrr = {
// Base flange
const sketch001rr = startSketchOn(planeXZrr)
|> startProfileAt([bendRad + thickness, 0], %)
|> startProfile(at = [bendRad + thickness, 0])
|> angledLine(angle = 0, length = 2 - bendRad - thickness, tag = $rectangleSegmentA001rr)
|> angledLine(angle = segAng(rectangleSegmentA001rr) + 90, length = railHeight * 1.75, tag = $rectangleSegmentB001rr)
|> angledLine(angle = segAng(rectangleSegmentA001rr), length = -segLen(rectangleSegmentA001rr), tag = $rectangleSegmentC001rr)
@ -846,7 +786,7 @@ const extrude001rr = extrude(sketch001rr, length = thickness)
// First flange
const sketch002rr = startSketchOn(planeYZrr)
|> startProfileAt([0.89, 0], %)
|> startProfile(at = [0.89, 0])
|> angledLine(angle = 180, length = 0.89 - bendRad - thickness, tag = $rectangleSegmentA002rr)
|> angledLine(angle = segAng(rectangleSegmentA002rr) - 90, length = railHeight * 1.75, tag = $rectangleSegmentB002rr)
|> angledLine(angle = segAng(rectangleSegmentA002rr), length = -segLen(rectangleSegmentA002rr), tag = $rectangleSegmentC002rr)
@ -857,10 +797,7 @@ const extrude002rr = extrude(sketch002rr, length = thickness)
// Bend
const sketch003rr = startSketchOn(planeXYrr)
|> startProfileAt([
bendRad + originStart[1] + width - 2 - bendRad,
originStart[0] - bendRad
], %)
|> startProfile(at = [bendRad + originStart[1] + width - 2 - bendRad, originStart[0] - bendRad])
|> arc(angleStart = 0, angleEnd = 90, radius = bendRad + thickness)
|> yLine(length = -thickness)
|> arc(angleStart = 90, angleEnd = 0, radius = bendRad)
@ -870,10 +807,7 @@ const extrude003rr = extrude(sketch003rr, length = railHeight * 1.75)
// define slots
const sketch010rr = startSketchOn(extrude001rr, face = 'START')
|> startProfileAt([
-1.12 + (.75 - .438) / 2 - originStart[0] + 1.5 - serverDepth,
originStart[2] + .81 - (.438 / 2)
], %)
|> startProfile(at = [-1.12 + (.75 - .438) / 2 - originStart[0] + 1.5 - serverDepth, originStart[2] + .81 - (.438 / 2)])
|> xLine(length = 0.75 - .438)
|> tangentialArc(endAbsolute = [
-0.66 - originStart[0] + 1.5 - serverDepth,
@ -891,10 +825,7 @@ const extrude010rr = extrude(sketch010rr, length = -thickness)
// define slots
const sketch011rr = startSketchOn(extrude001rr, face = 'START')
|> startProfileAt([
-1.12 + (.75 - .438) / 2 - originStart[0] + 1.5 - serverDepth,
originStart[2] + railHeight * 1.75 / 2 + .438 / 2
], %)
|> startProfile(at = [-1.12 + (.75 - .438) / 2 - originStart[0] + 1.5 - serverDepth, originStart[2] + railHeight * 1.75 / 2 + .438 / 2])
|> xLine(length = 0.75 - .438)
|> tangentialArc(endAbsolute = [
-0.66 - originStart[0] + 1.5 - serverDepth,
@ -908,10 +839,7 @@ const extrude011rr = extrude(sketch011rr, length = -thickness)
// define slots
const sketch012rr = startSketchOn(extrude001rr, face = 'START')
|> startProfileAt([
-1.12 + (.75 - .438) / 2 - originStart[0] + 1.5 - serverDepth,
originStart[2] + railHeight * 1.75 - .81 + .438 / 2
], %)
|> startProfile(at = [-1.12 + (.75 - .438) / 2 - originStart[0] + 1.5 - serverDepth, originStart[2] + railHeight * 1.75 - .81 + .438 / 2])
|> xLine(length = 0.75 - .438)
|> tangentialArc(endAbsolute = [
-0.66 - originStart[0] + 1.5 - serverDepth,
@ -959,7 +887,7 @@ const planeYZrl = {
}
// Base flange
const sketch001rl = startSketchOn(planeXZrl)
|> startProfileAt([bendRad + thickness, 0], %)
|> startProfile(at = [bendRad + thickness, 0])
|> angledLine(angle = 0, length = 2 - bendRad - thickness, tag = $rectangleSegmentA001rl)
|> angledLine(angle = segAng(rectangleSegmentA001rl) + 90, length = railHeight * 1.75, tag = $rectangleSegmentB001rl)
|> angledLine(angle = segAng(rectangleSegmentA001rl), length = -segLen(rectangleSegmentA001rl), tag = $rectangleSegmentC001rl)
@ -969,7 +897,7 @@ const extrude001rl = extrude(sketch001rl, length = thickness)
// First flange
const sketch002rl = startSketchOn(planeYZrl)
|> startProfileAt([-bendRad - thickness, 0], %)
|> startProfile(at = [-bendRad - thickness, 0])
|> angledLine(angle = 180, length = 0.89 - bendRad - thickness, tag = $rectangleSegmentA002rl)
|> angledLine(angle = segAng(rectangleSegmentA002rl) - 90, length = railHeight * 1.75, tag = $rectangleSegmentB002rl)
|> angledLine(angle = segAng(rectangleSegmentA002rl), length = -segLen(rectangleSegmentA002rl), tag = $rectangleSegmentC002rl)
@ -980,10 +908,7 @@ const extrude002rl = extrude(sketch002rl, length = thickness)
// Bend
const sketch003rl = startSketchOn(planeXYrl)
|> startProfileAt([
bendRad + originStart[1] + thickness,
originStart[0]
], %)
|> startProfile(at = [bendRad + originStart[1] + thickness, originStart[0]])
|> arc(angleStart = 90, angleEnd = 180, radius = bendRad)
|> xLine(length = -thickness)
|> arc(angleStart = 180, angleEnd = 90, radius = bendRad + thickness)
@ -993,10 +918,7 @@ const extrude003rl = extrude(sketch003rl, length = railHeight * 1.75)
// define slots
const sketch010rl = startSketchOn(extrude001rl, face = 'START')
|> startProfileAt([
-1.12 + (.75 - .438) / 2 - originStart[0] - serverDepth + 1.5,
originStart[2] + .81 - (.438 / 2)
], %)
|> startProfile(at = [-1.12 + (.75 - .438) / 2 - originStart[0] - serverDepth + 1.5, originStart[2] + .81 - (.438 / 2)])
|> xLine(length = 0.75 - .438)
|> tangentialArc(endAbsolute = [
-0.66 - originStart[0] - serverDepth + 1.5,
@ -1014,10 +936,7 @@ const extrude010rl = extrude(sketch010rl, length = -thickness)
// define slots
const sketch011rl = startSketchOn(extrude001rl, face = 'START')
|> startProfileAt([
-1.12 + (.75 - .438) / 2 - originStart[0] - serverDepth + 1.5,
originStart[2] + railHeight * 1.75 / 2 + .438 / 2
], %)
|> startProfile(at = [-1.12 + (.75 - .438) / 2 - originStart[0] - serverDepth + 1.5, originStart[2] + railHeight * 1.75 / 2 + .438 / 2])
|> xLine(length = 0.75 - .438)
|> tangentialArc(endAbsolute = [
-0.66 - originStart[0] - serverDepth + 1.5,
@ -1031,10 +950,7 @@ const extrude011rl = extrude(sketch011rl, length = -thickness)
// define slots
const sketch012rl = startSketchOn(extrude001rl, face = 'START')
|> startProfileAt([
-1.12 + (.75 - .438) / 2 - originStart[0] - serverDepth + 1.5,
originStart[2] + railHeight * 1.75 - .81 + .438 / 2
], %)
|> startProfile(at = [-1.12 + (.75 - .438) / 2 - originStart[0] - serverDepth + 1.5, originStart[2] + railHeight * 1.75 - .81 + .438 / 2])
|> xLine(length = 0.75 - .438)
|> tangentialArc(endAbsolute = [
-0.66 - originStart[0] - serverDepth + 1.5,
@ -1073,7 +989,7 @@ fn streamServer = (serverPos) => {
}
const sketch001s = startSketchOn(planeXYs)
|> startProfileAt([1 + 1.2, 1], %)
|> startProfile(at = [1 + 1.2, 1])
|> angledLine(angle = 0, length = 17.2, tag = $rectangleSegmentA001)
|> angledLine(angle = segAng(rectangleSegmentA001) + 90, length = 29, tag = $rectangleSegmentB001)
|> angledLine(angle = segAng(rectangleSegmentA001), length = -segLen(rectangleSegmentA001), tag = $rectangleSegmentC001)
@ -1082,7 +998,7 @@ fn streamServer = (serverPos) => {
const extrude001s = extrude(sketch001s, length = 7)
const sketch002s = startSketchOn(planeXZs)
|> startProfileAt([-1, 4.114 + 1 + serverPos * 1.75], %)
|> startProfile(at = [-1, 4.114 + 1 + serverPos * 1.75])
|> yLine(length = 6.98)
|> xLine(length = 0.2)
|> yLine(length = -0.36)
@ -1106,7 +1022,7 @@ fn streamServer = (serverPos) => {
const extrude002s = extrude(sketch002s, length = 1.8 / 2)
const sketch003s = startSketchOn(planeXZs2)
|> startProfileAt([-1, 4.114 + 1 + serverPos * 1.75], %)
|> startProfile(at = [-1, 4.114 + 1 + serverPos * 1.75])
|> yLine(length = 6.98)
|> xLine(length = 0.2)
|> yLine(length = -0.36)

View File

@ -1,5 +1,5 @@
const sketch001 = startSketchOn(XZ)
|> startProfileAt([75.8, 317.2], %) // [$startCapTag, $EndCapTag]
|> startProfile(at = [75.8, 317.2]) // [$startCapTag, $EndCapTag]
|> angledLine(angle = 0, length = 268.43, tag = $rectangleSegmentA001)
|> angledLine(angle = segAng(rectangleSegmentA001) - 90, length = 217.26, tag = $seg01)
|> angledLine(angle = segAng(rectangleSegmentA001), length = -segLen(rectangleSegmentA001))
@ -15,14 +15,14 @@ const extrude001 = extrude(sketch001, length = 100)
|> chamfer(length = 50, tags = [seg02], tag = $seg04)
const sketch003 = startSketchOn(extrude001, face = seg04)
|> startProfileAt([-69.1, 277.34], %)
|> startProfile(at = [-69.1, 277.34])
|> angledLine(angle = 0, length = 41.48, tag = $rectangleSegmentA003)
|> angledLine(angle = segAng(rectangleSegmentA003) - 90, length = 104.8, tag = $rectangleSegmentB002)
|> angledLine(angle = segAng(rectangleSegmentA003), length = -segLen(rectangleSegmentA003), tag = $rectangleSegmentC002)
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
const sketch002 = startSketchOn(extrude001, face = seg03)
|> startProfileAt([159.25, 278.35], %)
|> startProfile(at = [159.25, 278.35])
|> angledLine(angle = 0, length = 40.82, tag = $rectangleSegmentA002)
|> angledLine(angle = segAng(rectangleSegmentA002) - 90, length = 132.27, tag = $rectangleSegmentB001)
|> angledLine(angle = segAng(rectangleSegmentA002), length = -segLen(rectangleSegmentA002), tag = $rectangleSegmentC001)

View File

@ -1,5 +1,5 @@
const sketch001 = startSketchOn(XZ)
|> startProfileAt([75.8, 317.2], %) // [$startCapTag, $EndCapTag]
|> startProfile(at = [75.8, 317.2]) // [$startCapTag, $EndCapTag]
|> angledLine(angle = 0, length = 268.43, tag = $rectangleSegmentA001)
|> angledLine(angle = segAng(rectangleSegmentA001) - 90, length = 217.26, tag = $seg01)
|> angledLine(angle = segAng(rectangleSegmentA001), length = -segLen(rectangleSegmentA001))
@ -15,14 +15,14 @@ const extrude001 = extrude(sketch001, length = 100)
)
const sketch003 = startSketchOn(extrude001, face = seg04)
|> startProfileAt([-69.1, 277.34], %)
|> startProfile(at = [-69.1, 277.34])
|> angledLine(angle = 0, length = 41.48, tag = $rectangleSegmentA003)
|> angledLine(angle = segAng(rectangleSegmentA003) - 90, length = 104.8, tag = $rectangleSegmentB002)
|> angledLine(angle = segAng(rectangleSegmentA003), length = -segLen(rectangleSegmentA003), tag = $rectangleSegmentC002)
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
const sketch002 = startSketchOn(extrude001, face = seg03)
|> startProfileAt([159.25, 278.35], %)
|> startProfile(at = [159.25, 278.35])
|> angledLine(angle = 0, length = 40.82, tag = $rectangleSegmentA002)
|> angledLine(angle = segAng(rectangleSegmentA002) - 90, length = 132.27, tag = $rectangleSegmentB001)
|> angledLine(angle = segAng(rectangleSegmentA002), length = -segLen(rectangleSegmentA002), tag = $rectangleSegmentC001)

View File

@ -1,5 +1,5 @@
part001 = startSketchOn(XY)
|> startProfileAt([11.19, 28.35], %)
|> startProfile(at = [11.19, 28.35])
|> line(end = [28.67, -13.25], tag = $here)
|> line(end = [-4.12, -22.81])
|> line(end = [-33.24, 14.55])
@ -7,7 +7,7 @@ part001 = startSketchOn(XY)
|> extrude(length = 5)
part002 = startSketchOn(part001, face = here)
|> startProfileAt([0, 0], %)
|> startProfile(at = [0, 0])
|> line(end = [0, 10])
|> line(end = [10, 0])
|> line(end = [0, -10])

View File

@ -24,7 +24,7 @@ filletR = 0.25
// Sketch the bracket and extrude with fillets
bracket = startSketchOn(XY)
|> startProfileAt([0, 0], %)
|> startProfile(at = [0, 0])
|> line(end = [0, wallMountL], tag = $outerEdge)
|> line(end = [-shelfMountL, 0], tag = $seg01)
|> line(end = [0, -thickness])
@ -46,7 +46,7 @@ bracket = startSketchOn(XY)
)
sketch001 = startSketchOn(bracket, face = seg01)
|> startProfileAt([4.28, 3.83], %)
|> startProfile(at = [4.28, 3.83])
|> line(end = [2.17, -0.03])
|> line(end = [-0.07, -1.8])
|> line(end = [-2.07, 0.05])

View File

@ -1,6 +1,6 @@
fn cube = (pos, scale) => {
const sg = startSketchOn(XY)
|> startProfileAt(pos, %)
|> startProfile(at = pos)
|> line(end = [0, scale])
|> line(end = [scale, 0])
|> line(end = [0, -scale])

View File

@ -1,6 +1,6 @@
fn cube = (pos, scale) => {
const sg = startSketchOn(XY)
|> startProfileAt(pos, %)
|> startProfile(at = pos)
|> line(end = [0, scale])
|> line(end = [scale, 0])
|> line(end = [0, -scale])
@ -12,7 +12,7 @@ const part001 = cube([0,0], 20)
|> extrude(length = 20)
const part002 = startSketchOn(part001, face = "END")
|> startProfileAt([0, 0], %)
|> startProfile(at = [0, 0])
|> line(end = [0, 10])
|> line(end = [10, 0])
|> line(end = [0, -10])

View File

@ -1,6 +1,6 @@
fn cube = (pos, scale) => {
const sg = startSketchOn(XY)
|> startProfileAt(pos, %)
|> startProfile(at = pos)
|> line(end = [0, scale])
|> line(end = [scale, 0])
|> line(end = [0, -scale])
@ -12,7 +12,7 @@ const part001 = cube([0,0], 20)
|> extrude(length = 20)
const part002 = startSketchOn(part001, face = "END")
|> startProfileAt([0, 0], %)
|> startProfile(at = [0, 0])
|> line(end = [0, 10])
|> line(end = [10, 0])
|> line(end = [0, -10])

View File

@ -1,6 +1,6 @@
fn cube = (pos, scale) => {
const sg = startSketchOn(XY)
|> startProfileAt(pos, %)
|> startProfile(at = pos)
|> line(end = [0, scale])
|> line(end = [scale, 0])
|> line(end = [0, -scale])
@ -12,7 +12,7 @@ const part001 = cube([0,0], 20)
|> extrude(length = 20)
const part002 = startSketchOn(part001, face = "start")
|> startProfileAt([0, 0], %)
|> startProfile(at = [0, 0])
|> line(end = [0, 10])
|> line(end = [10, 0])
|> line(end = [0, -10])

View File

@ -27,7 +27,7 @@ const tubeFace = {
}
// Make the base
const s = startSketchOn('XY')
|> startProfileAt([-totalWidth / 2, -totalLength / 2], %)
|> startProfile(at = [-totalWidth / 2, -totalLength / 2])
|> line([totalWidth, 0], %)
|> line([0, totalLength], %)
|> line([-totalWidth, 0], %)
@ -36,10 +36,10 @@ const s = startSketchOn('XY')
// Sketch and extrude a rectangular shape to create the shell underneath the lego. This is a hack until we have a shell function.
const shellExtrude = startSketchOn(s, "start")
|> startProfileAt([
|> startProfile(at = [
-(totalWidth / 2 - t),
-(totalLength / 2 - t)
], %)
])
|> line([totalWidth - (2 * t), 0], %)
|> line([0, totalLength - (2 * t)], %)
|> line([-(totalWidth - (2 * t)), 0], %)

View File

@ -5,7 +5,7 @@ let r = 1
let angleStart = 110
startSketchOn(XY)
|> startProfileAt([startX, startY], %)
|> startProfile(at = [startX, startY])
|> angledLine(
angle = angleStart,
length = .000001,

View File

@ -1,5 +1,5 @@
const boxSketch = startSketchOn(XY)
|> startProfileAt([0, 0], %)
|> startProfile(at = [0, 0])
|> line(end = [0, 10])
|> tangentialArc(radius = 5, angle = 90)
|> line(end = [5, -15])

View File

@ -1,5 +1,5 @@
sketch002 = startSketchOn(XZ)
|> startProfileAt([-108.83, -57.48], %)
|> startProfile(at = [-108.83, -57.48])
|> angledLine(angle = 0, length = 105.13, tag = $rectangleSegmentA001)
|> angledLine(angle = segAng(rectangleSegmentA001) - 90, length = 77.9)
|> angledLine(angle = segAng(rectangleSegmentA001), length = -segLen(rectangleSegmentA001))

View File

@ -1,5 +1,5 @@
part001 = startSketchOn(XZ)
|> startProfileAt([0, 0], %)
|> startProfile(at = [0, 0])
|> line(endAbsolute = [100, 100])
|> line(endAbsolute = [100, 0])
|> close()