Update sample code and tests

This commit is contained in:
Adam Chalmers
2025-02-04 09:57:10 -06:00
parent 60e636471b
commit dae7d96be3
46 changed files with 342 additions and 342 deletions

View File

@ -266,7 +266,7 @@ test.describe('Testing selections', () => {
|> startProfileAt([-79.26, 95.04], %)
|> line(end = [112.54, 127.64], tag = $seg02)
|> line(end = [170.36, -121.61], tag = $seg01)
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> line(endAbsolute = profileStart(%))
|> close()
extrude001 = extrude(sketch001, length = 50)
sketch005 = startSketchOn(extrude001, 'END')
@ -274,19 +274,19 @@ test.describe('Testing selections', () => {
|> line(end = [-8.44, 36.61])
|> line(end = [49.4, 2.05])
|> line(end = [29.69, -46.95])
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> line(endAbsolute = profileStart(%))
|> close()
sketch003 = startSketchOn(extrude001, seg01)
|> startProfileAt([21.23, 17.81], %)
|> line(end = [51.97, 21.32])
|> line(end = [4.07, -22.75])
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> line(endAbsolute = profileStart(%))
|> close()
sketch002 = startSketchOn(extrude001, seg02)
|> startProfileAt([-100.54, 16.99], %)
|> line(end = [0, 20.03])
|> line(end = [62.61, 0], tag = $seg03)
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> line(endAbsolute = profileStart(%))
|> close()
extrude002 = extrude(sketch002, length = 50)
sketch004 = startSketchOn(extrude002, seg03)
@ -294,7 +294,7 @@ test.describe('Testing selections', () => {
|> line(end = [-4.72, 22.84])
|> line(end = [28.8, 6.71])
|> line(end = [9.19, -25.33])
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> line(endAbsolute = profileStart(%))
|> close()
extrude003 = extrude(sketch004, length = 20)
pipeLength = 40
@ -435,7 +435,7 @@ test.describe('Testing selections', () => {
|> startProfileAt([-79.26, 95.04], %)
|> line(end = [112.54, 127.64], tag = $seg02)
|> line(end = [170.36, -121.61], tag = $seg01)
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> line(endAbsolute = profileStart(%))
|> close()
extrude001 = extrude(sketch001, length = 50)
launderExtrudeThroughVar = extrude001
@ -443,7 +443,7 @@ test.describe('Testing selections', () => {
|> startProfileAt([-100.54, 16.99], %)
|> line(end = [0, 20.03])
|> line(end = [62.61, 0], tag = $seg03)
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> line(endAbsolute = profileStart(%))
|> close()
`
)
@ -728,7 +728,7 @@ test.describe('Testing selections', () => {
segAng(rectangleSegmentA001),
-segLen(rectangleSegmentA001)
], %, $yo)
|> line(endAbsolute = [profileStartX(%), profileStartY(%)], tag = $seg02)
|> line(endAbsolute = profileStart(%), tag = $seg02)
|> close()
extrude001 = extrude(sketch001, length = 100)
|> chamfer({
@ -883,7 +883,7 @@ test.describe('Testing selections', () => {
|> startProfileAt([-12.94, 6.6], %)
|> line(end = [2.45, -0.2])
|> line(end = [-2, -1.25])
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> line(endAbsolute = profileStart(%))
|> close()
`
await u.codeLocator.fill(codeToAdd)
@ -988,7 +988,7 @@ test.describe('Testing selections', () => {
|> startProfileAt([-79.26, 95.04], %)
|> line(end = [112.54, 127.64])
|> line(end = [170.36, -121.61], tag = $seg01)
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> line(endAbsolute = profileStart(%))
|> close()
extrude001 = extrude(sketch001, length = 50)
`