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.
Learning FeatureScripts
Axel_Kollmenter
Member Posts: 415 PRO
Hello everyone,
I wanna deep dive into Feature Scripts and learn how to create my own. Where do I start? What should I know before? Are any coding skills required?
Best regards,
Axel Kollmenter
Axel Kollmenter
Tagged:
0
Best Answer
-
EvanReese Member, Mentor Posts: 2,186 ✭✭✭✭✭I intend to make some tutorials about it eventually which should help. In the meantime here's how I learned:
- read the documentation, and especially make a point in understanding the different types of containers for data (array, map etc)
- go through the tutorials they have there too
- watch everything about it in the Learning Center
- pay for the tutorials on cadjunkie.com https://www.cadjunkie.com/courses/featurescript101. They're a few years old, and I wish there were more, but Adam is a great instructor.
- I made a video about setting variables with FS, which is probably helpful too.
- if you have zero code experience, then watching javascript tutorials or something similar can help with concepts. https://www.freecodecamp.org/ could help
- search your questions on the forum. There are years worth of people asking stuff and there are lots of great answers written up for common questions.
- find features you like and look at their code. I recommend not trying to go straight to the Onshape source code for this, since they have so much more to think about than you do to just make a one-off feature that works okay so it can be overwhelmingly confusing to decipher, but it's a good reference one you find your footing a bit. Find simple features made by simple people (such as myself) to reference . This is especially useful if you see someone doing something you want to emulate, like an arrow manipulator, or a certain kind of UI etc.
- get used to the Featurescript notices panel and how to read the error messages. They'll tell you a lot; usually that you didn't give a function the kind of information it was expecting.
- Ask the forums as a last resort when you finally get into it and get stuck, ask very specific questions, and share your document publicly so people can help. If you make an effort to be helped, people will make an effort to help you.
- enjoy it! For me there was no chance I'd have learned what I have if I didn't really enjoy doing it.
Evan Reese9
Answers
Axel Kollmenter