Use scripts to create gears, in this video we'll use a python script and we'll use align. In fusion 360,we want to carry on with our gear reduction housing assembly. We're going to get started by hiding the housing mount and I also want to hide the front cover. From here, we're going to be creating the gears by using something called a script. A script is a program that can be run in fusion 360 that allows us to make use of some advanced functionality to create complex geometry or even perform simple repetition. To do this we're going to move on to the tools menu and look for the add-in section. This will have something called scripts and add-ins, but note there's a shortcut key shift s. Once we select scripts and add-ins, there's a section called sample scripts in the scripts section. Also note there's a tab for add-ins, that has a couple other things in it as well, such as the sample add-in for the spur gear. This can be found in both places for the spur gear script in the script section or in the add-in section. What we're going to be doing is selecting the one that has the blue and yellow icon next to it, which means that this was created using python. The other spur gear script is created using C plus plus. Now the functionality is the same but we're going to be exploring the python version, note that we can create and edit these directly inside a fusion 360. So if you have programming knowledge and you have access to the list of open API functions, you can create your own scripts and add-ins for fusion 360. That's a bit outside of what we're looking at here, so right now we're going to focus on the functionality of just running an existing script. Once you've selected spur gear, let's select run, notice that it pops up a dialog box similar to all of the other tools in fusion 360. We have a graphic at the top that tells us hole diameter, root fillet radius and pitch diameter as well as the module being the pitch diameter over the number of teeth. We can modify some of these values, such as the units in this case metric, the pressure angle, the module, the number of teeth and so on. Remember that we have our spec sheet that's going to determine some of these values. We're going to be using a module of two, for this first gear we're going to create our 48 tooth drive gear. Our backlash value in this case is going to be 0.1 mm, our route fillet value is going to be 0.5. But let's also note that some of these values can use our parameters. So for example, as we start to type in a value, you'll notice that as we go through here, we have our gear module and our gear thickness values. Not all of the values can use those parameters, but some of them can, for our route fillet, we're going to set it to 0.5 mm. Our gear thickness value, we can start to type in gear and select gear thickness. Noting that it is linking to that parameter, and then the hole diameter in the center. We can start to type in gear and then as we go through here, you can see that we have idle gear diameter and we have our drive and driven gear diameters. So in this case we're going to be using our drive gear and notice it's telling us that the center is too large and that's because the drive gear diameter was actually our 96 mm. So in this case let's simply enter the value of 12 mm for that internal hole, and then we'll say, okay. Notice that the new component is created called spur gear 48 teeth, and by default it's created on the top or the XY plane. Also note that there is a sketch in here that's showing the pitch diameter. If we want to modify this, we can expand it and expand the sketches folder and we can hide sketch 3. We're going to worry about moving this into place in just a little bit, but let's carry on creating more gears that we can use. So let's carry on and rerun our spur gear script, noting that it remembered our backlash route fillet gear thickness and hole diameter values. So in this case we simply need to switch the number of teeth, we'll say, okay, and it creates a new gear with 16 teeth. We're going to run this 1 more time, and once again it's going to remember those values. So we just need to make sure that we set it to 10 teeth. Remember that some of these gears will use a different inside diameter, but all of them can be modified later if needed. Now that we have each of these as components, they're free to move about because they have their own coordinate systems. While it's not strictly necessary that we move them around to different positions, I am going to move them around and capture their position. Which will just temporarily get them out of the way. Again this is not necessarily a step that we have to follow, but it does help us in order to visualize things a little bit better. The next thing that I want to do, is I want to hide the back housing, I'm going to use just the front housing to align everything. And to do this, I also want to temporarily lock the front housing in place. So I'm going to right click and ground it, by grounding the front housing. What I'm telling fusion 360, is that the coordinate system associated with this is fixed in space relative to the origin at the top level. From here, I'm going to move back to my solid tool set and I want to begin moving these gears into their correct position. To do this I can use move copy or I can use another tool called align. Align is extremely helpful because it has some additional functionality. First we want to make sure that we are moving components. If we move bodies, they will get to the correct place, but the coordinate system for each of those bodies will remain in its current position. So I want to make sure that we're moving the entire component. For this as I hover over the back face of this gear, there are a lot of different positions that we can select. With align we can actually select just the face or we can hold down the control or command key, which will lock the focus and allow us to select various positions. I'm going to navigate to the center point of this gear and I'm going to left click on that position, so this is where we're moving from. I'm going to rotate my design around and I'm going to hover over the back face of this housing. I'm going to hold down the control or command key, then I'm going to select this position and that's where we're moving to. I want to flip this, because I need to make sure that the gear is on the proper side. Then I'm going to capture its position and say okay, now we want to repeat that process by using our right click marking menu and selecting repeat align. This time I'm going to hover over the smaller gear, go to the center position. Then I'm going to move it again, holding down the control or command key to the center position there and flipping if needed. We'll capture its position and we'll say, okay. Lastly I need to move the idle gear, so once again right click, repeat align and I'm going to select the center position of the shaft. And then again I'll hold down control or command and if we need to we'll flip it to the proper side and we'll select capture position. At this point in time, the gears are overlapping but that's okay because we haven't added any joints, they're still actually free to move about. Once we move them, we want to revert their position, make sure that they are going back to that original location. We're going to deal with getting them into the correct position and rotating them around. But let's go ahead and expand each of these and hide sketch 3, as we don't really need to see that sketch. To point you will notice that we haven't created all of the idler gears. We have an identical idler gear that has 10 teeth on it and then we have one that we need to modify that will be a little bit longer. We're going to deal with those in a future video because those are going to be copied components. And we're going to talk about copy and paste functionality. But at this point, let's navigate back to a home position, let's make sure that we save this before we move on.