cadalyst
Management

Get AutoCAD to Set Your Current Layer for You

14 Sep, 2015

Let’s face it, we are constantly changing our current layer while drawing. What if we could get AutoCAD to change our current layer for us?

Join Lynn Allen as she shows you how you can get AutoCAD to do some of the work for you – saving you some valuable drawing time!

Video Transcript

Hello there, this is Lynn Allen. Thank you for joining me for another AutoCAD tip, courtesy of Cadalyst magazine. I hope everybody is being nice to you this week. I'm going to be nice to you. I'm going to share with you a couple of tips that allow you to very quickly change your current layer, and in some cases, have AutoCAD change it for you.

Let's face it, we spend so much time changing from one current layer to another, and you know how I don't like having to do any extra picks or clicks, right? Let's make your life a little bit easier when it comes to layer.

First off, a few releases ago, AutoCAD added in this great option for hatching so that you can set a default layer for all of your hatching. It just automatically lands on that layer. All you have to do is go into the Hatch command. You have to be using the Ribbon. Hope you are using the Ribbon. There's kind of a top secret option underneath Properties that allows you to simply set it to Hatch Layer Override, so when you do hatching, it places your hatching on that layer. Then when you are all done hatching, it will put your current layer back to what it was before. It's awesome.

I'm going to go ahead and select Hatch, because well that seems like a logical layer to put your hatching on. From that point forward, I don't have to worry about setting my current layer for hatching. Love that, right? So there's one.

If you are in AutoCAD 2016, go to the Annotate tab, and you will see that they also added in an option for dimensions. You will see that there's a dropdown list so that I can set a default layer for my dimensions. Once again, when I do need dimensions, it will set that layer to be current. Then when I'm done, it puts the current layer back to what it was before. Now there is a trick though. There's always a catch, right? You have to use the new Dimensioning tool, which is so awesome, I don't know why you wouldn't. But it only works when you are using the new Dimensioning tool.

I wish I could tell you that there's also great option for text or blocks or whatever the situation is that you happen to be doing. For me, I find the fastest way, since we don't have those types of setups, if I want to make sure my text lands on the right layer, I want to drop the list down (once again, I'm lazy). There is a very cool option that I have talked about before that allows you to set your current layer based on objects. Very, very simple.

I'm going to click the LayMCur tool (I don't know how you say that -- click that tool right there on the screen), and then I'll go ahead and select, in this case, some text. It will make sure, you can see up here, it changed my current layer to that particular layer. Now it leaves it at that layer, so I can automatically put it back when you are done, I'm assuming, adding some more text to your drawing file. That's a super speedy way to also set your current layer.

Hopefully those three tips will come in handy, save you some time, give you some extra time to do more fun things in life like watch football. Hope everything is going well for you, and I'll see you back here in two more weeks. Thank you so much for joining me.


Add comment

Comments

Re: Get AutoCAD to Set Your Current Layer for You
by: Dan Jurado
on:
September 15, 2015 - 9:08am
The easiest way to edit the acad.pgp (pigpen) file is with the ALIASEDIT command. I even made a shortcut for it; AE. I use LC for "Layer Current" Put the PGP file in a drive you can get to from any computer that you use and add the path to the Working Support File Search Path in OPTIONS and you can get to it from anywhere. You should add the path to your TRUSTED LOCATIONS too. - It's not automatic but it's handy!
 
Re: Get AutoCAD to Set Your Current Layer for You
by: Dave__S
on:
September 14, 2015 - 5:39pm
I would say "Layer Make Current - named Lay-M-Cur" (in a likely vain attempt to avoid sounding like I am giving guidance to a randy mongrel). As an old-school command-line CAD user (when possible), I edited my Acad.pgp file so 'SL' launches LayMCur - I used to use a SL.lsp ('Set Layer') to accomplish the same thing. For those who have good typing skills, abbreviations stored in the Acad.pgp file are often the fastest way to commands. Make a backup copy of the stock version before you play with it the first time. Don't know where to find it? Autodesk and Microsoft have conspired to hide it well. First, in Windows Explorer (aka 'My Computer"), go to the View setting and make sure that 'File name extensions' and 'Hidden folders/items' are checked so they are visible (the 'AppData' folder is preset to hidden). See your operating system Help file for details but this is similar for XP/7.x/8.x. Now browse deeply to the formerly concealed folder. This path is a bit different for each release and each version of Autocad and it's verticals. Yes this means you have a separate Acad.pgp file for each version. I personally have not had problems copying a valid file from one Autocad version to another (e.g. 2012 to 2014 or Autocad to C3D) to avoid making the same change in multiple files. For this example, I am using base Autocad 2014, Acad/Map 2014 and Civil3D 2014 for path samples. Autocad 2014: C:\Users\"YourUserName"\AppData\Roaming\Autodesk\AutoCAD 2014\R19.1\enu\Support\Acad.pgp Acad/Map 2014: C:\Users\dseslar\AppData\Roaming\Autodesk\Autodesk AutoCAD Map 3D 2014\R19.1\enu\Support\Acad.pgp Civil3D 2014: C:\Users\dseslar\AppData\Roaming\Autodesk\C3D 2014\enu\Support\Acad.pgp In some of these folders, there are several Acad.___ files so having file extension on makes it easier for me to distinguish the file I want (.pgp). The Acad.pgp file is a simple ASCII text file that can be easily edited in Notepad. Avoid using Wordpad or MS Word - they likely will inject hidden formatting characters that will make the file unusable. The required pattern is fairly evident (e.g. A, *ARC) and the number of spaces between the comma and the asterisk (*) can vary between one and many without issues. You can change existing abbreviations to suit yourself - Autodesk won't know and other users with their own login have their own pgp files. For example, Autodesk decided long ago to use 'C' for Circle and 'CO' for Copy - since I copy far more than I create circles, I changed these to 'CI' for Circle and 'C' for Copy. If you duplicate abbreviations, the last definition created (lowest line in file) will be the one available. These do not need to be in alphabetical order by command or by abbreviation. Save your edits, restart Autocad and your new abbreviations are now available. What? You don't want to restart Autocad to get your new abbreviations? (END OF PART ONE)
 
