PrintManager message

PrintManager message

Anonymous
Not applicable
518 Views
3 Replies
Message 1 of 4

PrintManager message

Anonymous
Not applicable

Hi! I get this message every time I try to access the PrintManager in the code.

var manager = document.PrintManager;//Revit throws a message at this line
manager.PrintRange = PrintRange.Select;
manager.PrintSetup.CurrentPrintSetting = manager.PrintSetup.InSession;//Set <In-Session> to avoid this message

 Is there a way to avoid this message like proccessing failures?
Message says: Cant use Adobe Pdf setting with OneNote printer. The settings will be set <in session>

msg.png

0 Likes
Accepted solutions (1)
519 Views
3 Replies
Replies (3)
Message 2 of 4

jeremy_tammik
Alumni
Alumni

Can you use these settings successfully when driving them manually through the end user interface?

 

If not, then you obviously cannot do so programmatically either.

 

Problems are mostly easier to understand and resolve through the end user interface.

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes
Message 3 of 4

RPTHOMAS108
Mentor
Mentor
Accepted solution

Those information dialogues associated with print manager I believe you can only avoid by using:

 

DialogBoxShowingEventArgs.OverrideResult or similar
 
You are effectively driving the same print manager object as is used in the UI and those kind of notifications are part of that logic external to RevitAPI.
0 Likes
Message 4 of 4

Anonymous
Not applicable
It worked for me, thank you!
0 Likes