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]: Incorrect revolve axis gives found object error #4464

Open
r-barton opened this issue Nov 11, 2024 · 0 comments
Open

[CRYPTIC]: Incorrect revolve axis gives found object error #4464

r-barton opened this issue Nov 11, 2024 · 0 comments
Labels
cryptic-error Source code produces a confusing error

Comments

@r-barton
Copy link
Contributor

Paste minimal KCL source that produces a cryptic error

// create a sketch sketch000
sketch000 = startSketchOn('XY')

// create sketch profile sketch000Profile000
sketch000Profile000 = startProfileAt([0.000000, 0.000000], sketch000)
  |> yLine(220.000000, %, $line000)
  |> xLine(20.000000, %, $line001)
  |> arc({
       angleStart: 90.000000,
       angleEnd: -90.000000,
       radius: 10.000000
     }, %, $arc000)
  |> yLine(-40.000000, %, $line003)
  |> arc({
       angleStart: 90.000000,
       angleEnd: -90.000000,
       radius: 20.000000
     }, %, $arc001)
  |> yLine(-40.000000, %, $line004)
  |> arc({
       angleStart: 180.000000,
       angleEnd: 270.000000,
       radius: 60.000000
     }, %, $arc002)
  |> arc({
       angleStart: 90.000000,
       angleEnd: -36.869898,
       radius: 12.500000
     }, %, $arc003)
  |> xLine(-90.000000, %, $line002)
  |> close(%)

// create a revolution revolve000Profile000 
revolve000Profile000 = revolve({axis: 'Z', angle: 360.000000}, sketch000Profile000)

Expected Behavior

The axis used to revolve the sketch is incorrect. However the error message provided is not helpful in determining what the root cause of the error might be. A better error message may be along the lines of Select an axis in the same plane as the provided sketch e.g. X or Y

Error from the modeling app
Argument at index 0 was supposed to be type kcl_lib::std::revolve::RevolveData but found object

Additional Context

No response

@r-barton r-barton added the cryptic-error Source code produces a confusing error label Nov 11, 2024
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

1 participant