See the top rated post in this thread. Click here

Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Change xref path type

  1. #1
    100 Club jdcincy's Avatar
    Join Date
    2015-11
    Location
    Cincinnati, Ohio
    Posts
    167
    Login to Give a bone
    0

    Default Change xref path type

    Im running 2009 Mechanical.

    My reference manager does not work. The original 2009 disk is SOMEWHERE according to our IT guy. At his current speed it will be weeks before I can try and reload and fix the reference manager.
    My problem: I need a way to quickly change existing drawings xref path type from “full path” to “no path” or “relitive”

    Is there a lisp routine that can do this?
    Last edited by jdcincy; 2012-04-13 at 03:03 PM.
    John
    Cincinnati, OH

  2. #2
    Super Moderator david_peterson's Avatar
    Join Date
    2002-09
    Location
    Madison, WI
    Posts
    5,662
    Login to Give a bone
    0

    Default Re: Change xref path type

    You can use the redir command.
    I believe the script would look something like this

    REDIR
    *

    qsave
    Dave Peterson
    BIM Coordinator

    Acad - 2019 - Revit 2020 w/ BIM 360 - Navisworks - 3ds 2020 - Ensacpe - Lumion - Win 7 64 - i7-8086K 4.0GHz 32GB Ram - Nvidia Quadro P2000
    "The more you know, the less you know, because the more you know you don't know". --M. Lin

  3. #3
    100 Club jdcincy's Avatar
    Join Date
    2015-11
    Location
    Cincinnati, Ohio
    Posts
    167
    Login to Give a bone
    0

    Default Re: Change xref path type

    Thanks David,

    Thats faster than doing them (each xref) one at a time.

    The draw back is each drawing still requiers to be opened and fixed.

    This does help, thank you!
    John
    Cincinnati, OH

  4. #4
    Super Moderator david_peterson's Avatar
    Join Date
    2002-09
    Location
    Madison, WI
    Posts
    5,662
    Login to Give a bone
    0

    Default Re: Change xref path type

    If you have script-pro, you can do them all at once while you sit back and drink a cup of coffee.
    At least that's how I've done them in the past.
    Dave Peterson
    BIM Coordinator

    Acad - 2019 - Revit 2020 w/ BIM 360 - Navisworks - 3ds 2020 - Ensacpe - Lumion - Win 7 64 - i7-8086K 4.0GHz 32GB Ram - Nvidia Quadro P2000
    "The more you know, the less you know, because the more you know you don't know". --M. Lin

  5. #5
    100 Club jdcincy's Avatar
    Join Date
    2015-11
    Location
    Cincinnati, Ohio
    Posts
    167
    Login to Give a bone
    0

    Default Re: Change xref path type

    script-pro? Not familier with that program. I will look that up. Thx
    John
    Cincinnati, OH

  6. #6
    Super Moderator david_peterson's Avatar
    Join Date
    2002-09
    Location
    Madison, WI
    Posts
    5,662
    Login to Give a bone
    0

    Default Re: Change xref path type

    I want to say that it came with subscriptions, but I'm not sure.
    Here's a link
    I think it may even be free.
    Dave Peterson
    BIM Coordinator

    Acad - 2019 - Revit 2020 w/ BIM 360 - Navisworks - 3ds 2020 - Ensacpe - Lumion - Win 7 64 - i7-8086K 4.0GHz 32GB Ram - Nvidia Quadro P2000
    "The more you know, the less you know, because the more you know you don't know". --M. Lin

  7. #7
    100 Club jdcincy's Avatar
    Join Date
    2015-11
    Location
    Cincinnati, Ohio
    Posts
    167
    Login to Give a bone
    0

    Default Re: Change xref path type

    ScriptPro. Facilitates scripting in AutoCAD. Using ScriptPro, you can apply a set of commands to multiple drawings by simply specifying a script file and the list of drawings to which you want to apply the script.

    Learn something every day. Old Dog can learn new tricks. Thx
    John
    Cincinnati, OH

  8. #8
    100 Club jdcincy's Avatar
    Join Date
    2015-11
    Location
    Cincinnati, Ohio
    Posts
    167
    Login to Give a bone
    0

    Default Re: Change xref path type

    thanks, I was able to download for free.

    I tried to right a script. I hit the edit button droped in what I thought would be the correct script but my "note pad" will not allow me to save as anything else besides .txt files. I have the same problem when I try to write a new .lsp file. I have to over right an existing file to save it. I have know ideal why I can only save in this one (.txt) extension. My old computer it was never a problem.

    So give me a min. to fix this issue. Cant wait to try this scriptpro. I will let you know
    John
    Cincinnati, OH

  9. #9
    Super Moderator david_peterson's Avatar
    Join Date
    2002-09
    Location
    Madison, WI
    Posts
    5,662
    Login to Give a bone
    0

    Default Re: Change xref path type

    After you save you .txt file, just simply change the file extension to .scr and you should be all good.
    Just be sure you test your script on some test drawings or copies of the ones you want to change.
    Remember that while scripts work great, if they are written correctly they can screw up a lot of drawings in a big hurry.
    I've always said, only run scripts on a copy or make sure you have a copy before you run them. You never know when you want to get to an original. Never modify the original.
    Hope that helps.
    Dave Peterson
    BIM Coordinator

    Acad - 2019 - Revit 2020 w/ BIM 360 - Navisworks - 3ds 2020 - Ensacpe - Lumion - Win 7 64 - i7-8086K 4.0GHz 32GB Ram - Nvidia Quadro P2000
    "The more you know, the less you know, because the more you know you don't know". --M. Lin

  10. #10
    100 Club jdcincy's Avatar
    Join Date
    2015-11
    Location
    Cincinnati, Ohio
    Posts
    167
    Login to Give a bone
    0

    Default Re: Change xref path type

    I know what you are saying about changing the extention. It must be a setting on my windows program somewhere because when I am looking at my files in windows explorer, the only files that show an extension are the back-up files. You can see the .bak at the end of the file name but the extensions on the other files like drawing files or micosoft word files only show the file name with no extention. If I high-light the file "newfile" and go to rename and put a dot and scr (for example) the the file name becomes "newfile.scr" It is still a .txt file. When I look in properties you can see the file name with the extention "newfile.scr.txt" Im not sure New computer but still windows/xp, should work like old computer?

    Starting to feel like an idiot. lol
    John
    Cincinnati, OH

Page 1 of 2 12 LastLast

Similar Threads

  1. rename and change xref path
    By krkeec763189 in forum Dot Net API
    Replies: 0
    Last Post: 2011-12-22, 01:29 PM
  2. Change xref name and path
    By krkeec763189 in forum AutoLISP
    Replies: 11
    Last Post: 2011-12-13, 06:56 AM
  3. Replies: 16
    Last Post: 2010-10-15, 04:36 PM
  4. Change Xref from Full Path to Relative Path
    By ccowgill in forum AutoLISP
    Replies: 6
    Last Post: 2009-05-27, 11:54 AM
  5. Xref Path Type AutoCad 2006
    By james.cavalucci in forum AutoCAD General
    Replies: 1
    Last Post: 2008-10-01, 12:19 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •