add a file to a checked in document

Hi,

i would like check in some file from any folder. Therefor I use alittle selfmade tool. The checkin in a projektfolder works well,but how can I add this file to a spezific document wihch one isalready in my vault? Is this actually possible with the PDMWorkgroup API?

thanks in advanced

PatriceSolidworksApi macros