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: copy design using api
Yeah, this one works for me:
https://cad.onshape.com/glassworks/explorer/#/Document/copyWorkspace
Re: New Feature: Better Than Boolean
@Caden_Armstrong that's a pretty slick implementation. I could use that to draw sketch lines from the offset blue centroids back to their original location to make it clearer that that's where they're supposed to be.
OR I could waste precious rendering cycles drawing sacred geometry around the workspace in my Miter Warlock script to stay on theme.
Re: Troubleshooting procedure for fillet failure (and any other failed feature, for that matter)
I have a experienced some issues recently with mirrored geometry not behaving the same as the "original" side, specifically when working with fillets (and drafts). My guess would be that the software uses the "context" provided by the feature creation before the fillet to figure out how to apply the fillet but that gets lost on the "mirrored" side, or something along these lines but you would think the mirrored geometry would work the same!
A couple tricks for troubleshooting fillets:
- The first step is to try a smaller fillet radius to see what happens, sometimes the value at which it fails will match another fillet or feature size that can provide a hint on what's going on. Depending on the issue (and the design intent), a variable fillet can help with these cases
- Temporarily turn off "tangent propagation" and investigating what happens around the trouble area and when manually selecting things can also provide insight
- You can also play with the "edges to keep" under the "allow edge overflow" box (although probably not relevant in this case)
Re: Export/import of Featurescript for a Part Studio?
A simple example is renaming. You can change the name of a variable with a text editor that supports multifile search and replace (with Emacs as an early example). This is not a single-step operation, as local and member variables may use the same names (in effect, false positives).
You can avoid the problem somewhat with naming conventions. I am starting to drift toward using a version of Hungarian notion for my CAD parameters.
You can do most any sort of transformation in a smart text editor, especially with well-chosen naming, though the process may be rather manual. Learned that lesson a *long* time ago.
https://bannister.us/weblog/2005/structure-editors-ides-and-another-lisp-flashback
Yes, clearly if I had chosen good names for my parameters up front, I would not be looking to rename my parameters later. This is much like the experience with top-down versus iterative (agile) design in software.
Interesting ... I discovered the Featurescript view is live. If I select items in the "Features" view, then the corresponding text is highlighted in the script view (very cool). As a hack, I created a variable with the desired name, updated the existing variable to reference the new name, then suppressed the variable (in hopes of discovering where it was used, for manual fix-up).
First, the interface showed the "wait" cursor for rather a long time. As a non-paying user, I feel a bit guilty if I am slamming one of the Onshape servers.
Second, what failed was one of the sketches, which in my case was ~700 lines of Featurescript code. As the "Features" tree is a single level, in practical terms this is far too crude for figuring out what items in the sketch needs fixing.
Which means doing renaming in a text editor is still a better idea.
Note that this mapping between empirical language and visual representation is an old topic in programming environments. In roughly historic order, Visual Basic, Visual Cafe, Visual Studio, NetBeans, and (sometimes) Eclipse all had/have support.
As to whether there is need for this level of support in the CAD world, I have no clue.
Re: best way for loft sections between two changing size faces in different parts
it's hard to tell from your image but is this spherical or cylindrical? or neither? if possible can you share a link to what you have so far?
MDesign
Re: Thickness analysis.
if you're on the standard plan, sadly this is not available. :-( (i.m.h.o. it should be, this is standard CAD analsysis stuff). In that case there's a custom feature by @MichaelPascoe :
Re: Using partQuery in FeatureScript to retrieve parts
I recommend the first approch. Here's a public document that shows how the feature can work: https://cad.onshape.com/documents/0f85058bb5f40b8535a4f8de/w/7daa1dc09bec441651d39f8d/e/0637ea3ac59e4d5f24be41b1
To answer your question, on the FS side, the query is just a query. For work with the API, Onshape exposes the query as a partId.






