ActiveX API: Change Path of Reference Image from Absolute to Relative

Is there any way in DraftSight to change the path of a reference image from absolute to relative, using the ActiveX API? I have a bunch of files to modify, and more yet to create.

Alternatively, can it be done with a command-line script?

Paul