Code Red => AutoLISP (Vanilla / Visual) => Topic started by: renkor on August 30, 2018, 01:44:45 PM
Title: Change xref name
Post by: renkor on August 30, 2018, 01:44:45 PM
Hello,
I'd like to know if there is a way to change multiple xref names without opening each drawing.
I know there is a tool called Reference Manager From the Start Menu of your pc. You can change the paths but not the name, so...anyone knows a way to change the xref names (not paths) of 50 drawings without opening, for example? I mean the xref name inside autocad drawings (no paths and no reference name at all)
thanks in advance.
Title: Re: Change xref name
Post by: MP on August 30, 2018, 02:11:52 PM
Almost trivial via ObjectDBX if you're familiar with same. I wrote, but cannot share, an eTransmit like utility based on ObjectDBX that collects and remaps all linked xrefs, images, pdfs, dgns yada. If you search the forum there's likely applicable examples. Cheers.
Title: Re: Change xref name
Post by: renkor on August 31, 2018, 11:34:43 AM
Hello,
I will look for that in the forum.
Thanks.
Title: Re: Change xref name
Post by: ribarm on August 31, 2018, 12:22:25 PM
I thought eTransmit could do that without need for coding... Sorry if I am mistaking...
Title: Re: Change xref name
Post by: renkor on September 01, 2018, 03:18:58 PM
Title: Re: Change xref name
Post by: renkor on September 03, 2018, 11:49:03 AM
Hello,
thanks for replying. I tried the code and it displays an automatition error. not applicable.
However, i coud find a solution in the forum.
Thanks!
Title: Re: Change xref name
Post by: ribarm on September 03, 2018, 12:08:02 PM
I've modified it once again... Not sure what happens at your side, what could yeld such error... Still if you found solution that works for you, I am glad you did find it... I only tried to help as much as I can, so thanks for testing my version... (if you find fix, we'll be grateful if you present us your discovery...) Regards, M.R.
Title: Re: Change xref name
Post by: ribarm on September 03, 2018, 02:06:32 PM
I think I discovered where error occur... The problem was my checking of 'path property - even block has it, but it's not applicable... I've changed that line among some others to do checking with (vla-get-isxref) function... I suppose that now shouldn't be problems - for me it works very well...
Regards, M.R.
Title: Re: Change xref name
Post by: renkor on September 04, 2018, 12:06:04 PM
Hello
I appreciate your effort, of course, dont doubt it. Looking for some time here in the forum (i think i found it here), i tested a very interesting tool. It's a dll file, so write "netload" inside autocad, select the file and then write myxrefmanager. Test it
pd: the error also could be the language (i dont have english autocad, so i have had to recode some lisps to fit my language)