NX 7.5 Drafting (changing sheets) - VB

Hello,

I'm attempting to program in VB to switch between sheets that may not necessarily be in order (i.e. - "SH1_B", "SH2", "SH3_A", etc.). I know how to set up loops, but I'm uncertain how to find out the variable of the different sheets? I read somewhere that there are sheet numbers besides the sheet names, but do you know what the syntax would be for the sheet names? Or is there another method to change between sheets?

Thank you very much for your help ahead of time!

Each part file contains a collection of drawing sheets that you can iterate through. If you are looking for a particular sheet, you can examine the name in the loop and if/when it is found take a specific action on it.

For example, if we are looking for "SH2":
[vbnet]For each sheet as Drawings.DrawingSheet in workPart.DrawingSheets
if sheet.Name = "SH2" then
sheet.Open
'do other stuff
end if
Next[/vbnet]

Thank you very much NXJournaling!

This is very concise and is exactly what I was searching for.

Thank you again!

NX 7.5 Prog1