I am trying to make a little hook here. I have the profile and I want the two guide rails to guide it. I basically end up breaking it, or can only get a complete U shape. Any ideas of what I'm doing wrong? It should end up looking like the picture attached.
SolidworksParts And Features
Have a look. Use loft instead.
I got it using this way. Thanks for all your help, Jim! This is so much appreciated!
I don't think you would get this to work with a single sweep since the cross-section shape is vastly different at the end vs. the center. The cross-section of the sweep has to have the same "topology" (same number of lines, arcs, etc. at each section location throughout the entire path). For sweep with guide curves, you can get the size and position of the cross-section to change, but not the topology. Even if you wanted to just change the size/position of each element, you need to do it differently. The profile needs to be constrained to the path and guide curves so as it moves along the path, the constraints are the thing that caused the profile to change shape. You don't have your sketches setup that way.
Whenever doing any modeling, you should look for the simpler shapes or building blocks to make the geometry. In this example, I would suggest two sweeps and an extrusion. I've done it very roughly in the attached file and as shown and described below:
Make the red sweep first and for that I reused most of your original sketch. No constraints or anything needed when sweeping along a single path (without guide curves). I also recommend sticking with simple sketch geometry; no need to convert it to a complex spline as you had done. I then made just a rectangle for the blue sweep and I put it right in the middle of your existing path. This profile can be made more complex to get the appropriate grooves shown in your original geometry and even be made a more complex profile on the side if necessary. It is hard to tell from your picture if it is a rectangle towards the middle or some more complex cross-sectional shape. Then I just made a very simple midplane extrusion to fill in the triangular sections between the two sweeps. I didn't constrain these, but you should. And as I did in my profiles, it is always good modeling practice to have them extend inside the existing geometry to avoid any merging problems on mating surfaces. If you really want to get accurate, then you can go in and add fillets to the sharp edges as appropriate.
I hope this helps,
Jim
I did that at one point, but if you notice, is squishes the round parts to a point. I need it to have a circular profile all around.