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: Logic Driven Feature (New Custom Feature!) 🆕 [Extrude, Revolve, Sweep, and more..!]
Surprisingly compact code for being an amalgam of 10 functions. I can't wait to share this with our team's power user, he loves him some state driven configurations and the way he's making his library of parts is pretty convoluted. This could make his models human readable.
I do have to leave you this typo inspired image, however.
Re: How can I fix a loft twisting?
Re: How can I fix a loft twisting?
I can link it here, and will edit the post so it is linked in the post https://cad.onshape.com/documents/7b5c948934dab1717167f29c/w/8440194c5c881e91e0276d72/e/c5fa51d402d9f497174d247djohn_mcclary said:Can you link your document?
Have you also tried using guide curves?
Re: Constraints are a voodoo magic
It helps to think in terms of degrees of freedom:
- You draw a circle on the origin. That constrains its x and y translation but leaves the radius. Constrain it tangent to a line somewhere. That constrains the radius.
- If you draw a circle in free space instead, then constrain it horizontal to the origin, that constrains the x translation only, leaving y and radius. The set of constraints in your sketch should hopefully be exactly enough that nothing can wiggle around. If something can wiggle around, it'll be blue.
- Line segments are essentially defined by their two endpoints. Draw a line from the origin and drop the other endpoint in free space. One of the endpoints is constrained; you can move the other one around. If you set the line vertical, or one endpoint vertical relative to the other, that leaves just the y degree of freedom for the free point.
A typical workflow might be something like: sketch on the top plane, center rectangle on the origin, dimension its sides, extrude.
Prefer to keep sketches as simple as possible; prefer to use face and part patterns instead of sketch patterns; prefer to rely on the constraint solver rather than a grid. Be aware that, if you put a sketch on a face, you can use the "Disable imprinting" option to avoid imprinting that face into the sketch, which tends to make the sketch easier to work with.
_anton
Re: replicate parts in assembly to sketch?
I made this gif to help me remember. What you select for source geometry for the initial mate matters.
Re: Displacement boundary condition?
Re: Mid-surface Custom FeatureScript
.
I can't think of any that have already been written. Would be a neat feature though.
May take a few extra steps then what you were imagining, but it looks like Derek's feature could work for what your trying to do.
@romeograham Let me know if your need gets serious and you end up needing a developer for it. I can connect you with CADSharp. 😎
.
Re: Mid-surface Custom FeatureScript
I've been working on a curve tweening script this weekend actually, which is a few dimensions away from a mid-surface script. I just got done handling the cases where the CVs match and have been implementing the elevation logic for those mismatched cases. Originally I was just parameterizing by curve length segments but that wasn't very robust at local curvature. The final version is probably going to spit out everything as some kind of splines simply to avoid the massive switch statement mapping every possible input geometry to every other possible input geometry.
I did also write a "find me all face pairs" script the other week as well for a different project that I'm publishing later this week.
Re: Mid-surface Custom FeatureScript
If the two surfaces are parameterized identically (or one can be elevated or re-parameterized to be identical) then creating a new surface with all the CVs being averages of the respective CVs should work. As you say, there are likely a lot of cases which would be odd or challenging. Do you untrim the input surfaces? If they are two planes do you treat them as infinite and create another plane?
Extending this beyond two input surfaces to bodies where the surfaces needed to be paired up would be really tricky.
S1mon
Re: Improvements to Onshape - May 16th, 2025
Wait a minute, I just realized that the new replace face function enables lofted sheet metal by letting me replace lofted spline faces with "extrude" faces. That'll come in handy.







