<?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: Automatic setting the correct printer by sheet size in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/automatic-setting-the-correct-printer-by-sheet-size/m-p/9242652#M104444</link>
    <description>&lt;P&gt;Thank you for your idea.&lt;/P&gt;&lt;P&gt;The solution will be through the iLogic rule.&lt;/P&gt;&lt;P&gt;One printer prints A3 and A4 size sheets and the other prints A2, A1 and A0.&lt;/P&gt;&lt;P&gt;Could be create a rule that automatically detects the sheet size (without printing settings), sets the correct printer, and opens the print dialog?&amp;nbsp;&lt;img class="lia-deferred-image lia-image-emoji" src="https://forums.autodesk.com/html/@1A5BF4DFF76C3208F100BEEBB3221CE2/emoticons/1f605.png" alt=":grinning_face_with_sweat:" title=":grinning_face_with_sweat:" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;P&gt;Milan&lt;/P&gt;</description>
    <pubDate>Fri, 10 Jan 2020 11:21:26 GMT</pubDate>
    <dc:creator>Milan_Nosil</dc:creator>
    <dc:date>2020-01-10T11:21:26Z</dc:date>
    <item>
      <title>Automatic setting the correct printer by sheet size</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/automatic-setting-the-correct-printer-by-sheet-size/m-p/9242343#M104438</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have one issue with printing. When I print manydrawings and gradually open the drawings, I always have to select the correct printer according to the sheet size.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can this be automated?&amp;nbsp;&amp;nbsp;I would like to open a drawing in Inventor, press print and do not have to manually change the printer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use Vault basic 2020 and I do not have drawings in one folder.&lt;/P&gt;&lt;P&gt;(Inventor 2020, Vault 2020)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for any advice.&lt;/P&gt;&lt;P&gt;Milan&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 09:16:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/automatic-setting-the-correct-printer-by-sheet-size/m-p/9242343#M104438</guid>
      <dc:creator>Milan_Nosil</dc:creator>
      <dc:date>2020-01-10T09:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic setting the correct printer by sheet size</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/automatic-setting-the-correct-printer-by-sheet-size/m-p/9242439#M104441</link>
      <description>&lt;P&gt;Hi, have you tried setting up the printer you need from "Print Setup"?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.jpg" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/715375i5A289B94E95A3288/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.jpg" alt="1.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.jpg" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/715376i2CA30166D559C177/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.jpg" alt="2.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Through ilogic code you could do it through&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;DrawingDocument&lt;/SPAN&gt; = &lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Document&lt;/SPAN&gt;
&lt;SPAN&gt;'View the current printer&lt;/SPAN&gt;
&lt;SPAN&gt;MessageBox&lt;/SPAN&gt;.&lt;SPAN&gt;Show&lt;/SPAN&gt;(&lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;PrintManager&lt;/SPAN&gt;.&lt;SPAN&gt;Printer&lt;/SPAN&gt;)
&lt;SPAN&gt;'Set type of printer&lt;/SPAN&gt;
&lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;PrintManager&lt;/SPAN&gt;.&lt;SPAN&gt;Printer&lt;/SPAN&gt; = &lt;SPAN&gt;"Fax"&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;By executing that segment of code in a drawing file you can get / set the type of printer you want&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 09:42:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/automatic-setting-the-correct-printer-by-sheet-size/m-p/9242439#M104441</guid>
      <dc:creator>Sergio.D.Suárez</dc:creator>
      <dc:date>2020-01-10T09:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic setting the correct printer by sheet size</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/automatic-setting-the-correct-printer-by-sheet-size/m-p/9242652#M104444</link>
      <description>&lt;P&gt;Thank you for your idea.&lt;/P&gt;&lt;P&gt;The solution will be through the iLogic rule.&lt;/P&gt;&lt;P&gt;One printer prints A3 and A4 size sheets and the other prints A2, A1 and A0.&lt;/P&gt;&lt;P&gt;Could be create a rule that automatically detects the sheet size (without printing settings), sets the correct printer, and opens the print dialog?&amp;nbsp;&lt;img class="lia-deferred-image lia-image-emoji" src="https://forums.autodesk.com/html/@1A5BF4DFF76C3208F100BEEBB3221CE2/emoticons/1f605.png" alt=":grinning_face_with_sweat:" title=":grinning_face_with_sweat:" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;P&gt;Milan&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 11:21:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/automatic-setting-the-correct-printer-by-sheet-size/m-p/9242652#M104444</guid>
      <dc:creator>Milan_Nosil</dc:creator>
      <dc:date>2020-01-10T11:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic setting the correct printer by sheet size</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/automatic-setting-the-correct-printer-by-sheet-size/m-p/9242684#M104445</link>
      <description>&lt;P&gt;Regardless of the type of sheet, you could take the measurements of the sheet, the width or height and generate the ruler from this data&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;DrawingDocument&lt;/SPAN&gt; = &lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Document&lt;/SPAN&gt;

