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.
Can Custom Feature Scripts Create Variables Automatically?
david_dalton526
Member Posts: 3 ✭
Would there be a way for me to create a feature script in which it will make a variable automatically with the only input from a person being the value. For ex. I'm trying to create a feature script to make bolt hole patterns that require an equation that uses multiple variables. I need to create variables that you can change when you open the feature script instead of opening every variable one at a time. If that is possible, would I be able to configure those variables inside of that feature script?
Tagged:
0
Best Answer
-
NeilCooke Moderator, Onshape Employees Posts: 5,714Yes! setVariable can be used to create new variables from FeatureScript.Senior Director, Technical Services, EMEAI1
Answers