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.

Highlight elements while editing without regeneration impact

I'd like to be able to highlight geometry for user reference while they're editing a FeatureScript but without impacting the overall regeneration performance. The closest way I know of doing this is with debug(), but that adds ~1ms regeneration per face or vector and ~6ms per direction even during normal part regeneration when nothing is being displayed.

Is this possible to do? Maybe some way to detect if the user has the custom feature open and only reaching the debug() if so?

Tagged:

Best Answer

  • joshtargo
    joshtargo Posts: 645 EDU
    Answer ✓

    Include a checkbox to display debugs or not, and if checked, do a reportfeaturewarning telling them that performance will be impacted if left on.

Answers

  • joshtargo
    joshtargo Posts: 645 EDU
    Answer ✓

    Include a checkbox to display debugs or not, and if checked, do a reportfeaturewarning telling them that performance will be impacted if left on.

  • rafi_pedersen
    rafi_pedersen Posts: 3 EDU

    I was hoping for a better solution, but I guess that's as good as it gets. Thanks!

  • EvanReese
    EvanReese Posts: 3,055 PRO

    That's also my solution to this issue. "preview" mode.

    Evan Reese
    The Onsherpa | Reach peak Onshape productivity
    www.theonsherpa.com