vkhurana

How to "go" to a particular sheet in the design?

Discussion created by vkhurana on Apr 17, 2012
Latest reply on May 16, 2012 by Patrick.Cashman

Hi,

 

I have this figured out but would like to know if this is the best way to go about doing this?  Here's what I desire...say I am on sheet 9 and I want to go to sheet 46 in my design.  Here's what I have done in my VBScript to accomplish this:

 

' get the schematic name

schName = vdapp.GetProjectData.GetiCDBDesignRootBlock(vdapp.GetActiveDesign)

 

Set oSchematicSheet = vdapp.SchematicSheetDocuments.Open(schName, sSheetNumber)

 

oSchematicSheet.activate

 

where sSheetNumber is the sheet to be opened i.e. 46 in this example

 

Thanks,

Varun

Outcomes