AnsweredAssumed Answered

[automation] cycle through schematic sheets

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

Hello,

 

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

 

...

 

Next

________________________________________________________

 

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!

Outcomes