Is there a way to replace a missing reference file in a drawing using the API?

Hi all,

i'm trying to replace a missing referenced document of drawing using the API.

Unfortunately swView.ReferencedDocument; returns null when the file is missing.

Find references... shows the referenced file name with status "file not found" (see picture attached).

Is there a possibility to access the file name of the referenced file without using the ReferencedDocument property of the view?

Thanks in advance.

Regards,

Chris

SolidworksApi macros