running solidworks as a background process

Can you pass solidworks a set of parameters and have it generate a drawing as a backgound process?

Are there any examples of this?

SolidworksApi macros