What are sketch relationships and how do you apply them to your design? Learn more in this video.
- In this video, we're going to be talking about sketch relationships. So, the first thing you need to do is start a brand new sketch. I'm going to go over here to sketch, start a sketch and let's go ahead and use the front plane this time. Now, let's go ahead and create a line. Now, I can use the line command, start where I want to drag at the line to and then just kind of place a line and notice this line here, it's just kind of free floating. Grab the end point to move it around. I can grab the line itself and drag that around the screen. Now, if you want to continue making lines, you can click over here back to the line command.
Start from this line, here and notice as I kind of go on a horizontal fashion, notice I get this little heads up display, telling me the length of the line, and saying it's 180 degrees and it's also saying that this line, if I click right now, it's going to place a horizontal relationship. Notice that little yellow box right here? So, click on that, it added that little yellow, now it's green, it was yellow over here. Now, it's green, saying it's added this relationship saying this is now horizontal. So, I can't change that anymore.
I can just move it up and down, but it's always going to be horizontal. If you don't like that it's horizontal, you can click on that little green box, hit delete on your keyboard and get rid of it and now you can just drag it around freely. So, I've added that relationship and then I've removed that relationship. Now, you can also, add the relationships on the fly. If I click on this line right here, notice I get this little heads up display that says, "hey, I can make this thing horizontal "or vertical or I can make it fixed "or I can start adding some dimensions to it." I can switch it from regular geometry to construction geometry. I can add dimensions and so on.
I also, have a bunch of other options, when you start talking about line to line. So, when I hold down control, select this line here, and this line over here, soon as I let go, I get this little in context window that pops up. So, I can say, I want both of these lines to be horizontal or vertical or colinear. How about perpendicular or parallel or equal in length? A bunch of different options. So, let's try this one here, which is called make perpendicular. As soon as I do that, it makes this perpendicular icon show up right here, which is in green and these lines are now perpendicular.
So, I can move them around but they're always going to be perpendicular to each other. If I want to continue on here, I can add a few other lines. How about this line over here? So, starting from this endpoint here, notice I get these little helper lines that are yellow, showing me that if I want to make a line that's perpendicular to the next line, if I go over that line, it'll automatically add that perpendicular relationship for me. Notice it does, right over here. Continue on, you can keep adding those lines and using those helper lines to generate perpendicular relationships. Now, if I want to go off at an angle, or actually, look what happened right there, it's because I go into this endpoint it actually changed my line to being an arc, and sometimes if you go back to that endpoint, go back to the line and then come back out, it'll actually create an arc for you so, you can transition from lines to arcs.
If you don't like that, then hit escape and get back out of it and jump back over to that line command. All right, there's two ways to create lines. One is the click and drag and one is the click-click method. So, if I click and drag it stops that line segment. I'm done with that line segment. But it generally keeps you in the line command. So, over here, if I click and drag, it makes a line and notice my cursor is still the line icon, so, I continue to add lines. If I wanted to, just by clicking and dragging. Now, if I click once, and then just kind of drag my cursor to wherever I want to go, notice all this other information.
I start getting these helper lines saying that this is lined up with that, it's going to be vertical, here it's going to be lined up with other things, it's like, I start moving around my drawing, I'm getting all these little helper lines that are popping up and all these other relationships that could be added if I were to click in that position. That's pretty cool. Once I click, now because I'm using the click-click method that line stays active. So, I can continue to create more and more lines. Pretty straight forward and easy. When you're done creating lines, I'm going to create one more, right here, click and then I'm going to hit escape on my keyboard, which is going to turn that off.
Now, because I do have the ability to drag things around, I can start snapping things together and soon as I snap them together, now, these guys are kind of tied together. Same thing over here, if I want to click on this, I can drag it over to there. I can click on this one, here and drag it over here. I can start creating a shape, just by clicking clicking and dragging and moving things around my screen. If you don't like some of these relationships that have been added, feel free to just click on them and hit delete. I could then move things around, rotate them around and add dimensions. For instance, over here, let's create a line or a dimension from this line, here or this line over here, right now, it's at 90 degrees, let's say, "Hey, it's going to be 120." No problem, everything moves around because we have these perpendicular relationships here.
Those automatically swing around and in place. I can add something like a equal relationship. Click on this line, here, hold down control. Pick that line there, let go of control and then say, "Hey, let's make those guys equal." No problem, they're now equal. Notice, there's this little icon, saying these are equal and if I mouse over it, notice it changes to purple. It's showing me, that if two lines that are involved in that relationship. Notice the six. It's saying, "This is the sixth thing that has been added." so, if you have multiple relationships, you can define where they are, so, let's say this line here, this line here, let's make those equal as well.
Those now have a seven. So, it's saying these seven and seven are the pair. Six and six are the pair. These other ones don't really matter, because they have to be related because they're right next to each other but sometimes you can have equal relationships that are all over your design. You can have hundreds of lines that are all of equal length and that would make sense. So, bunch of our options what you can do here. Now, let's go ahead and just kind of delete all this, so, I'm going to window over all of this stuff, just by holding down my left mouse button and then hit delete, wipes it all out. Easy way to get rid of things.
Now, let's go over here, and choose the corner rectangle. Click once where you want to start, click again where you want to end. Notice, it gives me the dimensions, X and y dimensions, so I can roughly get this the size I want. Click once and notice all a rectangle really is, is just four line segments and it gave these ones on the outside, a vertical relationship and these ones on the top and bottom a horizontal relationship and that's how Solidowrks created that rectangle, for us. It used four relationships and four lines. I could have easily done that, with just the regular line command, but Solidworks makes it a little easier by giving us this rectangle command.
Now, a couple other options for rectangles, as well, if you look at this one over here, called a three point corner rectangle. Click on that, click once where you want to start, place the first line and then drag it out to the side. Notice, I've created a similar rectangle, but Solidworks added different relationships. It said, "Hey, this line here and this line here, "are parallel to each other "and this line, here and this line here, "are perpendicular, as well as these ones over here." What that allows me to do is rotate things around. I can click on this point here and maybe snap it to the origin and then I can rotate this rectangle around that origin, so, a bunch of things you can do with these relationships and I generally recommend if you have the ability to add relationships, do it.
Don't keep adding dimensions and dimensions and dimensions when you don't need to. If things are the same size, make them an equal relationship. Of course, you could say, "Hey, I want to add "dimensions as this line here, is 10 "and this one, over here is also, 10." All right, and that works but instead of doing that, you can just delete this one here and say, this line here, hold down control, that line there, let's make them equal and the cool thing about that, is if you want to change that dimension, 12, they both automatically update because of that equal relationship. So, hopefully, this gives you a pretty good understanding of how relationships work inside of Solidworks.
They're one of the most powerful things and I definitely recommend trying to use relationships as much as you can, versus adding excessive amounts of dimensions. So, definitely keep track of how those relationships are added and if there's any problem, click on the green box, hit delete on your keyboard.
First, see how to how to use the sketch tools to create two-dimensional sketches that become the foundation for 3D objects. Next, look at extruding and revolving 3D features; creating complex objects using the Sweep, Loft, and Surface tools; and modifying parts. Learn how to create uniform holes with the Hole Wizard, and explore more advanced modeling techniques using equations, mirroring, and pattern tools. Then review best practices for putting parts together in assemblies and building robust structures. The course wraps up tips for creating detailed drawings that relate the final parts and assemblies to a manufacturer, complete with an itemized bill of materials and drawing notes.
- Working with templates
- Creating sketches
- Extruding and revolving features
- Applying materials
- Sketching lines, shapes, and polygons
- Trimming, extending, and transforming geometry
- Adding fillets and chamfers
- Working with planes and coordinates
- Creating patterns
- Modeling advanced parts
- Making holes
- Designing with blocks
- Building assemblies
- Mating parts
- Linking sketches
- Using design tables
- Creating part and assembly drawings
- Creating dimensions
- Adding annotations