Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.

First time visiting? Here are some places to start:

  1. Looking for a certain topic? Check out the categories filter or use Search (upper right).
  2. Need support? Ask a question to our Community Support category.
  3. Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
  4. Be respectful, on topic and if you see a problem, Flag it.

If you would like to contact our Community Manager personally, feel free to send a private message or an email.

Hiding a sketch

sören_svenssonsören_svensson Member Posts: 20
Hi,

Does anyone know how to hide a sketch so it doesn't show up on screen?

I create a sketch in FS and revolve it, but in the UI, both the revolved body and the sketch are visible.

I've tried the UIHint.ALWAYS_HIDDEN but no luck.

Regards
Soren

Tagged:

Best Answers

Answers

  • cadmandocadmando Member Posts: 68 ✭✭
    Click on the eye on the right side of the sketch you wish to hide in the Features List
  • sören_svenssonsören_svensson Member Posts: 20
    Thanks!

    opDeleteBodies did the trick.

    two things I don't get with that function

    1) why does it need a new id (id + "deleteBodies")?

    2) in the UI, if I delete a sketch, bodies based on it disappear too, but not here (from FS), how come?

    Regards
    Soren

  • ber_taber_ta Member Posts: 6
    You can create a new context and create a sketch inside this context. I did it and the created entities are not shown in feature list nor in viewport. But it seems that you can use all operations on them. Query ... evalute ... at leaste these somes i used were no probleme.

    Maybe this is what you was looking for.

    Regards
    Stephan
  • ilya_baranilya_baran Onshape Employees, Developers, HDM Posts: 952
    @ber_ta
    That won't work if you want to use the sketch for creating solid geometry in the context you actually care about -- if you make such a sketch, you have no way of making e.g. an extrusion based on it that you end up seeing (unless you merge the contexts, in which case you also get the sketch).
    Ilya Baran \ Director, Architecture and FeatureScript \ Onshape Inc
Sign In or Register to comment.