&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;oSheet&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Sheet&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Sheets&lt;/SPAN&gt;
	&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;oSheet&lt;/SPAN&gt;.&lt;SPAN&gt;Width&lt;/SPAN&gt; = 21.0 &lt;SPAN&gt;Then&lt;/SPAN&gt;&lt;SPAN&gt;'A4&lt;/SPAN&gt;
		&lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;PrintManager&lt;/SPAN&gt;.&lt;SPAN&gt;Printer&lt;/SPAN&gt; = &lt;SPAN&gt;"Fax"&lt;/SPAN&gt;
		&lt;SPAN&gt;MessageBox&lt;/SPAN&gt;.&lt;SPAN&gt;Show&lt;/SPAN&gt;(&lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;PrintManager&lt;/SPAN&gt;.&lt;SPAN&gt;Printer&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;" -&amp;gt; Sheet A4"&lt;/SPAN&gt;)
	&lt;SPAN&gt;ElseIf&lt;/SPAN&gt; &lt;SPAN&gt;oSheet&lt;/SPAN&gt;.&lt;SPAN&gt;Width&lt;/SPAN&gt; = 29.7 &lt;SPAN&gt;Then&lt;/SPAN&gt; &lt;SPAN&gt;'A3&lt;/SPAN&gt;
		&lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;PrintManager&lt;/SPAN&gt;.&lt;SPAN&gt;Printer&lt;/SPAN&gt; = &lt;SPAN&gt;"OneNote"&lt;/SPAN&gt;
		&lt;SPAN&gt;MessageBox&lt;/SPAN&gt;.&lt;SPAN&gt;Show&lt;/SPAN&gt;(&lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;PrintManager&lt;/SPAN&gt;.&lt;SPAN&gt;Printer&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;" -&amp;gt; Sheet A3"&lt;/SPAN&gt;)
	&lt;SPAN&gt;ElseIf&lt;/SPAN&gt; &lt;SPAN&gt;oSheet&lt;/SPAN&gt;.&lt;SPAN&gt;Width&lt;/SPAN&gt; = 42.0 &lt;SPAN&gt;Then&lt;/SPAN&gt; &lt;SPAN&gt;'A2&lt;/SPAN&gt;
		&lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;PrintManager&lt;/SPAN&gt;.&lt;SPAN&gt;Printer&lt;/SPAN&gt; = &lt;SPAN&gt;"Fax"&lt;/SPAN&gt;
		&lt;SPAN&gt;MessageBox&lt;/SPAN&gt;.&lt;SPAN&gt;Show&lt;/SPAN&gt;(&lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;PrintManager&lt;/SPAN&gt;.&lt;SPAN&gt;Printer&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;" -&amp;gt; Sheet A2"&lt;/SPAN&gt;)
	&lt;SPAN&gt;ElseIf&lt;/SPAN&gt; &lt;SPAN&gt;oSheet&lt;/SPAN&gt;.&lt;SPAN&gt;Width&lt;/SPAN&gt; = 59.4 &lt;SPAN&gt;Then&lt;/SPAN&gt; &lt;SPAN&gt;'A1&lt;/SPAN&gt;
		&lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;PrintManager&lt;/SPAN&gt;.&lt;SPAN&gt;Printer&lt;/SPAN&gt; = &lt;SPAN&gt;"OneNote"&lt;/SPAN&gt;
		&lt;SPAN&gt;MessageBox&lt;/SPAN&gt;.&lt;SPAN&gt;Show&lt;/SPAN&gt;(&lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;PrintManager&lt;/SPAN&gt;.&lt;SPAN&gt;Printer&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;" -&amp;gt; Sheet A1"&lt;/SPAN&gt;)
	&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
&lt;SPAN&gt;Next&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;You should complete the rule with your printers data for each type of sheet. If you use the vertical sheets and in other cases as horizontal you should recondition the rule. In this simple code you will measure the sheets vertically by default. I hope this can help you in your work. Cheers!&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 11:50:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/automatic-setting-the-correct-printer-by-sheet-size/m-p/9242684#M104445</guid>
      <dc:creator>Sergio.D.Suárez</dc:creator>
      <dc:date>2020-01-10T11:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic setting the correct printer by sheet size</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/automatic-setting-the-correct-printer-by-sheet-size/m-p/9242692#M104446</link>
      <description>&lt;P&gt;Thank you very much!&amp;nbsp;&lt;img class="lia-deferred-image lia-image-emoji" src="https://forums.autodesk.com/html/@7401B55A0A518861312A0F851CD29320/emoticons/1f44d.png" alt=":thumbs_up:" title=":thumbs_up:" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 11:56:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/automatic-setting-the-correct-printer-by-sheet-size/m-p/9242692#M104446</guid>
      <dc:creator>Milan_Nosil</dc:creator>
      <dc:date>2020-01-10T11:56:27Z</dc:date>
    </item>
  </channel>
</rss>

