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.
Feature Studio Preconditions for 'Slot Feature'
. I am currently working through a FeatureScript Beginners Tutorial - Creating "A Slot Feature , designed for joining two laser-cut parts.
Please see attached, the tab for the Feature studio I populated with the same code in the Tutorial - there is an error on the 3rd line . Can you show me how to correct that?
Appreciate your assistance .
Thanks,
Alison C. Gray
https://cad.onshape.com/documents/ba4d995ec98623b5a0b7a7b3/w/929d199de80fa17b3ac3c966/e/54ee18823713d51b7005f2c6
Answers
You're missing the header at the top, also missing a colon and a " , and the const can't have a space in the name.
Writing code requires following the syntax precisely! Also the header gets added automatically when you create a feature studio so you would have had to delete it for it to go "missing"…