Actually extensive using of Style Cop helped me to think to make it automate.
Let’s make it more handy and useful by putting it in “Context Menu” and “Tool Bar”. Now you have an context menu in you code editor to add the file header. Type macro in search command window, you will get your document header macro available. For any of your file, Press “Alt H” , you will see your document header added automatically.
But I always prefer let’s Visual studio do the job for me.
Here I am going to share with you two different approaches to deal with this issue. SA1633 I used to follow a dumb approach to save my bit of time. And for each file, drag and drop the content from tool box and change the file name. 🙂 Only problem was every time I need to update file name manually. Once again, I am discussing all these approaches as I am not using any tool make it automate.
In the office here we have developed a document management system, which uses Custom Properties on PDF and DWG files to keep a track of what revision etc they are.
In my Revit API development, we required an easy way of settings these from inside of Revit, so I set about creating a plotting external command using the new Print methods in the 2009 API and PDF995's ini file.