Xref found eventhough relative path is pointing to no file.

Xref found eventhough relative path is pointing to no file.

Shneuph
Collaborator Collaborator
476 Views
4 Replies
Message 1 of 5

Xref found eventhough relative path is pointing to no file.

Shneuph
Collaborator
Collaborator

I would expect that if you save an open file to a new location, and the relative path of an xref to the newly saved file location does not exist, that AutoCAD would simply not load the xref or say, "Xref not found."  Something like that.  However, I have just saved a file to a new location and AutoCAD still loads the Xref from a location in no way linked to the host file (From what I can tell).  Can someone explain why/how this would happen?

Thanks,

 

---sig---------------------------------------
'(83 104 110 101 117 112 104 64 71 109 97 105 108 46 99 111 109)
0 Likes
477 Views
4 Replies
Replies (4)
Message 2 of 5

brettgatti
Collaborator
Collaborator

Is the path where it was found in your Project Files Search Path or somewhere else in your Support Path?  Or, is it in the same folder that the file that it is Xref'd into resides?

0 Likes
Message 3 of 5

ArchD
Collaborator
Collaborator

If your AutoCAD version is 2018 or newer, try setting REFPATHTYPE to 2.

Archie Dodge
Applications Expert - Infrastructure Solutions Division
IMAGINiT Technologies
0 Likes
Message 4 of 5

Shneuph
Collaborator
Collaborator

Aha!  yes it is.

 

To me, it is odd behavior that the xref would be loaded from a support folder.  The saved path is relative to the host drawing and non-existent. Instead of showing the xref as not found OR changing the saved path, AutoCAD just loads the first one it finds from the support folders?

 

Seems like AutoCAD is trying to protect me from myself and in turn not allowing me to do what I really want.  I don't want to save a file to a new folder and have the titleblock RANDOMLY linked to a file somewhere in my support path.  Now if I refedit the titleblock I could be changing something in my support folder that I didn't intend.

Support Path.png

Do you know of a setting that forces AutoCAD to use the saved path?  Even if the folder or file does not exist?

---sig---------------------------------------
'(83 104 110 101 117 112 104 64 71 109 97 105 108 46 99 111 109)
0 Likes
Message 5 of 5

cadffm
Consultant
Consultant

No,

For Xrefs and Block,Acad search for it first in given  supportpathes, current path and active folder.

.

 

 

Sebastian

0 Likes