<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: PrintSetup.CurrentPrintSetting  versus  PrintSetup.InSession? in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/printsetup-currentprintsetting-versus-printsetup-insession/m-p/7705262#M53147</link>
    <description>&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;InSession is&amp;nbsp;the same thing as it is in the UI: a common placeholder name for settings when the user doesn't want to save the settings under a name.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;The CurrentPrintSetting property is what is&amp;nbsp;referred to&amp;nbsp;when you submit a&amp;nbsp;print and&amp;nbsp;can be either InSession or PrintSetting (both of which implement IPrintSetting). &lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;There is no requirement to set .CurrentprintSetting = PrintManager.PrintSetup.InSession&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;You have to be careful&amp;nbsp;when InSession is current since it can't be renamed or deleted, when you delete a named setting that is current then&amp;nbsp;InSession becomes current.&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 19 Jan 2018 22:16:25 GMT</pubDate>
    <dc:creator>RPTHOMAS108</dc:creator>
    <dc:date>2018-01-19T22:16:25Z</dc:date>
    <item>
      <title>PrintSetup.CurrentPrintSetting  versus  PrintSetup.InSession?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/printsetup-currentprintsetting-versus-printsetup-insession/m-p/7704734#M53146</link>
      <description>&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;I don't understand what it means for the PrintSetup to be&lt;STRONG&gt; InSession&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt; versus&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;CurrentPrintSettin&lt;/STRONG&gt;g.&amp;nbsp;&amp;nbsp;&amp;nbsp;Can anyone explain what&lt;STRONG&gt;&lt;U&gt; InSession &lt;/U&gt;&lt;/STRONG&gt;means? &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;I'm trying to print a pdf of size 32x42 inches from my code.&amp;nbsp; If the default printer on my computer is set to anything other than my default PDF printer (under Devices and Printers&amp;nbsp; in the Control Panel), I get an error when I try to&amp;nbsp;set the paper size in my code.&amp;nbsp; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;The error say: "&lt;STRONG&gt;Illegal paper size&lt;/STRONG&gt;"&amp;nbsp; and mentions the problem is with "&lt;STRONG&gt;Parameter name: ps&lt;/STRONG&gt;".&amp;nbsp;&amp;nbsp; If my default printer is set to Bluebeam (my PDF printer), then my code works fine and every pdf will print the first time.&amp;nbsp; But if the default is another printer, it fails the first time through.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Worth noting, when my&amp;nbsp;print-to-pdf command fails on the first try, I can select my Print Pdf button&amp;nbsp;from the Ribbon&amp;nbsp;again and&amp;nbsp;it will work from then on.&amp;nbsp; Something about failing that first attempt at running the command, seems to be setting internal things as they need to be set....when my default&amp;nbsp;printer is not set to Bluebeam.&amp;nbsp; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;I have seen help online that stated I needed to assign InSession to CurrentPrintSetting.&amp;nbsp; I am doing that.&amp;nbsp; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;PrintManager.PrintSetup.CurrentPrintSetting = PrintManager.PrintSetup.InSession;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;But I don't understand why.&amp;nbsp;What does InSession mean?&amp;nbsp; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Any thoughts are appreciated. Thanks for your help!&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2018 18:56:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/printsetup-currentprintsetting-versus-printsetup-insession/m-p/7704734#M53146</guid>
      <dc:creator>nbrooksFL6XX</dc:creator>
      <dc:date>2018-01-19T18:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: PrintSetup.CurrentPrintSetting  versus  PrintSetup.InSession?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/printsetup-currentprintsetting-versus-printsetup-insession/m-p/7705262#M53147</link>
      <description>&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;InSession is&amp;nbsp;the same thing as it is in the UI: a common placeholder name for settings when the user doesn't want to save the settings under a name.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;The CurrentPrintSetting property is what is&amp;nbsp;referred to&amp;nbsp;when you submit a&amp;nbsp;print and&amp;nbsp;can be either InSession or PrintSetting (both of which implement IPrintSetting). &lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;There is no requirement to set .CurrentprintSetting = PrintManager.PrintSetup.InSession&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;You have to be careful&amp;nbsp;when InSession is current since it can't be renamed or deleted, when you delete a named setting that is current then&amp;nbsp;InSession becomes current.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2018 22:16:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/printsetup-currentprintsetting-versus-printsetup-insession/m-p/7705262#M53147</guid>
      <dc:creator>RPTHOMAS108</dc:creator>
      <dc:date>2018-01-19T22:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: PrintSetup.CurrentPrintSetting  versus  PrintSetup.InSession?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/printsetup-currentprintsetting-versus-printsetup-insession/m-p/7724659#M53148</link>
      <description>&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1035859" target="_self"&gt;&lt;SPAN&gt;RPTHOMAS108&lt;/SPAN&gt;&lt;/A&gt;&amp;nbsp;, Thank you so much for your quick response.&amp;nbsp; Your explanation helped a lot.&amp;nbsp;&amp;nbsp; I never could find adequate documentation explaining InSession and CurrentPrintSetting in relation to InSession.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe&amp;nbsp;my code is corrected and working now.&amp;nbsp; Thank you again!!!&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2018 21:12:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/printsetup-currentprintsetting-versus-printsetup-insession/m-p/7724659#M53148</guid>
      <dc:creator>nbrooksFL6XX</dc:creator>
      <dc:date>2018-01-25T21:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: PrintSetup.CurrentPrintSetting  versus  PrintSetup.InSession?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/printsetup-currentprintsetting-versus-printsetup-insession/m-p/8384301#M53149</link>
      <description>&lt;P&gt;...but I seem to be stupid. Not understood.&lt;BR /&gt;If this "equal" is not required, then how to specify what to print through "in session"? Where to specify the PrintParameters?&lt;BR /&gt;I wrote such code, but it does not work:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt; Document curDoc = sheet.Document;&lt;BR /&gt; PrintManager pManager = curDoc.PrintManager;&lt;BR /&gt; pManager.&lt;SPAN&gt;SelectNewPrintDriver&lt;/SPAN&gt;(&lt;SPAN&gt;"PDFCreator"&lt;/SPAN&gt;);&lt;BR /&gt; pManager.PrintRange = PrintRange.Current;&lt;BR /&gt; pManager.&lt;SPAN&gt;Apply&lt;/SPAN&gt;();&lt;BR /&gt; &lt;BR /&gt; &lt;SPAN&gt;//pManager.PrintSetup.CurrentPrintSetting = pManager.PrintSetup.InSession; //not required??&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;SPAN&gt;//InSessionPrintSetting isps = pManager.PrintSetup.InSession; //??&lt;/SPAN&gt;&lt;BR /&gt; PrintParameters pps = pManager.PrintSetup.CurrentPrintSetting.PrintParameters;&amp;nbsp;&lt;SPAN&gt;//isps.PrintParameters;&lt;/SPAN&gt;&lt;BR /&gt; PaperSize pSize =&amp;nbsp;&lt;SPAN&gt;SearchPaperSize&lt;/SPAN&gt;(pManager,&amp;nbsp;&lt;SPAN&gt;"A2"&lt;/SPAN&gt;);&lt;BR /&gt; pps.PaperSize = pSize;&lt;BR /&gt; pps.PaperPlacement = PaperPlacementType.Margins;&lt;BR /&gt; pps.MarginType = MarginType.NoMargin;&lt;BR /&gt; pps.ZoomType = ZoomType.Zoom;&lt;BR /&gt; pps.Zoom =&amp;nbsp;&lt;SPAN&gt;100&lt;/SPAN&gt;;&lt;BR /&gt; pps.ColorDepth = ColorDepthType.GrayScale;&lt;BR /&gt; pManager.&lt;SPAN&gt;Apply&lt;/SPAN&gt;();&lt;BR /&gt; &lt;BR /&gt; &lt;SPAN&gt;//pManager.PrintSetup.CurrentPrintSetting = isps; //I have no idea what I'm writing&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt; pManager.&lt;SPAN&gt;Apply&lt;/SPAN&gt;();&lt;BR /&gt; pManager.&lt;SPAN&gt;SubmitPrint&lt;/SPAN&gt;(sheet);&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;//it prints as if I didn’t set anything up&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Nov 2018 21:06:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/printsetup-currentprintsetting-versus-printsetup-insession/m-p/8384301#M53149</guid>
      <dc:creator>Extraneous</dc:creator>
      <dc:date>2018-11-06T21:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: PrintSetup.CurrentPrintSetting  versus  PrintSetup.InSession?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/printsetup-currentprintsetting-versus-printsetup-insession/m-p/8385424#M53150</link>
      <description>&lt;P&gt;Lol, the same&amp;nbsp;bug in the SDK Sample ViewPrinter, print settings are not saved: for example, if you select "setup - &amp;lt;in-session&amp;gt;" and "black lines", color is printed anyway. Nuff said...&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;P.S.&amp;nbsp;I found &lt;A href="https://forums.autodesk.com/t5/revit-api-forum/printermanager-printsetup-do-not-apply-settings/td-p/3676618" target="_blank"&gt;a similar discussion&lt;/A&gt;, but I have version 2017, is the bug still not fixed?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Nov 2018 10:33:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/printsetup-currentprintsetting-versus-printsetup-insession/m-p/8385424#M53150</guid>
      <dc:creator>Extraneous</dc:creator>
      <dc:date>2018-11-07T10:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: PrintSetup.CurrentPrintSetting  versus  PrintSetup.InSession?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/printsetup-currentprintsetting-versus-printsetup-insession/m-p/8389343#M53151</link>
      <description>&lt;P&gt;I saw many time Is SDK Is bug. Sometimes Is nothing saved.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Nov 2018 16:43:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/printsetup-currentprintsetting-versus-printsetup-insession/m-p/8389343#M53151</guid>
      <dc:creator>sonicer</dc:creator>
      <dc:date>2018-11-08T16:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: PrintSetup.CurrentPrintSetting  versus  PrintSetup.InSession?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/printsetup-currentprintsetting-versus-printsetup-insession/m-p/8395968#M53152</link>
      <description>&lt;P&gt;Thanks! At least, it's good that this is a bug in a program, not in my brain &lt;img id="catvery-happy" class="emoticon emoticon-catvery-happy" src="https://forums.autodesk.com/i/smilies/16x16_cat-very-happy.png" alt="Cat Very Happy" title="Cat Very Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Nov 2018 13:32:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/printsetup-currentprintsetting-versus-printsetup-insession/m-p/8395968#M53152</guid>
      <dc:creator>Extraneous</dc:creator>
      <dc:date>2018-11-12T13:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: PrintSetup.CurrentPrintSetting  versus  PrintSetup.InSession?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/printsetup-currentprintsetting-versus-printsetup-insession/m-p/8710022#M53153</link>
      <description>&lt;P&gt;Does it print black if it is not in-session? Or does it always print colour?&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2019 10:21:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/printsetup-currentprintsetting-versus-printsetup-insession/m-p/8710022#M53153</guid>
      <dc:creator>Archigrafix_Norge</dc:creator>
      <dc:date>2019-04-05T10:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: PrintSetup.CurrentPrintSetting  versus  PrintSetup.InSession?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/printsetup-currentprintsetting-versus-printsetup-insession/m-p/8943543#M53154</link>
      <description>&lt;P&gt;Just reading through this post with interest as I am working on a small print application and looking to retrieve the Print Setup Print Parameters which I can achieve for all but Insession.&lt;/P&gt;&lt;P&gt;I have been using&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;PrintMgr.PrintSetup.CurrentPrintSetting&amp;nbsp;=&amp;nbsp;PrintMgr.PrintSetup.InSession;&lt;/PRE&gt;&lt;P&gt;but this is not returning the correct data.&lt;/P&gt;&lt;P&gt;In this post it states "There is no requirement to set .CurrentprintSetting = PrintManager.PrintSetup.InSession" if this is the case how do you set the PrintSetup to InSession?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2019 16:54:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/printsetup-currentprintsetting-versus-printsetup-insession/m-p/8943543#M53154</guid>
      <dc:creator>stephen_harrison</dc:creator>
      <dc:date>2019-08-01T16:54:25Z</dc:date>
    </item>
  </channel>
</rss>

