How to change InstanceDefinition.SourcePath

I want to move file, including all linked files, using RhinoCommon library.
I can switch instance path from absolute to relative, but I want to move files first, change instance SourcePath, and only then make path relative. How can I do that?

Thanks for any help.

It looks like you can obtain the source archive, InstanceDefinition.SourceArchive. But I don’t see a way to change this in RhinoCommon. I’m sure you can do this in C++. I’ll add this request to wish list.

Thanks for Your answer. I hope this functionality will be implemented.
For now, I just will use DLLImport of ON_InstanceDefinition_SetString from “rhcommon_c”.

This isn’t going to help…