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 I have multiple feature studios in one Onshape file?
andre_kvaternik
Member Posts: 5 ✭
I have a couple of Featurescript features and want to be able to add them to my toolbar. Rather than creating multiple files, I tried creating multiple feature studios in an Onshape model, each with a separate feature. My thinking is that I could organize all my featurescripts in one place, and version them from there.
When I do this, I can only reference one of the features when I go to add it to my menu bar. Will this multiple FS/features thing work or does each feature need to have its own Onshape file with just one feature studio in it?
2nd question - I moved one of the feature studios to a new file, saved it and versioned it, but when I select it while trying to add the feature to my menu bar in a new model, the dialog box shows 'no features available' and its greyed out. What's going on there?
Comments
This does work and is working for me in a test. Have you versioned since you added them and are you adding them from that version?
The Onsherpa | Reach peak Onshape productivity
www.theonsherpa.com
Hello Evan - thanks for the response. I figured out that the 2nd featurescript I had in the same file was for a custom table and it didn't show up when I when to add a feature from a part studio - but it did when I was in a drawing and clicked on 'custom table' .
A second question for you - is there a way to use external javascript libraries in Featurescript by importing them somehow?
Not that I'm aware of, unless importing JSON helps, but for certain things you might be able to get ChatGPT to create the featurescript version of functions you're used to.
The Onsherpa | Reach peak Onshape productivity
www.theonsherpa.com
Copilot just did an excellent job porting over a kerf bending project from Python to Featurescript for me. It did stick annoyingly close to the original project scope and dependencies though and started to look for dxf export utilities that don't exist in Featurescript that are just native parts of the rest of the Onshape engine though and I needed to tell it to slow its roll and not waste my credits on things that there are already solutions for.
But I've also got a unique repo set up with mirrors of the entire standard library and about 200 custom features' worth of information at its' disposal on my Github that Copilot can use to not write garbage. Vanilla ChatGPT has always struggled with basic syntax and hallucinating very useful functions that don't exist.
Derek Van Allen | Engineering Consultant | Meddler