Extracting file information from model & Drawing

Hi Guys,  

I'm completely new to creating a macro, but I have to add a suffix to all the drawings which are based off some information from the models and drawings. The information is: 

-If model is part or assembly

-Number of sheets in the drawing

The goal is then to rename or do a pack and go of the SW files and respective drawing to add this on to the existing part#. 

I'm not really sure where to even start, if you have any useful links that can help me get started, that would be greatly appreciated!

Thanks! 

SolidworksApi/macros