<?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: blurred views in PDF exported through the API in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/blurred-views-in-pdf-exported-through-the-api/m-p/10346291#M124899</link>
    <description>&lt;P&gt;are those shaded views? are they using bitmaps with low resolution maybe?&lt;/P&gt;</description>
    <pubDate>Fri, 28 May 2021 02:52:55 GMT</pubDate>
    <dc:creator>bshbsh</dc:creator>
    <dc:date>2021-05-28T02:52:55Z</dc:date>
    <item>
      <title>blurred views in PDF exported through the API</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/blurred-views-in-pdf-exported-through-the-api/m-p/10345803#M124896</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm using the PDF Translator AddIn via the API to export drawings to PDF. But when I opened the PDF the views appear blurred.&lt;/P&gt;&lt;P&gt;I thought the reason could be that the drawing is exported before being updated. However I tried it, but it still didn't work. I also tried with "DrawingDocument.MakeAllViewsPrecise, but nothing has changed.&lt;/P&gt;&lt;P&gt;Any suggestion?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: 400;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Set oAsmDrawDoc = ThisApplication.ActiveDocument&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Update drawing before exporting to PDF&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;oAsmDrawDoc.Update2 (True)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Make all the views precise&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;oAsmDrawDoc.MakeAllViewsPrecise&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If oAsmDrawDoc.Update2(True) = True Then&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Call Sub Export PDF (save drawings as PDF)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ExportPDF&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Save the updated document&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; oAsmDrawDoc.Save2 (True)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Close AsmDrawDoc and active oAsm again&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;oAsmDrawDoc.Close&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End If&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;Thanks in advance&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 May 2021 21:56:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/blurred-views-in-pdf-exported-through-the-api/m-p/10345803#M124896</guid>
      <dc:creator>dibujocad</dc:creator>
      <dc:date>2021-05-27T21:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: blurred views in PDF exported through the API</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/blurred-views-in-pdf-exported-through-the-api/m-p/10346291#M124899</link>
      <description>&lt;P&gt;are those shaded views? are they using bitmaps with low resolution maybe?&lt;/P&gt;</description>
      <pubDate>Fri, 28 May 2021 02:52:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/blurred-views-in-pdf-exported-through-the-api/m-p/10346291#M124899</guid>
      <dc:creator>bshbsh</dc:creator>
      <dc:date>2021-05-28T02:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: blurred views in PDF exported through the API</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/blurred-views-in-pdf-exported-through-the-api/m-p/10346430#M124901</link>
      <description>this is what i used....resolution at 400 or set it higher.&lt;BR /&gt;&lt;BR /&gt;' Get the PDF translator Add-In.&lt;BR /&gt;Dim PDFAddIn As TranslatorAddIn&lt;BR /&gt;Set PDFAddIn = ThisApplication.ApplicationAddIns.ItemById("{0AC6FD96-2F4D-42CE-8BE0-8AEA580399E4}")&lt;BR /&gt;&lt;BR /&gt;'Set a reference to the active document (the document to be published).&lt;BR /&gt;Dim oDocument As Document&lt;BR /&gt;Set oDocument = ThisApplication.ActiveDocument&lt;BR /&gt;&lt;BR /&gt;' Check if the Document Type is a drawing. If it isn't, display a message &amp;amp; exit the Sub.&lt;BR /&gt;If (oDocument.DocumentType &amp;lt;&amp;gt; kDrawingDocumentObject) Then&lt;BR /&gt;MsgBox "Drawing document not available for Plotting, switch to Drawing Document", , "Drawing not found"&lt;BR /&gt;Set oDocument = Nothing&lt;BR /&gt;Exit Sub&lt;BR /&gt;End If&lt;BR /&gt;&lt;BR /&gt;Dim oContext As TranslationContext&lt;BR /&gt;Set oContext = ThisApplication.TransientObjects.CreateTranslationContext&lt;BR /&gt;oContext.Type = kFileBrowseIOMechanism&lt;BR /&gt;&lt;BR /&gt;' Create a NameValueMap object&lt;BR /&gt;Dim oOptions As NameValueMap&lt;BR /&gt;Set oOptions = ThisApplication.TransientObjects.CreateNameValueMap&lt;BR /&gt;&lt;BR /&gt;' Create a DataMedium object&lt;BR /&gt;Dim oDataMedium As DataMedium&lt;BR /&gt;Set oDataMedium = ThisApplication.TransientObjects.CreateDataMedium&lt;BR /&gt;&lt;BR /&gt;' Check whether the translator has 'SaveCopyAs' options&lt;BR /&gt;If PDFAddIn.HasSaveCopyAsOptions(oDocument, oContext, oOptions) Then&lt;BR /&gt;&lt;BR /&gt;' Options for drawings...&lt;BR /&gt;&lt;BR /&gt;oOptions.Value("All_Color_AS_Black") = 0&lt;BR /&gt;&lt;BR /&gt;oOptions.Value("Remove_Line_Weights") = 0&lt;BR /&gt;oOptions.Value("Vector_Resolution") = 400&lt;BR /&gt;oOptions.Value("Sheet_Range") = kPrintAllSheets&lt;BR /&gt;'oOptions.Value("Custom_Begin_Sheet") = 2&lt;BR /&gt;'oOptions.Value("Custom_End_Sheet") = 4&lt;BR /&gt;&lt;BR /&gt;End If</description>
      <pubDate>Fri, 28 May 2021 04:16:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/blurred-views-in-pdf-exported-through-the-api/m-p/10346430#M124901</guid>
      <dc:creator>jR0sal3s</dc:creator>
      <dc:date>2021-05-28T04:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: blurred views in PDF exported through the API</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/blurred-views-in-pdf-exported-through-the-api/m-p/10349722#M124948</link>
      <description>&lt;DIV&gt;Thanks for your reply,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;No, the drawings don't have any shadows. They contain only white and black lines.&lt;/DIV&gt;&lt;DIV&gt;It seems to me that the root of the problem is something related to updating the drawing document.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I recently did a test to check this fact. Firstly, I created a "Sub" called "UpdateTest" so as to update and save the drawing. Then, I executed it. After that, I executed another "Sub" in order to export the drawing to PDF through the API. Then, it worked. Any blurred view appeared in the exported PDF.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;However, if I execute the "Sub Update", then the views will appear blurred after exporting PDF.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I cannot completely understand it, it should be something related to how my code is written and it is executed, because the resolution isn't the issue.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Arial, Helvetica, sans-serif" size="2" color="#222222"&gt;Test&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Arial, Helvetica, sans-serif" size="2" color="#222222"&gt;&lt;SPAN&gt;Public Sub UpdateTest()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim oAsmDoc As DrawingDocument&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set oAsmDoc = ThisApplication.ActiveDocument&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;oAsmDoc.Update2 (True)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;oAsmDoc.Save2 (True)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Arial, Helvetica, sans-serif" size="2" color="#222222"&gt;&lt;BR /&gt;&lt;SPAN&gt;End Sub&lt;/SPAN&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Arial, Helvetica, sans-serif" size="2" color="#222222"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Arial, Helvetica, sans-serif" size="2" color="#222222"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Public Sub Update()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim oAsmDoc As DrawingDocument&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set oAsmDoc = ThisApplication.ActiveDocument&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;oAsmDoc.Update2 (True)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If oAsmDoc.Update2(True) = True Then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;oAsmDoc.Save2 (True)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;End If&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'Call Sub Export PDF through API&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ExportPDF&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;End Sub&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Sat, 29 May 2021 12:34:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/blurred-views-in-pdf-exported-through-the-api/m-p/10349722#M124948</guid>
      <dc:creator>dibujocad</dc:creator>
      <dc:date>2021-05-29T12:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: blurred views in PDF exported through the API</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/blurred-views-in-pdf-exported-through-the-api/m-p/10350698#M124955</link>
      <description>&lt;P&gt;I used to have that problem when the option "&lt;A href="https://help.autodesk.com/sfdcarticles/img/0EM30000001GDHX" target="_self"&gt;enable background updates&lt;/A&gt;" for drawings is enabled. inventor just starts those background processes (something like invviewcompute.exe or so) but the macro continues to run, doesn't wait for those processes to complete. In my case, I disable this option in my macro before updating the views, then re-enable it after the pdf is exported.&lt;/P&gt;</description>
      <pubDate>Sun, 30 May 2021 04:10:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/blurred-views-in-pdf-exported-through-the-api/m-p/10350698#M124955</guid>
      <dc:creator>bshbsh</dc:creator>
      <dc:date>2021-05-30T04:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: blurred views in PDF exported through the API</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/blurred-views-in-pdf-exported-through-the-api/m-p/10353016#M124981</link>
      <description>&lt;P&gt;Hi bshbsh,&lt;/P&gt;&lt;P&gt;Thank you so much for your tip. It finally works!! &lt;img class="lia-deferred-image lia-image-emoji" src="https://forums.autodesk.com/html/@B4D44A73814D7FC0D950DEDFACB97081/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 31 May 2021 12:05:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/blurred-views-in-pdf-exported-through-the-api/m-p/10353016#M124981</guid>
      <dc:creator>dibujocad</dc:creator>
      <dc:date>2021-05-31T12:05:01Z</dc:date>
    </item>
  </channel>
</rss>

