AnsweredAssumed Answered

How to get all open schematic

Question asked by m_ba on Jun 18, 2014
Latest reply on Aug 22, 2014 by m_ba

Hi,

 

I would like to perform some actions but only on the open schematics.

 

Something like:

 

Dim My_Dx_App As ViewDraw.Application

Dim My_Documents As Variant

Dim My_SchematicSheetDocs As ViewDraw.StringList

 

For Each My_Documents In My_Dx_App.ActiveDocuments.SchematicSheetDocuments.GetAvailableSchematics

                Set My_SchematicSheetDocs = My_Dx_App.SchematicSheetDocuments.GetAvailableSheets(My_Documents)

                For Each My_SchematicSheetDoc In My_SchematicSheetDocs

                                Set My_WorkDoc = My_Dx_App.SchematicSheetDocuments.Open(My_Documents, My_SchematicSheetDoc)

                                Debug.Print My_WorkDoc.Name + page number

                Next

Next

 

 

I tried with:

For Each My_WorkDoc In My_Dx_App.OpenBlocks(VDDT_SCHEMATIC)

But unfortunately, depending how you open the schematic (push into hierarchy or opening the block...), schematics will be listed more than once 

 

Regards,

Outcomes