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

[BUG]: After creating model using revolve, I cannout use the point/click modeling editor to edit the sketch #2546

Closed
yeroca opened this issue May 29, 2024 · 4 comments · Fixed by #2749
Labels
bug Something isn't working

Comments

@yeroca
Copy link

yeroca commented May 29, 2024

Describe the bug

I created a simple polygon sketch on XY, then revolved it around the Y axis. Once the revolve operation as added, and I select the sketch in the model view or in the code view, the "Edit sketch" button comes up, but clicking on the button yields no change in the model view. I cannot edit the sketch.

Steps to Reproduce

  1. Use the following example:

const part001 = startSketchOn('XY')
|> startProfileAt([2, 0], %)
|> line([10, 0], %)
|> line([0, 2], %)
|> line([-2, 0], %)
|> line([-0, -1], %)
|> line([-8, 0], %)
|> close(%)
|> revolve({ axis: 'Y' }, %) // default angle is 360

  1. At this point you should see a line in the disk representing the edge of the sketch polygon
  2. select line or select the StartProfileAt line.
  3. The "Edit sketch" button should appear
  4. Click it.
  5. Nothing happens. No sketch mode is entered.

Expected Behavior

I expected that I should be able to edit the polygon sketch.

Screenshots and Recordings

No response

Desktop OS

Windows 10

Browser

N/A

Version

0.21.9

Additional Context

I made a video, but it turned out too large to attach here. If you are unable to reproduce this bug, please let me know.

@yeroca yeroca added the bug Something isn't working label May 29, 2024
@yeroca yeroca changed the title [BUG]: After creating model using revolve, I cannout use the point/click modeling editor to change the sketch [BUG]: After creating model using revolve, I cannout use the point/click modeling editor to edit the sketch May 29, 2024
@yeroca
Copy link
Author

yeroca commented May 29, 2024

Work-around for now is to comment out the revolve() call, edit the sketch, then uncomment it again.

@jessfraz
Copy link
Contributor

yes revolve has not been pulled thru yet to the point and click can track progress of all primitives here #729

@franknoirot
Copy link
Collaborator

franknoirot commented May 30, 2024

Work-around for now is to comment out the revolve() call, edit the sketch, then uncomment it again.

@yeroca another workaround for you is to define your sketch and your revolve as separate constants like so:

const sketch001 = startSketchOn('XY')
  |> startProfileAt([2, 0], %)
  |> line([10, 0], %)
  |> line([0, 2], %)
  |> line([-2, 0], %)
  |> line([-0, -1], %)
  |> line([-8, 0], %)
  |> close(%)
const revolve001 = revolve({ axis: 'Y' }, sketch001) // default angle is 360

The issue here is that when you add that |> revolve({ axis: 'Y' }) to the end of the sketch's pipe, it transforms part001 from a SketchGroup type to a RevolveGroup type. So when you go to select it, either through code or point-and-click, our system isn't smart enough (yet) to know that what you just clicked is something with both a SketchGroup and a RevolveGroup, and therefore enable the Edit Sketch button for you. We definitely want it to do that in the future, but in the meantime by separating the constants you should be able to click anywhere on your revolved item and see the Edit Sketch button available.

@yeroca
Copy link
Author

yeroca commented May 31, 2024

Ah, nice work-around! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants