2 Replies Latest reply on Apr 30, 2014 7:46 AM by robert_davies

    [automation] cycle through schematic sheets




      can anyone suggest how can I cycle through all schematic sheets in a project (with vbscript)? I thought it could be done like this:



      Dim vdapp : Set vdapp = GetObject (,"ViewDraw.Application")

      Dim vddoccol : Set vddoccol = vdapp.Documents


      For index = 1 to vddoccol.count


           Dim vdview : Set vdview = vdapp.ActiveView







      This doesn't work for me. Either vdapp.ActiveView is causing me trouble, or the vddoccol is not doing what I thought it should be doing.


      Thank you!