The LISP code sets Visretain to 0, reloads the xref, then sets Visretain back to 1.
If you wish to use a contextual field in a block (such as title block), do not insert the field as a text, but insert is a as a block - attributes are updated.In Auto CAD, the XREF isn’t copied into your drawing, it’s just linked to it.Although you’re placing a copy of the imported file into Sketch Up, you have the ability to update it.However, sometimes it’s not easily because there could be many files and folders. It will work for files with relative and absolute path.Or they may be on a location that you can recreate. And this trick will not change the original path definition.You probably already familiar with this warning: It means that Auto CAD can’t find the reference files, because the file location on your computer is not the same with the sender’s computer.If you open the file references palette, you will see warning that the files are not found. If your project has several folders, then add them all.This routine from Benzigar Peter allows you to reload an xref while restoring the original layer properties, and not have to worry about the Visretain settings.After you load the LISP file, run the command Xrecol and select the xref.It’s also helpful for managing a large number of scenes in a project.If you’re familiar with Auto CAD, you might know that you can link multiple drawings together using an XREF.