Join Shaun Bryant for an in-depth discussion in this video Priority for coordinate data entry, part of AutoCAD: Using the Command Line.
- In this last video of the function keys and option section of the Using the Command Line in AutoCAD course, we're going to look at how we can set the priority of objects snaps over coordinates, either in the command line, or using dynamic input. Either way this works, and it's a coordinate setting called osnapcoord. We'll look at that in a moment. We're staying in the 08_Function Keys.dwg file. You'll find that in your Lynda.com exercise files.
In preparation for this, we're going to go down to the command line here, and you'll notice just under the command line that dynamic input is on. Make sure it is on for the first part of this particular video. What I'm also going to do is look at my value for osnapcoord. Just type it in: osnapcoord, like that: osnapcoord. It's the only command spelled like that, so you'll notice that on the suggestion menu. Press Enter, and my value for that is set to zero.
You can have three different values for osnapcoord: which is zero, one, or two. I'd like you to set it to zero first, just to see what happens, and press Enter. That will kick in, and you can see there that the commands with gradually fade away above the command line in AutoCAD 2016. If I now use the line command and type line, for example. I'll click on the command line here and type line and Enter. It's asking for the first point. As I move around, you'll notice the coordinate readout kicks in, like so, both on the dynamic input, and that will be the same for the command line.
However, when I hover over an endpoint, can you see that? The endpoint snap overrides the coordinate readout. I can still type the coordinates in if I want to, but you'll notice it just disappears like so. Now, the reason is disappears is because that osnapcoord variable is set to zero. So if I now set that, if I just hit escape there a couple of times, and now type osnapcoord again, and press Enter again and set it to one this time, like so, that means that the keyboard entry will now override the object snaps.
If I type in the line command again, down here on the command line, press Enter, notice now when I hover, can you see? I still get that prompt to come up but I can override it if I want to. I can now type in whatever I want. If I type in, let's say, 1500, 1500 Can you see that? It overrides the endpoint snap even though it's displaying. It's a little bit of a weird variable, but what it does is it just allows you to have that priority of either object snap or coordinates, either using the command line or the dynamic input.
It's that quick and easy. I must admit, I tend to use my object snaps one hell of a lot in AutoCAD, so I'm just going to hit escape there and type osnapcoord again, like so, and what I'm going to do there is type in zero and set it back to zero, just to make sure that I'm using the variable value that I want when I'm working with AutoCAD. That's how you set the priority for coordinate readout and object snaps using the command line in AutoCAD.
- Entering input with the keyboard and mouse
- Positioning the command line
- Hiding the command line
- Customizing command-line settings
- Typing commands
- Using dynamic input
- Navigating an AutoCAD drawing with the command line
- Using the function keys
- Entering coordinates