Jump to content

Xref Paths and Renaming


Recommended Posts

Posted

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. :?

  • Replies 31
  • Created
  • Last Reply

Top Posters In This Topic

  • LCE

    16

  • Primal Scientist

    14

  • JeepMaster

    1

  • AVITWeb

    1

Top Posters In This Topic

Posted

Rename them, and then use the reference manage to batch repath them.

Posted

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???

Posted
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.

Posted

Exactly why I said to use the reference manager, and not the XREF manager.

Posted

Yeah I am pulling up my drawings and trying to repath but I cannot get into the file itself to select the Xref!!

Posted

You are using full version right?

Posted

Yeah 2008, NOT using the LT version.

Posted

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.

Posted

you are a STAR!

Posted

nearly there. just running a few tests.

Posted

Great Stuff!

Posted

Sorry. Taking longer than expected, kept getting 1 error, but I think I have it now. Just testing again.

Posted

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

Posted

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)

Posted

Interesting, works perfect here.

Let me try a few changes and I will get something else up here soon.

Posted

Thanks a lot LCE.

 

I really do appreciate this. :D

Posted

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)

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...