Checking Drawing revisions against their respective Model Revisions in the vault

We have a rule in place here to keep the model and drawingrevisions the same. Recently we had situation where an employechecked a drawing in with changes to it, but did not check themodel in along with it. Several weeks or months go by and someonewants to pull the drawing out (along with the older revision modelthat is in the vault), but when they open the drawing they realizeit is displaying different information that what the eDrawingsviewer is showing for the document in the vault (and logically so -it should be based on the fact that it was using a differentversion of the model). This causes a stir, because someone forgotto check in the model at the time the drawing was released - A bigno-no, but never the less it happened. I would like to know ifthere is a method that anyone uses to compare the revision level ofdrawing files in the vault to their respective model revisionlevel. I would like to be able to run this check/report on a weeklybasis to determine if anyone has violated our rule and possiblyforgotten to check in a model revision with a drawing revision. Cananyone give me a headstart? I am thinking a custom program usingthe PDMWorks API, but have little programming experience. Maybethere is another solution that I am not aware of?

PeteSolidworksWorkgroup Pdm