Print Page | Close Window

set default Xref layer upon attaching

Printed From: CAD Forum
Category: EN
Forum Name: CAD - general
Forum Description: General discussion about CAD, formats, standards, management, licensing, networking, harware, other CAD applications
URL: https://www.cadforum.cz/forum_en/forum_posts.asp?TID=6270
Printed Date: 07.Jun.2026 at 01:26


Topic: set default Xref layer upon attaching
Posted By: germanbarry
Subject: set default Xref layer upon attaching
Date Posted: 15.Jul.2011 at 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?




Replies:
Posted By: John Connor
Date Posted: 15.Jul.2011 at 19:03
You should rarely work in the Defpoints layer if at all.

-------------
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."

<<AutoCAD 2015>>



Posted By: germanbarry
Date Posted: 15.Jul.2011 at 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?


Posted By: John Connor
Date Posted: 15.Jul.2011 at 21:39
Why couldn't you use a macro that first sets the layer to "0" before the xref command is invoked?

-------------
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."

<<AutoCAD 2015>>



Posted By: germanbarry
Date Posted: 16.Jul.2011 at 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!


Posted By: John Connor
Date Posted: 16.Jul.2011 at 13:07
It was a lucky guess on my part.  Glad to hear you got it worked out.

-------------
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."

<<AutoCAD 2015>>




Print Page | Close Window