Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

lisp to rename paths

27 REPLIES 27
Reply
Message 1 of 28
GavrielKing
743 Views, 27 Replies

lisp to rename paths

Does anyone know of a lisp routine that will automatically open each drawing in a directory and rename any xref paths based on a specified path structure. For example, we have a directory of drawings that have multiple xrefs attached. We have to open each drawing and rename the path from whatever it is, to ..\Backgrd\DrawingName.dwg

I know there is a program called LinxFixer, but the cost is outrageous!

We are constantly getting new drawings from the architect and we have to go through this process every time!

Any suggestions are greatly appreciated.
27 REPLIES 27
Message 2 of 28
Anonymous
in reply to: GavrielKing

Look under Migrations Tools for programs called Reference Manager. If you
don't have it, you can download it for free from Autodesk. See if this will
work for you.
Message 3 of 28
dmfrazier
in reply to: GavrielKing

Have you tried Reference Manager?
Message 4 of 28
GavrielKing
in reply to: GavrielKing

Thank you. I just searched for it on autodesk's website, but I could not find it.
Message 5 of 28
GavrielKing
in reply to: GavrielKing

Thank you, but I don't have it, and I can't find it.
Message 6 of 28
GavrielKing
in reply to: GavrielKing

Ok, I found it in C:\Program Files\AutoCAD 2010\AdRefMan.exe

However, it saves the drawings in the current version of AutoCAD (which our current version is 2010). But we need it to save it base on our options, which we have set to save in 2004.
Message 7 of 28
GavrielKing
in reply to: GavrielKing

Ok, I found it in C:\Program Files\AutoCAD 2010\AdRefMan.exe

However, it saves the drawings in the current version of AutoCAD (which our current version is 2010). But we need it to save it base on our options, which we have set to save in 2004.
Message 8 of 28
dmfrazier
in reply to: GavrielKing

Reference Manager is not found within the application. Click Start, Programs, Autodesk, AutoCAD 2010 (or your version), Reference Manager.
I am using AutoCAD Mechanical 2007 and 2010. As I recall, Reference Manager is one of the options you can select during installation. If you don't see it, it must not have been selected when AutoCAD was installed. You can add it via Add/Remove programs.
Message 9 of 28
dmfrazier
in reply to: GavrielKing

After using Reference Manager, I suppose you could then use DwgTrueView's DwgConvert to save the files back to 2004 format.
Message 10 of 28
GavrielKing
in reply to: GavrielKing

Oh yeah. That will work. I was hoping for a more automated (one-step) type procedure. But at least this is better than opening each drawing and re-pathing them. Thanks again.
Message 11 of 28
GavrielKing
in reply to: GavrielKing

Do you know if there is anything similar for re-path images?
Message 12 of 28
GavrielKing
in reply to: GavrielKing

Do you know if there is anything similar for re-path images?
Message 13 of 28
Anonymous
in reply to: GavrielKing

Hi, please come back latter. I will provide you some tools to repath xrefs
and images in one step.

--
Humans are born with a wide horizon.
As time goes by, the horizon narrows and
narrows, until it becomes a point of view.


a écrit dans le message de news:
6257636@discussion.autodesk.com...
Does anyone know of a lisp routine that will automatically open each drawing
in a directory and rename any xref paths based on a specified path
structure. For example, we have a directory of drawings that have multiple
xrefs attached. We have to open each drawing and rename the path from
whatever it is, to ..\Backgrd\DrawingName.dwg

I know there is a program called LinxFixer, but the cost is outrageous!

We are constantly getting new drawings from the architect and we have to go
through this process every time!

Any suggestions are greatly appreciated.
Message 14 of 28
Anonymous
in reply to: GavrielKing

You should be able to do images also with the same tool.
Message 15 of 28
GavrielKing
in reply to: GavrielKing

Yep! Cool!! Thank you!!!
Message 16 of 28
Anonymous
in reply to: GavrielKing

Not ready yet, but not forgotten. Check the thread again please.

--
Humans are born with a wide horizon.
As time goes by, the horizon narrows and
narrows, until it becomes a point of view.


"Some Buddy" a écrit dans le message de news:
6257771@discussion.autodesk.com...
Hi, please come back latter. I will provide you some tools to repath xrefs
and images in one step.

--
Humans are born with a wide horizon.
As time goes by, the horizon narrows and
narrows, until it becomes a point of view.


a écrit dans le message de news:
6257636@discussion.autodesk.com...
Does anyone know of a lisp routine that will automatically open each drawing
in a directory and rename any xref paths based on a specified path
structure. For example, we have a directory of drawings that have multiple
xrefs attached. We have to open each drawing and rename the path from
whatever it is, to ..\Backgrd\DrawingName.dwg

I know there is a program called LinxFixer, but the cost is outrageous!

We are constantly getting new drawings from the architect and we have to go
through this process every time!

Any suggestions are greatly appreciated.
Message 17 of 28
Anonymous
in reply to: GavrielKing

Take a look of:

;; RelativeXrefs by Joe Burke
;; Version 1.5 - revised 2/22/2008.


--
Marc'Antonio Alessi
(vl-string-translate "1234567890" "ie@mst.lan" "499825513610716")
http://xoomer.alice.it/alessi
> 2D Parametric for 2000-2010 <
(strcat "I like " (substr (ver) 8 4) "!")
GPS: N45° 50' 16" E12° 22' 44"
--

"Some Buddy" ha scritto nel messaggio news:6258016@discussion.autodesk.com...
Not ready yet, but not forgotten. Check the thread again please.

--
Humans are born with a wide horizon.
As time goes by, the horizon narrows and
narrows, until it becomes a point of view.
Message 18 of 28
GavrielKing
in reply to: GavrielKing

Thank you. However, I searched the Autodesk forum for "RelativeXrefs by Joe Burke" and I did not find anything. Where do I search for this?
Message 19 of 28
GavrielKing
in reply to: GavrielKing

Thank you, I will be patiently waiting. :O)
Message 20 of 28
Anonymous
in reply to: GavrielKing

Hi,

Unfortunately I have to give up on this one. I put together some code to
change the paths in one step using the DBX interface. Actually it works, but
then I hit the same wall, i.e. I can't make it to save in an previous (2004)
file format because here, on my machine, with AutoCAD 2008, the DBX
interface doesn't accept the AcSaveAsType enumerator and if I attempt to use
it, I get the following error message:

Command: (REPATH_XREFS_MAIN)
; error: Exception occurred: 0xC0000005 (Access Violation)
; warning: unwind skipped on unknown exception

If anybody else knows why and what, please share.


--
Humans are born with a wide horizon.
As time goes by, the horizon narrows and
narrows, until it becomes a point of view.


"Some Buddy" a écrit dans le message de news:
6257771@discussion.autodesk.com...
Hi, please come back latter. I will provide you some tools to repath xrefs
and images in one step.

--
Humans are born with a wide horizon.
As time goes by, the horizon narrows and
narrows, until it becomes a point of view.


a écrit dans le message de news:
6257636@discussion.autodesk.com...
Does anyone know of a lisp routine that will automatically open each drawing
in a directory and rename any xref paths based on a specified path
structure. For example, we have a directory of drawings that have multiple
xrefs attached. We have to open each drawing and rename the path from
whatever it is, to ..\Backgrd\DrawingName.dwg

I know there is a program called LinxFixer, but the cost is outrageous!

We are constantly getting new drawings from the architect and we have to go
through this process every time!

Any suggestions are greatly appreciated.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Forma Design Contest


AutoCAD Beta