[Search tip detail and code files using keywords, tip number, author name, etc ]
    For tip to function correctly, you must ensure that the downloaded file name matches the file name
    displayed in the Rename File To field. Please rename downloaded files when necessary.
Match Xref Properties
Tip# 4289 By Leland Leahy On 13-Apr-2014
Rated By 1 users Downloaded : 286
Categories : DWG
Software type : AutoCAD 2014
Rename File To : xref2.lsp
Make a new xref with the same properties as an existing xref.

Many times when you are working in AutoCAD and attaching an external reference drawing, you will want the new xref to have the same properties as an existing xref, such as insertion point, rotation angle, and scale. To do that with this routine from Leland Leahy, start by loading the LISP file, then run the command XREF2. You will be prompted to select an existing loaded xref and then to select a new DWG file to attach. The DWG file you select will be attached using the same properties as the existing xref. The LISP file is currently set to Overlay mode, but you can easily change this to Attach if desired.


Average Rating:

User comments
Comment by Huh,Chau
Posted on 2015-07-14 13:34:42
Errors out as it is missing the RTD function. I'm assuming this is a radians to degrees function correct?
Comment by Sherry,Stephen
Posted on 2019-03-24 13:21:48
Add these 2 lines below to the bottom of the script ;; Converts Radians to Degrees (defun rtd (r) (* 180.0 (/ r pi)))