Set file revision on check-in possible?

My default workflow is called "Prototype. When I check the file in, I'd like the REvision to automatically be set to P1.

1) How can I do this programatically - and not by the user typing it in the CAD file? Add-in?

2) Also, is there a site/location for admins to share add-ins built by us?

Thanks!

SolidworksSolidworks Pdm enterprise Pdm