These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Printing 3D views via Javascript

DBriggs
DBriggs's picture
Registered: Dec 16 2008
Posts: 10
Answered

If I have a 3D object with multiple views defined, is there a way to cycle through the view and print them? It seems that a Javascript could call the execMenuItem function to access the printing function, but its not clear how to find and open the list of views.

Is this the right forum or should I ask this in the Javascript forum?

My Product Information:
Acrobat Pro Extended 9.0, Windows
UVSAR
UVSAR's picture
Expert
Registered: Oct 29 2008
Posts: 1357
See the Runtime.setView method - example, to move instantly to a view named "overhead" in the first 3D annotation on the first page:-

var a3d = getAnnots3D(0)[0].context3D;
a3d.runtime.setView("overhead",false);

You can use an integer value instead of a view name, and if you don't know how many views you've got defined, it's stored in the runtime.viewCount property.
DBriggs
DBriggs's picture
Registered: Dec 16 2008
Posts: 10
Thank you, UVSAR. That was very helpful.