AnsweredAssumed Answered

[automation] cycle through schematic sheets

Question asked by Cadiat on Apr 30, 2014
Latest reply on Apr 30, 2014 by robert_davies



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!