working with attach references or xrefs and more specifically insert
them with their appropriate layer wasn't possible in AutoCAD, till today!
in this lesson, we are going to learn how to set default layer for any attached reference in AutoCAD
...
be aware, this is an advanced AutoCAD tutorial. if you are totally new to this
video topic I suggest you to check one of my partner's videos below on the
video description, and then come back. alright to start our brand new command
let's first explain why do we need these tool. as you might know it is not possible
to change the default layer that xrefs come into. if we load an xref, it will
drop it into whatever my current layer is at that time. this is why we need this
custom tool. to create our AutoCAD custom command, let's type cui and enter. this
will bring us to the customizable user interface of AutoCAD. to create a brand
new command in AutoCAD, we can duplicate any of the existing commands, rename it,
and change its macro. alternatively, we can hit the start icon to create a new command
and again, we can rename it and change its macro. so let's create our
custom command
...
so let's explain this macro. first we'll use CC to get out of any active command
then we'll use the command line version of the command layer. we'll set that to
the layer that you like, in this case, I put all of my xrefs on layer 0. finally
we'll use the xattach command
now, to use our custom command and have it always available, we can either add it
to our AutoCAD ribbon
to our AutoCAD quick access panel or to our AutoCAD tool palette. so let's add it
...
in order to test my new tool, I'll change my current layer and then I'll attach my
xref. as you can see my xref is in my layer 0, just how I want it
the nice thing is, from now on, AutoCAD will make sure all of your xrefs are
inserted in the correct layer, not you anymore!
hey, did you find this tutorial helpful? let me know in the comments so I know
I'm heading in the right direction. I upload videos every Tuesday, so don't
forget to like the video, subscribe, and turn the notification bell on. I'm the
Lazy Arquitecto, see you in the next tutorial!