Jump to content

Looking for a LISP for XREF to Relative Paths that works in AutoCAD 2015


Cadologist

Recommended Posts

I have an old LISP that worked well to repath any Xrefs contained within a drawing to 'relative' however it no longer works for AutoCAD 2015+.

 

After an hour searching on various forums, can't seem to find a new one.

 

 

Does anyone know of one that works with AutoCAD 2015?

Link to comment
Share on other sites

Maybe it would be easier to fix the one that you have to work with 2015.

Do you know why it no longer works?

What version did it last work in?

Can you post the lisp code?

Link to comment
Share on other sites

Hey thanks for the reply.....

 

I have a couple different LISPs that I have found. The one that worked before is crazy-long (xrp2011.lsp) which when I run it in AutoCAD 2015 pops up a dialog box saying something that it only works from 2005-2011 (although it worked in 2013).

 

The second LISP which I found on the Autodesk Community Forums here today, attachment named (rpath.lsp) also doesn't work.

 

Any help or guidance would be greatly appreciated!!

xrp2011.lsp

rpath.lsp

Link to comment
Share on other sites

AutoCAD added an option in 2014 to change the path to relative via the command line. Now all you need to do is

(command "._xref" "_T" XREFName "_R")

or if you want to do all of them

(command "._xref" "_T" "*" "_R")

Link to comment
Share on other sites

Hey thanks Broncos15, that worked perfectly and even better as I have this as a button on a Tool Palette for our staff to utilize. Much easier to code it in as a command then LISP for similar actions as this. Again very appreciated and thanks for taking the time to reply.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...