Display full version of the post: set default Xref layer upon attaching

germanbarry
15.07.2011, 18:10
hi all
i want to be able to set my autocad up so that whenever i attach an xref, it gets brought in on layer Zero instead of being brought in on whatever the current layer is.
I often work in defpoints layer and when i attach an xref to get a quick schematic plot of something, i can't see the xref cos it was brought in on defpoints/current layer!
 
can this be mastered with a lisp which gets added to my startup suite?

John Connor
15.07.2011, 19:03
You should rarely work in the Defpoints layer if at all.


germanbarry
15.07.2011, 19:05
ok then let me rework the question to see if i can get an answer
 
i'm drawing in a layer called WALL, since I'm drawing lots of walls...
i want to bring in an xref, but have it automatically set to layer zero rather than WALL, because i may in the future wish to freeze the WALL layer but not the xref with it
 
 
can it be done?

John Connor
15.07.2011, 21:39
Why couldn't you use a macro that first sets the layer to "0" before the xref command is invoked?


germanbarry
16.07.2011, 10:07
THAT's the answer i was after!
thanks
sorry - I'm new to CAD Macros and keep forgetting how powerful it is.
 
 
I also incorporated changing the UCS coordinates to World (from Vertical) into the same macro - works great!

John Connor
16.07.2011, 13:07
It was a lucky guess on my part.  Glad to hear you got it worked out.