Cadalyst Video Gallery
Perfect PURGE in AutoCAD 2020 Video
Perfect PURGE in AutoCAD 2020   8 Jul, 2019

The PURGE command in AutoCAD is a great way to keep your drawing files neat and clean. But when it comes to knowing why you can’t purge something, such as a layer, the PURGE command has been sorely lacking! Join AutoCAD tipster Lynn Allen as she shows you the ins and outs of the new updated PURGE...More>>

Try the DWG Compare Tool in AutoCAD 2020 Video
Try the DWG Compare Tool in AutoCAD 2020   24 Jun, 2019

You’ve probably been in this situation: You’re faced with two drawings that look similar, but might not be exactly the same! How can you tell if there are any differences? Join AutoCAD tipster Lynn Allen as she shows you how to get the most out of the updated DWG Compare tool inside AutoCAD...More>>

Measure in AutoCAD Twice, Cut as Many Times as You Like! Video
Measure in AutoCAD Twice, Cut as Many Times as You Like!   10 Jun, 2019

You might have tried the Measure command in AutoCAD before, only to be disappointed in the outcome. You just didn’t know the secret to achieving the desired results! Join AutoCAD video tipster Lynn Allen as she shows you how the powerful Measure command can quickly place a block (or point) at...More>>

Easily Divide an AutoCAD Object up into Equal Segments! Video
Easily Divide an AutoCAD Object up into Equal Segments!   13 May, 2019

Imagine the possibilities! If you’ve ever wanted to evenly space a block on an object — or just divide it up into equal segments — then the Divide command is for you! Join AutoCAD Tipster Lynn Allen as she shows you how easy it is to use Divide to boost your productivity. Plus... she’ll...More>>

Get the Point in AutoCAD! Video
Get the Point in AutoCAD!   22 Apr, 2019

Have you ever wished you could place construction markers in your drawing that display when you want them and then magically disappear when you don’t? Look no further! Points are a top-secret tool that AutoCAD gurus use to display markers in a variety of shapes and sizes. Join AutoCAD Tipster...More>>

Use DWG Compare to Easily Find the Differences Between Drawings Video
Use DWG Compare to Easily Find the Differences Between Drawings    8 Apr, 2019

We’ve all had to try and find the differences between two similar drawings. AutoCAD 2019 introduces the new DWG Compare feature which is simple, clear, and very powerful. Join AutoCAD Tipster Lynn Allen as she shows you the ins and outs of this great tool that will save you editing time and...More>>

Dig Deeper into AutoCAD’s Dimension Tool Video
Dig Deeper into AutoCAD’s Dimension Tool   25 Mar, 2019

Hopefully you are using the powerful new DIM tool in AutoCAD as it saves plenty tedious picks and clicks. Join AutoCAD Tipster Lynn Allen as she digs deeper into this tool and shows you how to manage overlapping dimensions as well as evenly space existing dimensions in a flash!More>>

Save Picks and Clicks with the Automated Power Trim Tool Video
Save Picks and Clicks with the Automated Power Trim Tool    11 Mar, 2019

During our last video, Lynn Allen showed you how to manually run a cool productivity tool called Power Trim to speed up the Trim and Extend commands. This week our AutoCAD expert shows you how to automate it so you can Power Trim with fewer picks and clicks. Be the envy of your office with your...More>>

AutoCAD Tips!

Lynn Allen

In her easy-to-follow, friendly style, long-time Cadalyst contributing editor Lynn Allen guides you through a new feature or time-saving trick in every episode of her popular AutoCAD Video Tips. Subscribe to the free Cadalyst Video Picks newsletter, and we'll notify you every time a new video tip is published. All exclusively from Cadalyst!

Follow Lynn on TwitterFollow Lynn on Twitter




Download Cadalyst Magazine Special Edition