External reference replace macro

Good morning everyone,

In the next months we will be implanting the Skeleton Method throughout every one of our products.to standardize our working method, simplify and unify them. The benefits will be great but anyways, that is not the point.

With the skeleton method, we will be working with parts inside parts, which will cause external references. I always found that replacing external references for a project could become a hassle.

My question is the following, would it be possible to make a macro that would ''bunch'' up all the external references for an assembly and allow you to replace that external reference with another one of your choice?

My intent would be to be able to do a pack and go from a product and replace it's external reference with another one that comes from a custom project, without having to go through every single file to replace the external reference.

I'm wondering if such a macro exists or could be created?

SolidworksApi macros