Unable to detach xref.

Unable to detach xref.

JeffLMoran
Advocate Advocate
26,795 Views
11 Replies
Message 1 of 12

Unable to detach xref.

JeffLMoran
Advocate
Advocate

Why do I get the message "Unable to detach xref. Multiple references detected" instead of just detaching the xref files? I know there are multiple references. I want them all removed! Just detach all!

 

 

 

0 Likes
Accepted solutions (2)
26,796 Views
11 Replies
Replies (11)
Message 2 of 12

imadHabash
Mentor
Mentor

Hi,

 

>> I want them all removed! Just detach all! <<

i suggest to try from command line . also Purging your drawing will prevent any similar problems.

 

-XREF 

D

*

 

Command: -XREF
Enter an option [?/Bind/Detach/Path/pathType/Unload/Reload/Overlay/Attach] <Attach>: d

Enter xref name(s) to detach: *

 

 

Imad Habash

EESignature

0 Likes
Message 3 of 12

JeffLMoran
Advocate
Advocate

Thanks for your response, imadHabash, but that didn't work.

 

I have a file with a title block attached to multiple sheet layouts. Unless I go into each layout and delete the reference or just erase all sheet layout that have the title block ref, I can not detach. I'm wondering if there is a way to just detach without having to do that.

 

I KNOW I want them ALL removed!!!! Just detach them. It's frustrating!

 

Thanks Again

Jeff

0 Likes
Message 4 of 12

cadffm
Consultant
Consultant
Accepted solution

Thats not possible, Acad can detach a XRef only if all references are unnested in Modelspace  (external references = objects which are display the Xref).

[editSTART]or without any references[editEND]

You have references in Layout(s) or nested in Blocks. Clear that situation and you can detach the Xref.

 

 

 

Sebastian

0 Likes
Message 5 of 12

imadHabash
Mentor
Mentor

you know what ... some times i stuck in what you're suffering from , to discover later on that when i close the file and reopen it again all xrefs are gone !!!

would you try it ?

Imad Habash

EESignature

0 Likes
Message 6 of 12

rkmcswain
Mentor
Mentor
Good question. Never made sense.

Just do it!
R.K. McSwain     | CADpanacea | on twitter
Message 7 of 12

-FDC-
Advisor
Advisor

Nested xrefs! Set them to overlay in your Original file or detach the main xref.

 

Go to tree view:

 

And delete the main xref.

 

 TreeView.JPG

 

0 Likes
Message 8 of 12

cadffm
Consultant
Consultant
Accepted solution

@-FDC- Thats possible, but JeffLMoran wrote -> "I have a file with a title block attached to multiple sheet layouts."

CADffm - "Acad can detach a XRef only if all references are unnested in Modelspace  or without any references"

So @JeffLMoran have to clear the situation by delete als paperspace references of that XRef,
but Acad have no command to do that in one step, he want(need) a custom-command like that (too) simple example:

(defun c:DelTopLevelBlockReferencesOf (/ ss) ; without Layermanagment
  (if (setq ss (ssget "_:S" '((0 . "INSERT"))))
      (foreach i (ssnamex (ssget "_X" (list'(0 . "INSERT")(assoc 2 (entget(ssname ss 0))))))
    (if (vl-catch-all-error-p(vl-catch-all-apply 'vla-delete (list(vlax-ename->vla-object (cadr i)))))
      (princ (strcat "\nCannot delete Objects on locked Layers (Layout: " (cdr(assoc 410 (entget (cadr i))))")"))
    )
      )
  )
 (princ)
)

Sebastian

Message 9 of 12

JeffLMoran
Advocate
Advocate

CADffm, Thank you!!

 

I think the lisp is just what I needed. I need to study it a bit, but it worked on the particular file I was working on.

0 Likes
Message 10 of 12

cadffm
Consultant
Consultant

But be careful, it works with all non-nested block references on unlocked layers (including frozen layers), not just for externally-dependent ones.

Sebastian

Message 11 of 12

spb_co_il
Explorer
Explorer

Just happened to me - turns out it WAS a nested Xref - BUT!  it was somehow nested INSIDE A BLOCK 😮

someone must have accidently selected the Xref with other objects while turning them into a block, and it remained that way.  its a first for me. 

Message 12 of 12

Goody1977
Participant
Participant

If it is the Title blocks that are not detaching. Delete them out of paperspace. 

 

0 Likes