Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CRYPTIC]: Argument at index 0 was supposed to be type kcl_lib::std::sketch::SketchData but found Solids #5768

Open
jgomez720 opened this issue Mar 12, 2025 · 0 comments
Assignees
Labels
cryptic-error Source code produces a confusing error

Comments

@jgomez720
Copy link
Collaborator

jgomez720 commented Mar 12, 2025

Image

Paste minimal KCL source that produces a cryptic error

(this is test kcl I made up to simplify things)

sketch001 = startSketchOn('XY')
profile001 = startProfileAt([-63.68, 175.11], sketch001)
  |> line(end = [351.04, -97.96])
  |> yLine(length = -268.59)
  |> line(end = [-395.12, -84.9])
  |> line(end = [-154.29, 118.38])
  |> line(end = [28.57, 251.43])
  |> line(endAbsolute = [profileStartX(%), profileStartY(%)])
  |> close()
extrude001 = extrude(profile001, length = 100)
sketch002 = startSketchOn(extrude001, 'END')
profile002 = circle(
    sketch002, 
    center = [-56.67, 56.68], 
    radius = 13.07
)
  |> patternCircular2d(%, 
      instances = 10, 
      center = [0, 0], 
      arcDegrees = 360, 
      rotateDuplicates = false
)
extrude002 = extrude(profile002, length = 20)

sketch003 = startSketchOn(extrude002, 'end')

Expected Behavior

I expect this to fail, but the error would not help me if I was newer to the app.

Additional Context

This fails because I'm trying to sketch on a patterned extrude.

@jgomez720 jgomez720 added the cryptic-error Source code produces a confusing error label Mar 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cryptic-error Source code produces a confusing error
Projects
None yet
Development

No branches or pull requests

2 participants