Autoexec macro on part open

Hello

I'am writing a VBA macro that has to be automatically executed everytime I open a particular part template (i.e. any time I create a new part).

Most of our parts have a few basic common features, driven by a dozen variables that have to be specified by the user: right now we are using templates with linked dimensions, but it would be great to have SW prompt a dialog asking for those variables anytime a specific file template is used, generate the model and save its parts with the codified names.

I'm looking for something along the lines of the "AutoOpen" behavior in MS Office, but could not find anything in the online documentation and in knowledge base.

Can someone help me?

Thanks

SolidworksApi macros