<?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: iLogic Rule for .idw to .pdf modification in Inventor Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-forum/ilogic-rule-for-idw-to-pdf-modification/m-p/8511051#M199640</link>
    <description>&lt;P&gt;Hello jeffbohn&lt;/P&gt;
&lt;P&gt;you send a nice iLogic rule, thank you...&lt;/P&gt;
&lt;P&gt;We use an iLogic rule, wich prints all pages (sheets) from the actually open idw-Drawing. Here in we use :&lt;/P&gt;
&lt;P&gt;oOptions.&lt;STRONG&gt;Value&lt;/STRONG&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;"Sheet_Range"&lt;STRONG&gt;)&lt;/STRONG&gt; &lt;STRONG&gt;=&lt;/STRONG&gt; Inventor.PrintRangeEnum.kPrintAllSheets&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But we can print only one file after the other. Now I will try yours.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is our complete rule:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;'------------------------------------IDW - PDF speichern---------------------------------------------&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;path_and_name &lt;STRONG&gt;=&lt;/STRONG&gt; &lt;STRONG&gt;ThisDoc&lt;/STRONG&gt;.&lt;STRONG&gt;PathAndFileName&lt;/STRONG&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;False&lt;STRONG&gt;)&lt;/STRONG&gt; &lt;EM&gt;' ohne Verl&lt;/EM&gt;&lt;EM&gt;䮧&lt;/EM&gt;&lt;EM&gt;erung - without extension&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;PDFAddIn &lt;STRONG&gt;=&lt;/STRONG&gt; &lt;STRONG&gt;ThisApplication&lt;/STRONG&gt;.ApplicationAddIns.ItemById&lt;STRONG&gt;(&lt;/STRONG&gt;"{0AC6FD96-2F4D-42CE-8BE0-8AEA580399E4}"&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;oDocument &lt;STRONG&gt;=&lt;/STRONG&gt; &lt;STRONG&gt;ThisApplication&lt;/STRONG&gt;.ActiveDocument&lt;/P&gt;
&lt;P&gt;oContext &lt;STRONG&gt;=&lt;/STRONG&gt; &lt;STRONG&gt;ThisApplication&lt;/STRONG&gt;.TransientObjects.CreateTranslationContext&lt;/P&gt;
&lt;P&gt;oContext.Type &lt;STRONG&gt;=&lt;/STRONG&gt; IOMechanismEnum.kFileBrowseIOMechanism&lt;/P&gt;
&lt;P&gt;oOptions &lt;STRONG&gt;=&lt;/STRONG&gt; &lt;STRONG&gt;ThisApplication&lt;/STRONG&gt;.TransientObjects.CreateNameValueMap&lt;/P&gt;
&lt;P&gt;oDataMedium &lt;STRONG&gt;=&lt;/STRONG&gt; &lt;STRONG&gt;ThisApplication&lt;/STRONG&gt;.TransientObjects.CreateDataMedium&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;If&lt;/STRONG&gt; PDFAddIn.HasSaveCopyAsOptions&lt;STRONG&gt;(&lt;/STRONG&gt;oDataMedium, oContext, oOptions&lt;STRONG&gt;)&lt;/STRONG&gt; &lt;STRONG&gt;Then&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;oOptions.&lt;STRONG&gt;Value&lt;/STRONG&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;"All_Color_AS_Black"&lt;STRONG&gt;)&lt;/STRONG&gt; &lt;STRONG&gt;=&lt;/STRONG&gt; &lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;oOptions.&lt;STRONG&gt;Value&lt;/STRONG&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;"Remove_Line_Weights"&lt;STRONG&gt;)&lt;/STRONG&gt; &lt;STRONG&gt;=&lt;/STRONG&gt; &lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;oOptions.&lt;STRONG&gt;Value&lt;/STRONG&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;"Vector_Resolution"&lt;STRONG&gt;)&lt;/STRONG&gt; &lt;STRONG&gt;=&lt;/STRONG&gt; &lt;STRONG&gt;4800&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;oOptions.&lt;STRONG&gt;Value&lt;/STRONG&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;"Sheet_Range"&lt;STRONG&gt;)&lt;/STRONG&gt; &lt;STRONG&gt;=&lt;/STRONG&gt; Inventor.PrintRangeEnum.kPrintAllSheets&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;'oOptions.Value("Custom_Begin_Sheet") = 2&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;'oOptions.Value("Custom_End_Sheet") = 4&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;End&lt;/STRONG&gt; &lt;STRONG&gt;If&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;'Zieldateiname - targetfilename&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;oDataMedium.&lt;STRONG&gt;FileName&lt;/STRONG&gt; &lt;STRONG&gt;=&lt;/STRONG&gt; path_and_name &lt;STRONG&gt;&amp;amp;&lt;/STRONG&gt; ".pdf"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;'Dokument drucken - print document&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;PDFAddIn.SaveCopyAs&lt;STRONG&gt;(&lt;/STRONG&gt;oDocument, oContext, oOptions,oDataMedium&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Hope it helps you&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Greetings&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Frank&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Jan 2019 18:52:35 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-01-09T18:52:35Z</dc:date>
    <item>
      <title>iLogic Rule for .idw to .pdf modification</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/ilogic-rule-for-idw-to-pdf-modification/m-p/8510729#M199639</link>
      <description>&lt;P&gt;This is my first posting to the forums and would like to apologize if this has already been answered.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have been using an iLogic Rule to print .idw files to .pdf. This rule takes each .idw file and creates a .pdf. It builds a PDF Folder if one does not exist and inserts the .pdf files into the PDF Folder. This iLogic Rule works as intended for creating individual .pdf files from an .idw.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to modify this iLogic Rule in include printing a .pdf of all ages in the .idw file in addition to individual .pdf files when I run the rule. I currently have to do a separate Print Drawing command for doPDF v7, All Sheets, to get all the pages into one .pdf file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have included the current iLogic Rule we are using in the hopes that someone can suggest additional code that will run an "All Sheets" print command to .pdf.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much for your assistance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;iLogic Rule:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Format:HTML Format Version:1.0 StartHTML: 165 EndHTML: 21574 StartFragment: 314 EndFragment: 21542 StartSelection: 314 EndSelection: 314SyntaxEditor Code Snippet&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;oPath&lt;/SPAN&gt; &lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 128); font-weight: bold;"&gt;ThisDoc&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 128); font-weight: bold;"&gt;Path&lt;/SPAN&gt;
