identify the layer in XREF2 used to reference XREF2.1

identify the layer in XREF2 used to reference XREF2.1

sunlight1
Enthusiast Enthusiast
226 Views
3 Replies
Message 1 of 4

identify the layer in XREF2 used to reference XREF2.1

sunlight1
Enthusiast
Enthusiast

i didnt know how to explain that in the title, 
i have an xref tree. 

main drawing 
           xref1 

           xref2

               L     xref2.1

The main drawing references XREF1 and XREF2.
XREF2 further references XREF2.1.

I'm working in the main drawing
and need a Lisp routine
to identify the layer in XREF2 used to reference XREF2.1

I have a Lisp that can freeze and unfreeze layers by name.


The issue is that while I can unfreeze layers in XREF2.1,
if the layer in XREF2 that references XREF2.1 is frozen,
I cannot see the unfrozen layers in XREF2.1 within the main drawing.

So, I need a Lisp routine to unfreeze the specific layer in XREF2 so I can see XREF2.1.
This unfreezing should happen in the main file.

i hope i explained well... 

0 Likes
227 Views
3 Replies
Replies (3)
Message 2 of 4

Moshe-A
Mentor
Mentor

@sunlight1  hi,

 

first of all, to get some properties of a nest object use XLIST command

 

I have a Lisp that can freeze and unfreeze layers by name.


The issue is that while I can unfreeze layers in XREF2.1,
if the layer in XREF2 that references XREF2.1 is frozen,
I cannot see the unfrozen layers in XREF2.1 within the main drawing.

So, I need a Lisp routine to unfreeze the specific layer in XREF2 so I can see XREF2.1.
This unfreezing should happen in the main file.

i hope i explained well... 


that's how AutoCAD works with blocks, if you freeze a layer contain a block (and for this matter an xref is a block) then all the blocks turn off even if all of it's content is on other layers.

 

Moshe

 

0 Likes
Message 3 of 4

pendean
Community Legend
Community Legend

@sunlight1 wrote:

...The issue is that while I can unfreeze layers in XREF2.1,

if the layer in XREF2 that references XREF2.1 is frozen,
I cannot see the unfrozen layers in XREF2.1 within the main drawing.


You can't LISP your way out of how the program behaves when a layer is frozen, sorry.

It would appear your XREF2.1 needs to actually be XREF3 instead, so you are not fighting how the program handles layers. Nested XREFs are limitations you cannot work around. Sorry.

0 Likes
Message 4 of 4

Sea-Haven
Mentor
Mentor

As a xref is say a closed dwg you may be able to use OBDX to change the layers in that dwg then refresh the xref's. Not sure how you would find name of Xref2.1 in current dwg.

 

Again a maybe.

0 Likes