title: Visio 2010 Add-in
body: <p>I'm writing a Visio 2010 add-in.
  I need to process the document and analyze all objects inside of it.</p>
  
  <p>As first I got the current instance of Visio</p>
  
  <pre><code>        IVisio.Application app;
  
          object visioObject = Marshal.GetActiveObject("Visio.Application");
          app = visioObject as IVisio.Application;
  </code></pre>
  
  <p>Now, if</p>
  
  <pre><code>if (app.ActiveDocument != null)
  </code></pre>
  
  <p>How should I get all the elements of the active document?
  How should I understand the type of the element I'm analyzing?
  If this element is of type Entity (Object relational), how should I access all the columns definition?</p>
  
  <p>Hope I cleared myself.</p>
  
  <p>Thanks for eventual tips!</p>