Thank you very much for pulishing the macro.
A published and commented macro helps more than many pages of explanation.
One question: is there any documentation how to observe views which are not of type "View3DInventor" ? I think of TechDraw Page, returning the type "MDIView".