Hi!
I've spent the whole day trying to figure out how to go about making a lisp routine to change reference paths of selected image references, but to no avail.

What I have:
A drawing with a lot of attached images, of which some the saved path is incorrect.


What I want:

To find the broken image references (if it's easier to hard code it they're all saved at "G:*")

Re-save them to a new path.

-----

Attached a snippet from such a dwg.

I know there is an express tool called redir, but I can't call that from within a lisp, right?

There's a lot of dwg's to change this in so I'd like to write the lisp without the need of user input.
When searcing I've found some VLA-commands that seems to do similar things, but I can't get them to work for image references and I'm a real beginner on VLA, so I can't make any sense of it. I'd prefer to do it in AutoLISP, but any solution would be greatly appreciated.

Desperate for a solution here!
Sincerely,

Fredrik