Primal Scientist Posted May 14, 2008 Share Posted May 14, 2008 Hi all, I have about 25 Xrefs sitting in my Xref Folder which are being used by about 150 different drawings. The person who worked on/created these Xrefs has saved them under certain names that are actually wrong. I need to rename all these Xrefs, but by doing so I am going to have to repath all the drawings. I have tried using the reference manager, but I cannot change the names, either that or I am doing something wrong. Can someone help please? Many thanks in advance! Darren. Quote Link to comment Share on other sites More sharing options...
LCE Posted May 14, 2008 Share Posted May 14, 2008 Rename them, and then use the reference manage to batch repath them. Quote Link to comment Share on other sites More sharing options...
Primal Scientist Posted May 14, 2008 Author Share Posted May 14, 2008 Thanks for the reply. I have tried that but have not had any luck!! Does anyone have a script file for this sort of thing??? Quote Link to comment Share on other sites More sharing options...
AVITWeb Posted May 14, 2008 Share Posted May 14, 2008 Rename them, and then use the reference manage to batch repath them. Problem with that is that once the names are changed, AutoCAD can't find them any more. Unfortunately, you would have to repath them because of the name issue. Quote Link to comment Share on other sites More sharing options...
LCE Posted May 14, 2008 Share Posted May 14, 2008 Exactly why I said to use the reference manager, and not the XREF manager. Quote Link to comment Share on other sites More sharing options...
Primal Scientist Posted May 15, 2008 Author Share Posted May 15, 2008 Yeah I am pulling up my drawings and trying to repath but I cannot get into the file itself to select the Xref!! Quote Link to comment Share on other sites More sharing options...
LCE Posted May 15, 2008 Share Posted May 15, 2008 You are using full version right? Quote Link to comment Share on other sites More sharing options...
Primal Scientist Posted May 15, 2008 Author Share Posted May 15, 2008 Yeah 2008, NOT using the LT version. Quote Link to comment Share on other sites More sharing options...
LCE Posted May 15, 2008 Share Posted May 15, 2008 Fantastic. Give me about 10 minutes or so and I may have a .net app for you to batch rename/repath xrefs. No promises though. Quote Link to comment Share on other sites More sharing options...
Primal Scientist Posted May 15, 2008 Author Share Posted May 15, 2008 you are a STAR! Quote Link to comment Share on other sites More sharing options...
LCE Posted May 15, 2008 Share Posted May 15, 2008 nearly there. just running a few tests. Quote Link to comment Share on other sites More sharing options...
Primal Scientist Posted May 15, 2008 Author Share Posted May 15, 2008 Great Stuff! Quote Link to comment Share on other sites More sharing options...
LCE Posted May 15, 2008 Share Posted May 15, 2008 Sorry. Taking longer than expected, kept getting 1 error, but I think I have it now. Just testing again. Quote Link to comment Share on other sites More sharing options...
Primal Scientist Posted May 15, 2008 Author Share Posted May 15, 2008 Thanks LCE Quote Link to comment Share on other sites More sharing options...
LCE Posted May 15, 2008 Share Posted May 15, 2008 Finally. It is working. What to do. Extact zip file (contains xrep.dll) In autocad type NETLOAD and then browse to xrep.dll At command line type XREP You will see a dialogue box. Click Add Directory and then browse to the directory with the drawings. (This will add all drawings to the list) You can remove drawings from the list by selecting and then click Remove. When you have finalised your list, click Get Xrefs. This will find all of the xrefs in the drawings and add them to the drop-down list. When it has finished, select the xref that you wish to repath in the drop-down and then use the Browse button to locate the file you wish to repath it to. Then click confirm changes. Ran a few test here and all is working fine. I wll tidy it up a bit now that I have it working, but for now, it does what it says on the tin. Please let me know of any problems with it. Cheers Quote Link to comment Share on other sites More sharing options...
Primal Scientist Posted May 15, 2008 Author Share Posted May 15, 2008 Hi LCE!! Okay, almost all worked. Got my drawings okay. Loaded all Xrefs okay. Selected first Xref. Browsed to new Xref. When I hit confirm change this is the error I got: Application does not support just-in-time (JIT) debugging. See the end of this message for details. ************** Exception Text ************** System.MissingMethodException: Method not found: 'Autodesk.AutoCAD.ApplicationServices.DocumentLockMode Autodesk.AutoCAD.ApplicationServices.Document.LockMode(Boolean)'. at Xrep.Form1.Button1_Click(Object sender, EventArgs e) at System.Windows.Forms.Control.OnClick(EventArgs e) at System.Windows.Forms.Button.OnClick(EventArgs e) at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ButtonBase.WndProc(Message& m) at System.Windows.Forms.Button.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) Quote Link to comment Share on other sites More sharing options...
LCE Posted May 15, 2008 Share Posted May 15, 2008 Interesting, works perfect here. Let me try a few changes and I will get something else up here soon. Quote Link to comment Share on other sites More sharing options...
Primal Scientist Posted May 15, 2008 Author Share Posted May 15, 2008 Thanks a lot LCE. I really do appreciate this. Quote Link to comment Share on other sites More sharing options...
LCE Posted May 15, 2008 Share Posted May 15, 2008 You are welcome. Try this 1. Quote Link to comment Share on other sites More sharing options...
Primal Scientist Posted May 15, 2008 Author Share Posted May 15, 2008 Hey LCE, Still doing it unfortunately. Application does not support just-in-time (JIT) debugging. See the end of this message for details. ************** Exception Text ************** System.MissingMethodException: Method not found: 'Autodesk.AutoCAD.ApplicationServices.DocumentLockMode Autodesk.AutoCAD.ApplicationServices.Document.LockMode(Boolean)'. at Xrep.Form1.Button1_Click(Object sender, EventArgs e) at System.Windows.Forms.Control.OnClick(EventArgs e) at System.Windows.Forms.Button.OnClick(EventArgs e) at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ButtonBase.WndProc(Message& m) at System.Windows.Forms.Button.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.