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.
Best Of
Re: How to export a part (not partstudio) as a STEP file using Onshape API
If you look at the body for the partstudios translations endpoint, there is a field called: "partIds" which takes in a comma separated list of part IDs.
https://cad.onshape.com/glassworks/explorer/#/PartStudio/createPartStudioTranslation
Re: [Chatbot Copilot] - We Built a FeatureScript AI Assistant That Outperforms ChatGPT
I've just trained gemini ai to write fully working featurscript in only a few days and several deep research dives its now able to do pretty complex things. Errors are an issue, it doesn't make many mistakes if any but it'll forget what its working on and think its working on a earlier project, I have to remind it what were doing then it gets it abd goes from where it left off. First few days it struggled but now it understand how to code so it dosnt product errors it can do a fully tested working script in about 20 minutes, it'll create the whole script then I spend the next 20 min copy and pasting each revised code in to onshape, confirming its working then repet untill its done. I'm seriously surprised how well its working, II'm Just having issues using it in onshsoe because onshapes not showing it as available
Re: How to prevent unintended/undesired constraints
@matthew_stacy Thanks. That makes sense and I'm definitely guilty of overly complex sketches (I only recently discovered the wonders of "use"). Similarly working on the factoring of sketch, parts, and assemblies. That's one of the biggest learning curves I'm still on. Pointers to tutorials or info on how to think about factoring would be most welcomed.
Having said that, it's pretty easy to need a sketch of dozens of lines. I did a quick review of some recent documents and found even a simple pattern of 12 tiles had 48 lines. Other parts had perimeters defined by 60-80 lines. Certainly, they could be broken up but that wouldn't be natural as the part just is that way. I think I just need to be more aware of what constraints onshape is opportunistically adding for me.
I do think there are some potentially helpful debugging opportunities. For example, constraint filters or a "constraint explorer". "Show me constraints by":
- type: show only constraints of a particular type. In my (limited) experience I fall afoul of midpoint and parallel constraints most often. Onshape seems eager to add those, and they are not necessarily what I'm thinking/seeing while drawing.
- absolute vs relative: Show absolute constraints (e.g., horizontal or vertical). When you're trying to dimension an angle, and it just won't go…
- relation degree: This would be harder but for any given sketch element there will be constraints that constraint it (directly) and ones that are more indirect. Imagine a "show me the Nth degree constraints for the selection". Depending on the constraint solver being used, that may be hard for the general case as stated but there may be some specific opportunities. Sort of like how Make transparent has a slider, pick and sketch element and view connectivity not in terms of physical geometry but rather logical constraints.
I'm sure there are others.
Anyway, I quite like onshape and the community is great so thanks for your insight.
Re: Mushroom Pattern
Here's one way with some clever use of some custom features. The dots here are randomly placed and sized. https://cad.onshape.com/documents/e609af2c4c801b238f439322/w/10e2ee167f867ee58c8d7db2/e/5c31b6eca394a3a7a1551f81
Re: [Chatbot Copilot] - We Built a FeatureScript AI Assistant That Outperforms ChatGPT
Tested it out with my generic FS test prompt test for FeatureScript. Failed to respond due to hallucinations. I'll wait to continue testing until the hallucinations are fixed. Those are a deal breaker.
Feedback:
- Hallucinations will keep it from producing usable FS
- Sign up process was a bit painful
- Requires standalone window or tab which means lots of copy / paste and back and forth. Not sure of a good solution for this since Onshape doesn't allow side panel apps for feature studio. You might be able to have your chat as a web extension which could then see your code selections and insert / replace.
Re: How to set a tolerance range for calculations in Part Studio?
In FeatureScript there is a lot of support for "TolerantEquals" of dimensions or geometric objects.
https://cad.onshape.com/FsDoc/library.html#tolerantEquals-number-number

PDF Display in OS
I wish PDFs imported into an OS document would display right in the tab without having to download them. Reason: It works well to keep datasheets, pinouts and the like of supplier parts with the CAD model, so whoever (re-)uses these components or contributes to the design work, is immediately in the know of the details. That's also true for doing live presentations with the CAD model in OS. It doesn't appear overly difficult, since most browsers support displaying PDFs anyway. Is there a reason it is not yet available?
Re: Replacing drawing reference through the API
Yes I have. That should have been obvious. The official api docs give a large list of parameters that mostly are irrelevant.
Is your comment Ai generated?
Re: How to "reapply" a Text Expression with a Linear Transform
Hrmm, shouldn't be needed. Didn't dig, though. @jnewth