&lt;SPAN style="color: rgb(128, 0, 0);"&gt;oFileName&lt;/SPAN&gt; &lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 128); font-weight: bold;"&gt;ThisDoc&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 128); font-weight: bold;"&gt;FileName&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;False&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;)&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 128, 128); font-style: italic;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 128, 128); font-style: italic;"&gt;without extension&lt;/SPAN&gt;
&lt;SPAN style="color: rgb(128, 0, 0);"&gt;oPDFAddIn&lt;/SPAN&gt; &lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 128); font-weight: bold;"&gt;ThisApplication&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;ApplicationAddIns&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;ItemById&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;_&lt;/SPAN&gt;
&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 128, 128);"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 128, 128);"&gt;{0AC6FD96-2F4D-42CE-8BE0-8AEA580399E4}&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 128, 128);"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;)&lt;/SPAN&gt;
&lt;SPAN style="color: rgb(128, 0, 0);"&gt;oDocument&lt;/SPAN&gt; &lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 128); font-weight: bold;"&gt;ThisApplication&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;ActiveDocument&lt;/SPAN&gt;
&lt;SPAN style="color: rgb(128, 0, 0);"&gt;oContext&lt;/SPAN&gt; &lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 128); font-weight: bold;"&gt;ThisApplication&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;TransientObjects&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;CreateTranslationContext&lt;/SPAN&gt;
&lt;SPAN style="color: rgb(128, 0, 0);"&gt;oContext&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;Type&lt;/SPAN&gt; &lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;IOMechanismEnum&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;kFileBrowseIOMechanism&lt;/SPAN&gt;
&lt;SPAN style="color: rgb(128, 0, 0);"&gt;oOptions&lt;/SPAN&gt; &lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 128); font-weight: bold;"&gt;ThisApplication&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;TransientObjects&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;CreateNameValueMap&lt;/SPAN&gt;
&lt;SPAN style="color: rgb(128, 0, 0);"&gt;oDataMedium&lt;/SPAN&gt; &lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 128); font-weight: bold;"&gt;ThisApplication&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;TransientObjects&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;CreateDataMedium&lt;/SPAN&gt;

&lt;SPAN style="color: rgb(128, 128, 128); font-style: italic;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 128, 128); font-style: italic;"&gt;Define the drawing&lt;/SPAN&gt;
&lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;oDrawing&lt;/SPAN&gt; &lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;DrawingDocument&lt;/SPAN&gt;
&lt;SPAN style="color: rgb(128, 0, 0);"&gt;oDrawing&lt;/SPAN&gt; &lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 128); font-weight: bold;"&gt;ThisDoc&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 128); font-weight: bold;"&gt;Document&lt;/SPAN&gt;

&lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;oSheet&lt;/SPAN&gt; &lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;Sheet&lt;/SPAN&gt;
&lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;lPos&lt;/SPAN&gt; &lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;Long&lt;/SPAN&gt;
&lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;rPos&lt;/SPAN&gt; &lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;Long&lt;/SPAN&gt;
&lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;sLen&lt;/SPAN&gt; &lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;Long&lt;/SPAN&gt;
&lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;sSheetName&lt;/SPAN&gt; &lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;String&lt;/SPAN&gt;
&lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;iSheetNumber&lt;/SPAN&gt; &lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;Integer&lt;/SPAN&gt;

&lt;SPAN style="color: rgb(128, 128, 128); font-style: italic;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 128, 128); font-style: italic;"&gt;step through each drawing sheet&lt;/SPAN&gt;
&lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;For&lt;/SPAN&gt; &lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;Each&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;oSheet&lt;/SPAN&gt; &lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;oDrawing&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;Sheets&lt;/SPAN&gt;

&lt;SPAN style="color: rgb(128, 128, 128); font-style: italic;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 128, 128); font-style: italic;"&gt;find the seperator in the sheet name:number&lt;/SPAN&gt;
&lt;SPAN style="color: rgb(128, 0, 0);"&gt;lPos&lt;/SPAN&gt; &lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 128); font-weight: bold;"&gt;InStr&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;oSheet&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 128); font-weight: bold;"&gt;Name&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 128, 128);"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 128, 128);"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 128, 128);"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;)&lt;/SPAN&gt;
&lt;SPAN style="color: rgb(128, 128, 128); font-style: italic;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 128, 128); font-style: italic;"&gt;find the number of characters in the sheet name&lt;/SPAN&gt;
&lt;SPAN style="color: rgb(128, 0, 0);"&gt;sLen&lt;/SPAN&gt; &lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 128); font-weight: bold;"&gt;Len&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;oSheet&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 128); font-weight: bold;"&gt;Name&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;)&lt;/SPAN&gt;
&lt;SPAN style="color: rgb(128, 128, 128); font-style: italic;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 128, 128); font-style: italic;"&gt;find the sheet name&lt;/SPAN&gt;
&lt;SPAN style="color: rgb(128, 0, 0);"&gt;sSheetName&lt;/SPAN&gt; &lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 128); font-weight: bold;"&gt;Left&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;oSheet&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 128); font-weight: bold;"&gt;Name&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;lPos&lt;/SPAN&gt; &lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;)&lt;/SPAN&gt;
&lt;SPAN style="color: rgb(128, 128, 128); font-style: italic;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 128, 128); font-style: italic;"&gt;find the sheet number&lt;/SPAN&gt;
&lt;SPAN style="color: rgb(128, 0, 0);"&gt;iSheetNumber&lt;/SPAN&gt; &lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 128); font-weight: bold;"&gt;Right&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;oSheet&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 128); font-weight: bold;"&gt;Name&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;sLen&lt;/SPAN&gt; &lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;lPos&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;)&lt;/SPAN&gt;

&lt;SPAN style="color: rgb(128, 128, 128); font-style: italic;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 128, 128); font-style: italic;"&gt;set PDF Options&lt;/SPAN&gt;
&lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;oPDFAddIn&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;HasSaveCopyAsOptions&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;oDataMedium&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;oContext&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;oOptions&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;)&lt;/SPAN&gt; &lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;Then&lt;/SPAN&gt;
&lt;SPAN style="color: rgb(128, 0, 0);"&gt;oOptions&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 128); font-weight: bold;"&gt;Value&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 128, 128);"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 128, 128);"&gt;All_Color_AS_Black&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 128, 128);"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;)&lt;/SPAN&gt; &lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;1&lt;/SPAN&gt;
&lt;SPAN style="color: rgb(128, 0, 0);"&gt;oOptions&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 128); font-weight: bold;"&gt;Value&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 128, 128);"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 128, 128);"&gt;Remove_Line_Weights&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 128, 128);"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;)&lt;/SPAN&gt; &lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;0&lt;/SPAN&gt;
&lt;SPAN style="color: rgb(128, 0, 0);"&gt;oOptions&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 128); font-weight: bold;"&gt;Value&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 128, 128);"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 128, 128);"&gt;Vector_Resolution&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 128, 128);"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;)&lt;/SPAN&gt; &lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;400&lt;/SPAN&gt;
&lt;SPAN style="color: rgb(128, 0, 0);"&gt;oOptions&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 128); font-weight: bold;"&gt;Value&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 128, 128);"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 128, 128);"&gt;Sheet_Range&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 128, 128);"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;)&lt;/SPAN&gt; &lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;Inventor&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;PrintRangeEnum&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;kPrintSheetRange&lt;/SPAN&gt;
&lt;SPAN style="color: rgb(128, 0, 0);"&gt;oOptions&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 128); font-weight: bold;"&gt;Value&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 128, 128);"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 128, 128);"&gt;Custom_Begin_Sheet&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 128, 128);"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;)&lt;/SPAN&gt; &lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;iSheetNumber&lt;/SPAN&gt;
&lt;SPAN style="color: rgb(128, 0, 0);"&gt;oOptions&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 128); font-weight: bold;"&gt;Value&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 128, 128);"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 128, 128);"&gt;Custom_End_Sheet&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 128, 128);"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;)&lt;/SPAN&gt; &lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;iSheetNumber&lt;/SPAN&gt;
&lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;If&lt;/SPAN&gt;

