The Revit SDK sample for "AIPAppStartup" has prebuilt sections for code to the executed "OnShutDown" (when closing Revit session) or "OnStartup" (when starting Revit session), but I want to be able to run code for each document loaded. Specifically, I want Revit to clear out temp files associated with the particular model loaded.
I tried creating a new result, public Autodesk.Revit.UI.Result OnLoad(UIControlledApplication application), and this didn't work. I also tried another couple On**** possibilities (OnOpen, etc), which also failed.
Is there a particular "On*****" result to use which will accomplish my desire?