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.
How to use regenError?
DSPuzzles
Member Posts: 17 EDU
I am trying to write a feature with error detection, and I'm trying to use regenError to highlight a query in red when it doesn't comply with the required selection. The code I am using is:
throw regenError(ERROR_STRING, ["distEnts"]);
Where "distEnts" corresponds to "definition.distEnts", the query in question. This is not highlighting the query in red though, what am I doing wrong?
Thanks.
throw regenError(ERROR_STRING, ["distEnts"]);
Where "distEnts" corresponds to "definition.distEnts", the query in question. This is not highlighting the query in red though, what am I doing wrong?
Thanks.
Tagged:
0
Best Answer
-
Jake_Rosenfeld Moderator, Onshape Employees, Developers Posts: 1,646Hi @Disousa
The query box will only highlight in red when it is not the selected box. So, if you get the feature to be in a state where this error is being thrown, and then select a different query box, the query you are calling out will be in red. The query box will stay blue as long as it is selected, though.Jake Rosenfeld - Modeling Team5
Answers
The query box will only highlight in red when it is not the selected box. So, if you get the feature to be in a state where this error is being thrown, and then select a different query box, the query you are calling out will be in red. The query box will stay blue as long as it is selected, though.