&lt;SPAN style="color: rgb(128, 128, 128); font-style: italic;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 128, 128); font-style: italic;"&gt;get PDF target folder path&lt;/SPAN&gt;
&lt;SPAN style="color: rgb(128, 0, 0);"&gt;oFolder&lt;/SPAN&gt; &lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;oPath&lt;/SPAN&gt; &lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;&amp;amp;&lt;/SPAN&gt; &lt;SPAN style="color: rgb(0, 128, 128);"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 128, 128);"&gt;\PDF&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 128, 128);"&gt;"&lt;/SPAN&gt;

&lt;SPAN style="color: rgb(128, 128, 128); font-style: italic;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 128, 128); font-style: italic;"&gt;Check for the PDF folder and create it if it does not exist&lt;/SPAN&gt;
&lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;Not&lt;/SPAN&gt; &lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;System&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;IO&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;Directory&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 128); font-weight: bold;"&gt;Exists&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;oFolder&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;)&lt;/SPAN&gt; &lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;Then&lt;/SPAN&gt;
    &lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;System&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;IO&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;Directory&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;CreateDirectory&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;oFolder&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;)&lt;/SPAN&gt;
&lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;If&lt;/SPAN&gt;


&lt;SPAN style="color: rgb(128, 128, 128); font-style: italic;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 128, 128); font-style: italic;"&gt;Set the PDF target file name&lt;/SPAN&gt;
&lt;SPAN style="color: rgb(128, 0, 0);"&gt;oDataMedium&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 128); font-weight: bold;"&gt;FileName&lt;/SPAN&gt; &lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;oFolder&lt;/SPAN&gt; &lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;&amp;amp;&lt;/SPAN&gt; &lt;SPAN style="color: rgb(0, 128, 128);"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 128, 128);"&gt;\&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 128, 128);"&gt;"&lt;/SPAN&gt; &lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;&amp;amp;&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;sSheetName&lt;/SPAN&gt; &lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;&amp;amp;&lt;/SPAN&gt; &lt;SPAN style="color: rgb(0, 128, 128);"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 128, 128);"&gt;.pdf&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 128, 128);"&gt;"&lt;/SPAN&gt;

&lt;SPAN style="color: rgb(128, 128, 128); font-style: italic;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 128, 128); font-style: italic;"&gt;Publish document&lt;/SPAN&gt;
&lt;SPAN style="color: rgb(128, 0, 0);"&gt;oPDFAddIn&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;SaveCopyAs&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;oDocument&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;oContext&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;oOptions&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;oDataMedium&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;)&lt;/SPAN&gt;

&lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;Next&lt;/SPAN&gt;
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2019 16:56:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/ilogic-rule-for-idw-to-pdf-modification/m-p/8510729#M199639</guid>
      <dc:creator>jeffbohn</dc:creator>
      <dc:date>2019-01-09T16:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Rule for .idw to .pdf modification</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/ilogic-rule-for-idw-to-pdf-modification/m-p/8511051#M199640</link>
      <description>&lt;P&gt;Hello jeffbohn&lt;/P&gt;
