Finding number of 3D views

I'm new to NX Journaling and programming in general and need to write a program that will determine the number of 3D views in NX 8.0, and switch between them to add a 'drawing' border and title block to each view. The end purpose will be to get a pdf file that looks like a drawing from 3D GDT. Any assistance you can give me would be great.

Thanks
Katie

I'm not entirely sure I understand all the requirements, but I think there is some code in the link below that may be a good start. The journal creates an "A" or "A4" sized sheet for each modeling view and exports them all to a pdf file. Is this what you mean by determining the 3D views (the saved & canned views in modeling)?

http://www.eng-tips.com/viewthread.cfm?qid=322064

Thanks for your help, I'll try this code out and let you know how it goes.