Jump to content

Xref Paths and Renaming


Primal Scientist

Recommended Posts

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

Link to comment
Share on other sites

  • Replies 31
  • Created
  • Last Reply

Top Posters In This Topic

  • LCE

    16

  • Primal Scientist

    14

  • JeepMaster

    1

  • AVITWeb

    1

Top Posters In This Topic

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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)

Link to comment
Share on other sites

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)

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