Hello. In this particular lesson, we're going to discuss custom commands in macros. So before we get started, I'd like for you to open up your version of AutoCAD either LT. Or the full version of AutoCAD, I have opened on my screen, AutoCAD LT 2022. And let's get started. Now, this chapter is designed to show you how you can, further customize commands in AutoCAD. To do this, we are going to use the CUI editor. So, let's go ahead and access that either typing in CUI at the command line, and pressing enter. Or I'm gonna cancel this. Another way to access it is to go over to the manage tab, and this button over here for user interface, CUI and click this. With the CUI editor opened, we can now go down to the command list area, and create a new command. So I'm gonna come over here, and for this button right here, with the star. Let's click it to create our first command. When we do this, this place us in the position to modify the properties of this new command that we're creating. So over here on the right hand side, we can see the command name right now is command 2. It's also shown down here on the bottom, where we just created this command. It's command 1 or something else for you, if you've created additional commands. I'm gonna change this. I'm gonna call it circle D-I-A 2.5. And what we're gonna do is we're gonna create this command that is going to automatically create a circle for us, with an diameter of 2.5 for us. For the description, let's go ahead and say C-R-E-A-T-E-S. Something like that, circle with a diameter of 2.5 the extended help file and the command display name, we're going to leave those blank, they don't have to be filled out. The next portion is the command macro. So this is going to be, it's a set of instructions, for AutoCAD to follow basically, when we issue this command. Now, our command macros are entered in this, text line right here. Which is also known as the macro text box. So once I click in this area here, if I click the three ellipses button, I'm brought up into the macro text box. Which basically gives us a, larger view of the line, that we were typing in. Now for this command that we're creating, I wanted to create a circle. And I wanna specify a point where I want this circle to be created, and then I wanted to choose the diameter option, and I want it to default it to a value of 2.5. So the macro for this, is what I have here on my screen. I'm gonna blow up, and then we're going to discuss a little bit about, what each of these symbols do. So here is a blown up version of the command, that we are creating. Down here at the bottom is what we entered in into the macro line in the CUI editor. Up at the top, are explanations for the different symbols that you see here in this command macro. So, we start off every command with the symbols here. As you see here that represent the escape key. What this does, is this cancels any previous commands that you may have going at the time that you issue this command. So you don't have have to worry about hitting the escape key. And we do it twice, just to make sure you're fully out of any running commands. Next, we have this underscore, which as you can see at the top, it translates the command across all languages. So, circle command in Russian or circle command in Chinese, it will treat it all the same by just putting in this underscore. Without it, it may not translate to other languages. The period that you see here next, basically uses the standard definition of a command. In AutoCAD you may not know this, but you can redefine a command. So you can redefine the circle command to do something it completely different. By putting this period in here, and then putting the command name next, it basically says use the standard definition, not any redefined, definition of the command. After entering the circle command in AutoCAD, we have to press what? The enter key. So to press the in key in the macro, is by using a semicolon. Next the circle command when you're entering it, in the command line, is gonna ask you to specify a point, where you would like to create this circle. So, to pause for user input, is this symbol here. After that, then you're brought up to the options to either use radius or diameter in AutoCAD, we're gonna select diameter by pressing D, and then we put a semicolon for enter to say we're done selecting that option. So as you see here in a second, entering in a macro is just like you would entering in the command options at the command line in AutoCAD. So after are entering in D option for diameter and pressing enter with the semicolon, it's now asking you for a diameter. We type in our diameter of 2.5 and then we press enter to say, we're done with the command. All of this is going to be used to create our new command, which is, circle with the diameter of 2.5. We're gonna say, okay here. And next, we can give our command an image. I just leave it set at both. And we can choose from any of these images, that we see down in here. I'm gonna choose this circle one right here. And this image is gonna be applied to our command. As you can see here, the image is updated. I can edit this image if I want it to, I can export it and do some other things but, we're not gonna do that in this lesson. Now, let's add this command to our quick access toolbar. To do this, we're gonna come up here at the top, under quick access toolbar hit the plus, and let's hit the plus symbol next to a quick access toolbar 1. And I already have the command added up here, but I'm gonna select it on my screen and delete it. And this new one that we just created, I'm gonna drag it, click and drag up to, where I wanted to sit in the quick access toolbar. So I wanted it to sit right after my redo command. I do that, and then I can hit the apply button, and I'm gonna say, okay. And now my quick access toolbar has my button, my new command. When I hover over it, it says circle diameter of 2.5. When I click it, it's asking me to specify a point for the circle. And I click anywhere for that. And that circle is created, at a diameter of 2.5. Thanks for watching this lesson. Join me in the next lesson where we will discuss, creating and running scripts.