Highlight elements while editing without regeneration impact

rafi_pedersen
rafi_pedersen Member Posts: 3 EDU

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 Member Posts: 695 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 Member Posts: 695 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 Member Posts: 3 EDU

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

  • EvanReese
    EvanReese Member, Mentor Posts: 3,099 PRO

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

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