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.
Constraining a spline?
øyvind_kaurstad
Member Posts: 234 ✭✭✭
I recently tried creating a model where I imported an image of the model to trace over. The imported image was not centered over the origin (I sketched it on the top view). I traced the outline of the model (to later extrude), and for some parts I used splines.
Then I realized I wanted to align a specific feature in the sketch to the origin, but I just could not find a way. I added a single point to the model, and then tried to add a coincident constraint between this point and the origin. That would move most of my modeled features as intended, but not the splines, just the end points of the splines.
The whole thing was just a mess, so at some point I just gave up, and re-modeled using arcs instead of splines, and in the end I got where I wanted.
Is it necessary to constrain each and every point of a spline to something else to prevent this from happening?
Then I realized I wanted to align a specific feature in the sketch to the origin, but I just could not find a way. I added a single point to the model, and then tried to add a coincident constraint between this point and the origin. That would move most of my modeled features as intended, but not the splines, just the end points of the splines.
The whole thing was just a mess, so at some point I just gave up, and re-modeled using arcs instead of splines, and in the end I got where I wanted.
Is it necessary to constrain each and every point of a spline to something else to prevent this from happening?
0
Best Answer
-
joris_kofman Member Posts: 59 ✭✭Each control point of a spline has the same degrees of freedom as a normal point would have. So if you want to move the whole thing you will have to establish relations between the geometry that tells the sketch how to move the points.
Else you should be able to use the pattern feature to create a copy of the sketch entries in the desired location.5
Answers
Else you should be able to use the pattern feature to create a copy of the sketch entries in the desired location.
The need to explicitly constrain each and every spline control point greatly reduces the use of this line type, I think. The beauty of a spline is to easily draw more complex shapes, but typically you want the spline to act as a single unit afterwards, only constrained by the endpoints.
But what I think we do need is a tool that allows us to trace edges of images that are imported, and then constrain the points on the image.
This would allow one to import images that are not perfectly aligned and that have some arbitrary scaling factor. Then after tracing the lines that are needed one should be able to constrain everything to the image (even corners of other images) and input a single measured dimension (maybe one in each direction) and use a couple of aligning constraints to get everything square and neat with respect to the origin.
That would indeed be fantastic, particularly if kept really simple. (NOT like blocks in Solidworks: way too ambitious and arcane)
A sketch might automatically allocate numbers to each group, so that when you audit the constraints, you know which group a particular entity belongs to.
Group would be a much better name for the feature than constrain in place, but key is the ability to scale the whole group as one.
Ability to scale a group would indeed be very handy on occasions. And of course rotate and flip (not least, for nesting parts onto a sheet)