Templates with Relative Path XREF failure and solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have multiple building specific templates (.dwt) which pull in an xref title block, as well as the multiple floors of the building along with address data and a few other nice to haves.
Recently moved to a new machine, and went to ACAD 2020 while I was at it(I usually wait until SP2). Most of my templates broke. If it had been all of them I might have addressed it sooner. Regardless, I have spent hours here on the forums, as well as between my two machines (ACAD 2019 on the old) trying to find a setting that is different. I found a number of references in the forums to relative paths not working with templates. Surprised me, as it worked great before.
So, I found a solution, but I don't entirely understand why it works. In searching all XREF related system variables I finally came to XLOADCTL. Stock value is supposed to be 2, but was set to 0 on the new machine with 2020, and was 2 on the old machine. Correcting that fixed my issues. Here is what AutoDesk says about it:
| Type: | Integer |
| Saved in: | Registry |
| Initial value: | 2 |
0 | Turns off demand-loading; the entire drawing is loaded. |
1 | Turns on demand-loading. Referenced drawings are kept open and locked. |
2 | Turns on demand-loading. Copies of referenced drawings are opened and locked; referenced drawings are not locked |
When XLOADCTL is set to 2, a copy of each referenced drawing file is stored in the folder specified by the XLOADPATH system variable or the temporary files folder (set in the Options dialog box).
Additionally, xrefs load faster when you work across a network: the performance enhancement is most pronounced when you open drawings with many xrefs.
So, problem is solved, but I'm curious. Why would saving a copy of the XREF to the temp folder solve this problem? Why can't it load from the network? (I imagine to reduce lag?) Is ACAD modifying the path to the temp folder but not showing it in the dialog box? I am completely dependent on XREF for everything, with all my work on a network, so I'm very keen on understanding what ACAD is doing behind the scenes. Anyone have anything to add?
Thanks
