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.

Feature Studio Preconditions for 'Slot Feature'

alison_gray769alison_gray769 Member Posts: 12

. 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

  • eric_pestyeric_pesty Member Posts: 1,951 PRO
    edited December 5

    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"…

Sign In or Register to comment.