Paste as Reference - Task / Add-in

How hard would it be to create a task-API , to look in the vault, and based on a variable(s) on the data card, Paste that document as a reference.

Currently we have a virtual document, that is our Master Record of anything having to do with a specific product.    We manually paste as reference documents, (Office-SolidWorks-Images, etc, to that Master Record.  Then we can use the contains tab to show files associated with that product.

It would be nice to have a task or add-in during workflow that would go and check documents' data cards and paste them as references automatically.  Some of these documents would be Pasted as references to multiple products.

Thanks for any suggestions!

SolidworksSolidworks Pdm enterprise Pdm