Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- 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?
Best 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.
0
Answers
-
Include a checkbox to display debugs or not, and if checked, do a reportfeaturewarning telling them that performance will be impacted if left on.
0 -
I was hoping for a better solution, but I guess that's as good as it gets. Thanks!
0 -
That's also my solution to this issue. "preview" mode.
2

