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.

Prevent featureScript from pre-calculating

timo_schmidtimo_schmid Member Posts: 27 EDU
Hi everyone,
I wrote a longer featureScript which needs about 10-20 selected vertices as input. When I start selecting them, it atomatically starts calculating which makes the process of selecting the vertices more difficult/slower.
Is there a way to stop the script from caclulating anything until I click the checkmark to finish the featureScript call?
Thanks for your help,


  • konstantin_shiriazdanovkonstantin_shiriazdanov Member Posts: 1,006 ✭✭✭✭✭
    Yea, add the boolean parameter like definition.calculate and wrap all heavy code in if (definition.calculate) { }
  • timo_schmidtimo_schmid Member Posts: 27 EDU
    Oh yeah, good solution.
    Thanks :smile:

Sign In or Register to comment.