<?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: saved pdf through code, line thickness is greater than exported pdf from inventor in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/saved-pdf-through-code-line-thickness-is-greater-than-exported/m-p/11518659#M144479</link>
    <description>&lt;P&gt;You can change the layers in the style library. I had the most issues with the layers having dashed lines. Trying to get the line weight and dash spacing right was a difficult task. &lt;A href="https://forums.autodesk.com/t5/inventor-forum/lineweight-printed-in-pdf-is-thicker-than-plotted/td-p/10119973" target="_blank" rel="noopener"&gt;Here&lt;/A&gt; is also another post on the pdf reader line weight settings. Is the pdf reader delivering the same results as printing a physical drawing sheet?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 30 Oct 2022 16:08:16 GMT</pubDate>
    <dc:creator>A.Acheson</dc:creator>
    <dc:date>2022-10-30T16:08:16Z</dc:date>
    <item>
      <title>saved pdf through code, line thickness is greater than exported pdf from inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/saved-pdf-through-code-line-thickness-is-greater-than-exported/m-p/11516752#M144471</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have saved the pdf of .idw files in one folder, but after getting output of pdf file its not look like exported pdf from inventor. The line thickness is bigger than actual can anyone help me to this whether is problem with layer anything else I need to add in below code. also I have attached both result of pdf.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim oDoc As PartDocument&lt;BR /&gt;oDoc = g_inventorApplication.ActiveDocument&lt;BR /&gt;Dim oFPath As String = oDoc.FullFileName&lt;BR /&gt;Dim iPrtF As iPartFactory&lt;BR /&gt;iPrtF = oDoc.ComponentDefinition.iPartFactory&lt;/P&gt;&lt;P&gt;'Current file path&lt;BR /&gt;Dim oPath As String = System.IO.Path.GetDirectoryName(oDoc.FullDocumentName)&lt;BR /&gt;'Get current filename without extension&lt;BR /&gt;Dim CurrentFilename As String = System.IO.Path.GetFileNameWithoutExtension(oDoc.FullDocumentName)&lt;BR /&gt;Dim CurrntPath As String = oPath &amp;amp; CurrentFilename &amp;amp; "\"&lt;BR /&gt;Dim oFirstMem As String = iPrtF.TableRows.Item(1).MemberName&lt;BR /&gt;Dim oDSuffix As String = ".idw"&lt;/P&gt;&lt;P&gt;'Check that the drawing for this part can be found&lt;BR /&gt;If Not System.IO.File.Exists(oPath &amp;amp; "\" &amp;amp; CurrentFilename &amp;amp; oDSuffix) Then&lt;BR /&gt;Dim oDCheck As Boolean = False&lt;BR /&gt;MessageBox.Show("Couldn't find the original Drawing document!", "Drawing")&lt;BR /&gt;Exit Sub&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;Dim Path As String = oPath&lt;BR /&gt;Dim oCompDef As ComponentDefinition = oDoc.ComponentDefinition&lt;/P&gt;&lt;P&gt;Dim iPF As iPartFactory = oCompDef.iPartFactory&lt;/P&gt;&lt;P&gt;Dim oRow As iPartTableRow&lt;BR /&gt;Dim iPM As iPartMember&lt;/P&gt;&lt;P&gt;For Each oRow In iPF.TableRows&lt;BR /&gt;Dim oNewPart As PartDocument&lt;BR /&gt;Dim oCompDef2 As ComponentDefinition&lt;BR /&gt;Dim iPF2 As iPartFactory&lt;/P&gt;&lt;P&gt;iPF.DefaultRow = oRow&lt;BR /&gt;Dim oiPName As String&lt;BR /&gt;oiPName = oRow.PartName&lt;/P&gt;&lt;P&gt;Dim oiMNAme As String&lt;BR /&gt;oiMNAme = oRow.MemberName&lt;/P&gt;&lt;P&gt;'MsgBox(oiPName)&lt;BR /&gt;'Get current path&lt;/P&gt;&lt;P&gt;'MessageBox.Show(Path, "PAth")&lt;/P&gt;&lt;P&gt;' Perform Save As of Part&lt;BR /&gt;On Error Resume Next&lt;BR /&gt;Call oDoc.SaveAs(Path &amp;amp; "\" &amp;amp; oiPName, True)&lt;BR /&gt;'MessageBox.Show(Path &amp;amp; "\" &amp;amp; oiPName, "save")&lt;/P&gt;&lt;P&gt;oNewPart = Nothing&lt;BR /&gt;oNewPart = g_inventorApplication.Documents.Open(Path &amp;amp; "\" &amp;amp; oiPName, False)&lt;BR /&gt;oCompDef2 = Nothing&lt;BR /&gt;oCompDef2 = oNewPart.ComponentDefinition&lt;BR /&gt;iPF2 = Nothing&lt;BR /&gt;iPF2 = oCompDef2.iPartFactory&lt;BR /&gt;'Dim iR As Integer = oRow.Index&lt;BR /&gt;'iPF2.DefaultRow = oRow&lt;BR /&gt;iPF2.Delete()&lt;BR /&gt;oNewPart.Save()&lt;BR /&gt;oNewPart.Close(True)&lt;/P&gt;&lt;P&gt;Dim DrawingDoc As DrawingDocument = g_inventorApplication.Documents.Open(oPath &amp;amp; "\" &amp;amp; CurrentFilename &amp;amp; oDSuffix, False)&lt;BR /&gt;' Replace reference to part model&lt;BR /&gt;Dim oFD As FileDescriptor&lt;BR /&gt;oFD = DrawingDoc.ReferencedFileDescriptors(1).DocumentDescriptor.ReferencedFileDescriptor&lt;BR /&gt;Call oFD.ReplaceReference(Path &amp;amp; "\" &amp;amp; oiPName)&lt;BR /&gt;DrawingDoc.Update()&lt;/P&gt;&lt;P&gt;' Perform 'Save As' on the drawing - change this to reflect your drawing type .dwg or .idw&lt;BR /&gt;DrawingDoc.SaveAs(Path &amp;amp; "\" &amp;amp; oiMNAme &amp;amp; oDSuffix, False)&lt;/P&gt;&lt;P&gt;'PDF Saving Process&lt;/P&gt;&lt;P&gt;Dim PDFAddIn As TranslatorAddIn&lt;BR /&gt;Dim oContext As TranslationContext&lt;BR /&gt;Dim oOptions As NameValueMap&lt;BR /&gt;Dim oDataMedium As DataMedium&lt;/P&gt;&lt;P&gt;PDFAddIn = g_inventorApplication.ApplicationAddIns.ItemById("{0AC6FD96-2F4D-42CE-8BE0-8AEA580399E4}")&lt;BR /&gt;oContext = g_inventorApplication.TransientObjects.CreateTranslationContext&lt;BR /&gt;oContext.Type = IOMechanismEnum.kFileBrowseIOMechanism&lt;BR /&gt;oOptions = g_inventorApplication.TransientObjects.CreateNameValueMap&lt;BR /&gt;oDataMedium = g_inventorApplication.TransientObjects.CreateDataMedium&lt;BR /&gt;Dim drawingStyle = DrawingDoc.StylesManager.Layers&lt;/P&gt;&lt;P&gt;If PDFAddIn.HasSaveCopyAsOptions(oDoc, oContext, oOptions) Then&lt;BR /&gt;oOptions = g_inventorApplication.TransientObjects.CreateNameValueMap&lt;BR /&gt;oOptions.Value("All_Color_AS_Black") = 1&lt;BR /&gt;oOptions.Value("Remove_Line_Weights") = 0&lt;BR /&gt;oOptions.Value("Vector_Resolution") = 400&lt;BR /&gt;oOptions.Value("Sheet_Range") = Inventor.PrintRangeEnum.kPrintAllSheets&lt;BR /&gt;oOptions.Value("Custom_Begin_Sheet") = 1&lt;BR /&gt;oOptions.Value("Custom_End_Sheet") = 1&lt;BR /&gt;drawingStyle.Value("Visible(ANSI)") = 0.1&lt;BR /&gt;oDataMedium = g_inventorApplication.TransientObjects.CreateDataMedium&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;Call ConfigurePDFAddinSettings(PDFAddIn, oContext, oOptions, oDataMedium)&lt;/P&gt;&lt;P&gt;'create a seperate folder for pdf&lt;BR /&gt;Dim oFolder As String = oPath &amp;amp; "\" &amp;amp; " PDF Files"&lt;BR /&gt;If Not System.IO.Directory.Exists(oFolder) Then&lt;BR /&gt;System.IO.Directory.CreateDirectory(oFolder)&lt;BR /&gt;End If&lt;BR /&gt;oDataMedium.FileName = oFolder &amp;amp; "\" &amp;amp; oiMNAme &amp;amp; ".pdf"&lt;BR /&gt;Call PDFAddIn.SaveCopyAs(DrawingDoc, oContext, oOptions, oDataMedium)&lt;/P&gt;&lt;P&gt;'End of PDF process&lt;BR /&gt;DrawingDoc.Close(True)&lt;BR /&gt;Next&lt;BR /&gt;' Make the assembly model active again...&lt;BR /&gt;oDoc.Activate()&lt;/P&gt;&lt;P&gt;MessageBox.Show("Great, Members and Copy drawings are ready in same folder...")&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Saved_through_Code.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1133550i288FA109FDB166F2/image-size/large?v=v2&amp;amp;px=999" role="button" title="Saved_through_Code.png" alt="Saved_through_Code.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Inventor_Exported.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1133551iB4F29E4B125BABD3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Inventor_Exported.png" alt="Inventor_Exported.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 29 Oct 2022 04:21:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/saved-pdf-through-code-line-thickness-is-greater-than-exported/m-p/11516752#M144471</guid>
      <dc:creator>2020mme013</dc:creator>
      <dc:date>2022-10-29T04:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: saved pdf through code, line thickness is greater than exported pdf from inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/saved-pdf-through-code-line-thickness-is-greater-than-exported/m-p/11517595#M144472</link>
      <description>&lt;P&gt;Yes I believe there is differences between the export as pdf and ilogic save as using translator.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the NameValueMap options you can try and adjust these options.&lt;/P&gt;&lt;PRE&gt;        'oOptions.Value("Remove_Line_Weights") = 0
        'oOptions.Value("Vector_Resolution") = 400&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;In my previous testing I could not get the desired quality from the manual export. There doesn't seem to be much ability to control that process or the control is in multiple locations.&amp;nbsp; However I was able to adjust the ilogic method to work consistently.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some other post discussing this topic&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-ilogic-and-vb-net-forum/poor-pdf-quality-using-pdf-translator-addin/m-p/6536238#M66533" target="_blank" rel="noopener"&gt;https://forums.autodesk.com/t5/inventor-ilogic-and-vb-net-forum/poor-pdf-quality-using-pdf-translator-addin/m-p/6536238#M66533&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://knowledge.autodesk.com/support/inventor/troubleshooting/caas/sfdcarticles/sfdcarticles/Exporting-an-idw-in-pdf-can-generate-very-thick-lines.html" target="_blank" rel="noopener"&gt;https://knowledge.autodesk.com/support/inventor/troubleshooting/caas/sfdcarticles/sfdcarticles/Exporting-an-idw-in-pdf-can-generate-very-thick-lines.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 29 Oct 2022 19:54:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/saved-pdf-through-code-line-thickness-is-greater-than-exported/m-p/11517595#M144472</guid>
      <dc:creator>A.Acheson</dc:creator>
      <dc:date>2022-10-29T19:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: saved pdf through code, line thickness is greater than exported pdf from inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/saved-pdf-through-code-line-thickness-is-greater-than-exported/m-p/11518292#M144476</link>
      <description>&lt;P&gt;Yes I did that changes, even though there is no change in output. I think its issue with layer if anyone know how do i change layer line thickness.&lt;/P&gt;</description>
      <pubDate>Sun, 30 Oct 2022 10:17:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/saved-pdf-through-code-line-thickness-is-greater-than-exported/m-p/11518292#M144476</guid>
      <dc:creator>2020mme013</dc:creator>
      <dc:date>2022-10-30T10:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: saved pdf through code, line thickness is greater than exported pdf from inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/saved-pdf-through-code-line-thickness-is-greater-than-exported/m-p/11518659#M144479</link>
      <description>&lt;P&gt;You can change the layers in the style library. I had the most issues with the layers having dashed lines. Trying to get the line weight and dash spacing right was a difficult task. &lt;A href="https://forums.autodesk.com/t5/inventor-forum/lineweight-printed-in-pdf-is-thicker-than-plotted/td-p/10119973" target="_blank" rel="noopener"&gt;Here&lt;/A&gt; is also another post on the pdf reader line weight settings. Is the pdf reader delivering the same results as printing a physical drawing sheet?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Oct 2022 16:08:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/saved-pdf-through-code-line-thickness-is-greater-than-exported/m-p/11518659#M144479</guid>
      <dc:creator>A.Acheson</dc:creator>
      <dc:date>2022-10-30T16:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: saved pdf through code, line thickness is greater than exported pdf from inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/saved-pdf-through-code-line-thickness-is-greater-than-exported/m-p/11519962#M144493</link>
      <description>&lt;P&gt;this is also not working, I am getting different different output for different sample drawing sketch layer is changing in some drawing and in some drawing the layer is ok. but why its changing if I am having a same drawing of all member of ipart.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 11:53:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/saved-pdf-through-code-line-thickness-is-greater-than-exported/m-p/11519962#M144493</guid>
      <dc:creator>2020mme013</dc:creator>
      <dc:date>2022-10-31T11:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: saved pdf through code, line thickness is greater than exported pdf from inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/saved-pdf-through-code-line-thickness-is-greater-than-exported/m-p/11524067#M144585</link>
      <description>&lt;P&gt;It sounds like you may have changed the layers in the local drawing and not the styles. Ensure the global style is updated and then the drawing also gets the global style updated. Can you export manually and ensure the line weights are consistent. This will eliminate code issues in the translator.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AAcheson_0-1667341535259.png" style="width: 365px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1134914iDEF425111C4D5024/image-dimensions/365x244?v=v2" width="365" height="244" role="button" title="AAcheson_0-1667341535259.png" alt="AAcheson_0-1667341535259.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 22:27:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/saved-pdf-through-code-line-thickness-is-greater-than-exported/m-p/11524067#M144585</guid>
      <dc:creator>A.Acheson</dc:creator>
      <dc:date>2022-11-01T22:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: saved pdf through code, line thickness is greater than exported pdf from inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/saved-pdf-through-code-line-thickness-is-greater-than-exported/m-p/11524390#M144588</link>
      <description>Okay. Let me check with this setting once.&lt;BR /&gt;</description>
      <pubDate>Wed, 02 Nov 2022 02:25:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/saved-pdf-through-code-line-thickness-is-greater-than-exported/m-p/11524390#M144588</guid>
      <dc:creator>2020mme013</dc:creator>
      <dc:date>2022-11-02T02:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: saved pdf through code, line thickness is greater than exported pdf from inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/saved-pdf-through-code-line-thickness-is-greater-than-exported/m-p/11524569#M144590</link>
      <description>&lt;P&gt;Hi, I have done this setting, still there is no change in output. after exporting same drawing from inventor the layer is visible edge(ANSI), but when I am doing it from the code then layer is changing from visible Edge to the template name of layer which is in greater in line thickness and thats why through code its taking the name layer. why its changing automatically not getting. what we are doing from inventor manually is it not possible same with coding??&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 05:54:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/saved-pdf-through-code-line-thickness-is-greater-than-exported/m-p/11524569#M144590</guid>
      <dc:creator>2020mme013</dc:creator>
      <dc:date>2022-11-02T05:54:25Z</dc:date>
    </item>
  </channel>
</rss>