&lt;P&gt;you send a nice iLogic rule, thank you...&lt;/P&gt;
&lt;P&gt;We use an iLogic rule, wich prints all pages (sheets) from the actually open idw-Drawing. Here in we use :&lt;/P&gt;
&lt;P&gt;oOptions.&lt;STRONG&gt;Value&lt;/STRONG&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;"Sheet_Range"&lt;STRONG&gt;)&lt;/STRONG&gt; &lt;STRONG&gt;=&lt;/STRONG&gt; Inventor.PrintRangeEnum.kPrintAllSheets&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But we can print only one file after the other. Now I will try yours.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is our complete rule:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;'------------------------------------IDW - PDF speichern---------------------------------------------&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;path_and_name &lt;STRONG&gt;=&lt;/STRONG&gt; &lt;STRONG&gt;ThisDoc&lt;/STRONG&gt;.&lt;STRONG&gt;PathAndFileName&lt;/STRONG&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;False&lt;STRONG&gt;)&lt;/STRONG&gt; &lt;EM&gt;' ohne Verl&lt;/EM&gt;&lt;EM&gt;䮧&lt;/EM&gt;&lt;EM&gt;erung - without extension&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;PDFAddIn &lt;STRONG&gt;=&lt;/STRONG&gt; &lt;STRONG&gt;ThisApplication&lt;/STRONG&gt;.ApplicationAddIns.ItemById&lt;STRONG&gt;(&lt;/STRONG&gt;"{0AC6FD96-2F4D-42CE-8BE0-8AEA580399E4}"&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;oDocument &lt;STRONG&gt;=&lt;/STRONG&gt; &lt;STRONG&gt;ThisApplication&lt;/STRONG&gt;.ActiveDocument&lt;/P&gt;
&lt;P&gt;oContext &lt;STRONG&gt;=&lt;/STRONG&gt; &lt;STRONG&gt;ThisApplication&lt;/STRONG&gt;.TransientObjects.CreateTranslationContext&lt;/P&gt;
&lt;P&gt;oContext.Type &lt;STRONG&gt;=&lt;/STRONG&gt; IOMechanismEnum.kFileBrowseIOMechanism&lt;/P&gt;
&lt;P&gt;oOptions &lt;STRONG&gt;=&lt;/STRONG&gt; &lt;STRONG&gt;ThisApplication&lt;/STRONG&gt;.TransientObjects.CreateNameValueMap&lt;/P&gt;
&lt;P&gt;oDataMedium &lt;STRONG&gt;=&lt;/STRONG&gt; &lt;STRONG&gt;ThisApplication&lt;/STRONG&gt;.TransientObjects.CreateDataMedium&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;If&lt;/STRONG&gt; PDFAddIn.HasSaveCopyAsOptions&lt;STRONG&gt;(&lt;/STRONG&gt;oDataMedium, oContext, oOptions&lt;STRONG&gt;)&lt;/STRONG&gt; &lt;STRONG&gt;Then&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;oOptions.&lt;STRONG&gt;Value&lt;/STRONG&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;"All_Color_AS_Black"&lt;STRONG&gt;)&lt;/STRONG&gt; &lt;STRONG&gt;=&lt;/STRONG&gt; &lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;oOptions.&lt;STRONG&gt;Value&lt;/STRONG&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;"Remove_Line_Weights"&lt;STRONG&gt;)&lt;/STRONG&gt; &lt;STRONG&gt;=&lt;/STRONG&gt; &lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;oOptions.&lt;STRONG&gt;Value&lt;/STRONG&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;"Vector_Resolution"&lt;STRONG&gt;)&lt;/STRONG&gt; &lt;STRONG&gt;=&lt;/STRONG&gt; &lt;STRONG&gt;4800&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;oOptions.&lt;STRONG&gt;Value&lt;/STRONG&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;"Sheet_Range"&lt;STRONG&gt;)&lt;/STRONG&gt; &lt;STRONG&gt;=&lt;/STRONG&gt; Inventor.PrintRangeEnum.kPrintAllSheets&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;'oOptions.Value("Custom_Begin_Sheet") = 2&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;'oOptions.Value("Custom_End_Sheet") = 4&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;End&lt;/STRONG&gt; &lt;STRONG&gt;If&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;'Zieldateiname - targetfilename&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;oDataMedium.&lt;STRONG&gt;FileName&lt;/STRONG&gt; &lt;STRONG&gt;=&lt;/STRONG&gt; path_and_name &lt;STRONG&gt;&amp;amp;&lt;/STRONG&gt; ".pdf"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;'Dokument drucken - print document&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;PDFAddIn.SaveCopyAs&lt;STRONG&gt;(&lt;/STRONG&gt;oDocument, oContext, oOptions,oDataMedium&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Hope it helps you&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Greetings&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Frank&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2019 18:52:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/ilogic-rule-for-idw-to-pdf-modification/m-p/8511051#M199640</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-01-09T18:52:35Z</dc:date>
    </item>
  </channel>
</rss>

