Add prefix to selected virtual sub-assemblies in an assembly

Hi,

I am new to macros and I am trying to add a prefix to selected pipe routes that are still virtual sub-assemblies before I save them into the vault. This is necessary so that the file names will be unique. Any help is appreciated,

Thanks,

SolidworksApi macros