<?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: Error getting PDF translator Add-In in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/error-getting-pdf-translator-add-in/m-p/4308469#M130068</link>
    <description>&lt;P&gt;It is there and shows loaded after a maual PDF export...&lt;/P&gt;</description>
    <pubDate>Tue, 25 Jun 2013 12:26:19 GMT</pubDate>
    <dc:creator>sellis</dc:creator>
    <dc:date>2013-06-25T12:26:19Z</dc:date>
    <item>
      <title>Error getting PDF translator Add-In</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/error-getting-pdf-translator-add-in/m-p/4307746#M130064</link>
      <description>&lt;P&gt;&lt;FONT size="2" face="arial,helvetica,sans-serif"&gt;Can not get the PDF translator Add-In&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="arial,helvetica,sans-serif"&gt;Trying to export a PDF with PDF translator. Using sample "Save as PDF Translator Sample" from programers help as guild.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="arial,helvetica,sans-serif"&gt;Getting error "Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))" with&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Dim PDFAddIn As TranslatorAddIn = ThisApplication.ApplicationAddIns.ItemById("{0AC6FD96-2F4D-42CE-8BE0-8AEA580399E4}")&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Tried on another system with same results. Can get other translators with ItemById. Can export PDF&amp;nbsp;manually.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Inventor 2014, Visual Studios 2012&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;(this is sort of a repost of &lt;A target="_blank" href="https://forums.autodesk.com/t5/Autodesk-Inventor-Customization/error-with-ThisApplication-ApplicationAddIns-ItemById/td-p/4300466"&gt;http://forums.autodesk.com/t5/Autodesk-Inventor-Customization/error-with-ThisApplication-ApplicationAddIns-ItemById/td-p/4300466&lt;/A&gt;&amp;nbsp;that got marked solved)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Thanks&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Stan&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2013 17:01:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/error-getting-pdf-translator-add-in/m-p/4307746#M130064</guid>
      <dc:creator>sellis</dc:creator>
      <dc:date>2013-06-24T17:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Error getting PDF translator Add-In</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/error-getting-pdf-translator-add-in/m-p/4308376#M130065</link>
      <description>&lt;P&gt;I don't think you can set an object like that in VBA&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try it like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Dim PDFAddIn As TranslatorAddIn
Set PDFAddIn = ThisApplication.ApplicationAddIns.ItemById("{0AC6FD96-2F4D-42CE-8BE0-8AEA580399E4}")&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Daniël&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2013 10:30:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/error-getting-pdf-translator-add-in/m-p/4308376#M130065</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-06-25T10:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: Error getting PDF translator Add-In</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/error-getting-pdf-translator-add-in/m-p/4308402#M130066</link>
      <description>&lt;P&gt;This is VB.net and line works with other translator IDs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Should note&amp;nbsp;IV is 64-bit build 170, update 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2013 11:23:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/error-getting-pdf-translator-add-in/m-p/4308402#M130066</guid>
      <dc:creator>sellis</dc:creator>
      <dc:date>2013-06-25T11:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Error getting PDF translator Add-In</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/error-getting-pdf-translator-add-in/m-p/4308409#M130067</link>
      <description>&lt;P&gt;Check if you have the PDF translator in the list of translators at the Addin manager. It should be there with load behavior automatic/on demand.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2013 11:29:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/error-getting-pdf-translator-add-in/m-p/4308409#M130067</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-06-25T11:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: Error getting PDF translator Add-In</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/error-getting-pdf-translator-add-in/m-p/4308469#M130068</link>
      <description>&lt;P&gt;It is there and shows loaded after a maual PDF export...&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2013 12:26:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/error-getting-pdf-translator-add-in/m-p/4308469#M130068</guid>
      <dc:creator>sellis</dc:creator>
      <dc:date>2013-06-25T12:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: Error getting PDF translator Add-In</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/error-getting-pdf-translator-add-in/m-p/4316953#M130069</link>
      <description>&lt;P&gt;Do you get the same error when trying from VBA? Works fine on my side...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If VBA works, can you post the full Vb.Net code?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Public Sub PublishPDF()

    Dim translator As TranslatorAddIn
    Set translator = ThisApplication.ApplicationAddIns.ItemById("{0AC6FD95-2F4D-42CE-8BE0-8AEA580399E4}")

    Dim doc As Document
    Set doc = ThisApplication.ActiveDocument

    Dim ctx As TranslationContext
    Set ctx = ThisApplication.TransientObjects.CreateTranslationContext
    ctx.Type = kFileBrowseIOMechanism

    ' Create a NameValueMap object
    Dim options As NameValueMap
    Set options = ThisApplication.TransientObjects.CreateNameValueMap

    ' Create a DataMedium object
    Dim dataMedium As dataMedium
    Set dataMedium = ThisApplication.TransientObjects.CreateDataMedium

    'Set the destination file name
    dataMedium.filename = "c:\Temp\test.pdf"

    'Publish document.
    Call translator.saveCopyAs(doc, ctx, options, dataMedium)
End Sub&lt;/PRE&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Philippe.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2013 16:33:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/error-getting-pdf-translator-add-in/m-p/4316953#M130069</guid>
      <dc:creator>philippe.leefsma</dc:creator>
      <dc:date>2013-07-02T16:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: Error getting PDF translator Add-In</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/error-getting-pdf-translator-add-in/m-p/4317080#M130070</link>
      <description>&lt;P&gt;Error in VBA also.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Run-time error '-2147467259 (80004005)':&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2013 18:00:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/error-getting-pdf-translator-add-in/m-p/4317080#M130070</guid>
      <dc:creator>sellis</dc:creator>
      <dc:date>2013-07-02T18:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: Error getting PDF translator Add-In</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/error-getting-pdf-translator-add-in/m-p/4320380#M130071</link>
      <description>&lt;P&gt;Tried&amp;nbsp;on other systems with same results. Manually exporting to PDF works on all.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Windows 7 64 bit inventor professional 2014 build 170, update 1 (Tried VB.net and VBA)&lt;/P&gt;&lt;P&gt;Windows 8 64 bit inventor professional 2014 build 170 (Tried VB.net, system on differnt network... off site)&lt;/P&gt;&lt;P&gt;Windows 7 64 bit inventor 2014 build 170 (Tried VBA)&lt;/P&gt;&lt;P&gt;Windows 7 64 bit inventor 2013 build 176 sp1.1 (Tried VBA,&amp;nbsp; same system as above)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All systems had 2014 installed with 2013 already installed. Two systems had 2013 uninstalled after.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could there be a regional change with PDF addin ID? These systems are in Canada, Software was downloaded through subscription.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2013 12:02:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/error-getting-pdf-translator-add-in/m-p/4320380#M130071</guid>
      <dc:creator>sellis</dc:creator>
      <dc:date>2013-07-05T12:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Error getting PDF translator Add-In</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/error-getting-pdf-translator-add-in/m-p/4320392#M130072</link>
      <description>&lt;P&gt;You can check the class id of the addin. Go to: C:\ProgramData\Autodesk\Inventor 2014\Addins and look for this file: Autodesk.TranslatorPDF.Inventor.addin&lt;/P&gt;&lt;P&gt;If you open this file with notepad you can find the class id somewhere in the first couple of lines.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2013 12:19:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/error-getting-pdf-translator-add-in/m-p/4320392#M130072</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-05T12:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: Error getting PDF translator Add-In</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/error-getting-pdf-translator-add-in/m-p/4320443#M130073</link>
      <description>&lt;P&gt;Well this is embarrassing...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I checked the addin ID I discovered a "?" got added in the ID when I pasted the VBA code over to the editor. So VBA works so must be a problem in my VB.net code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I get time I will start a new VB.net project and just grab the PDF translator to see what happens. &amp;nbsp;Oddly other translators work fine...&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2013 13:08:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/error-getting-pdf-translator-add-in/m-p/4320443#M130073</guid>
      <dc:creator>sellis</dc:creator>
      <dc:date>2013-07-05T13:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: Error getting PDF translator Add-In</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/error-getting-pdf-translator-add-in/m-p/4320515#M130074</link>
      <description>&lt;P&gt;Made a new addin with template and added two buttons. On gets the PDF translator and the other gets the STEP translator. PDF fails, STEP works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Imports Inventor
Imports System.Runtime.InteropServices
Imports Microsoft.Win32

Namespace InventorAddIn1
    &amp;lt;ProgIdAttribute("InventorAddIn2.StandardAddInServer"), _
    GuidAttribute("6a980868-cdce-4631-a170-77a49bf32c15")&amp;gt; _
    Public Class StandardAddInServer
        Implements Inventor.ApplicationAddInServer

        ' Inventor application object.
        Private m_inventorApplication As Inventor.Application

        Private WithEvents _GetPdfTraslatorButton As Inventor.ButtonDefinition
        Private WithEvents _GetStepTraslatorButton As Inventor.ButtonDefinition

        Public Shared AddInCLSID As String

#Region "ApplicationAddInServer Members"

        Public Sub Activate(ByVal addInSiteObject As Inventor.ApplicationAddInSite, ByVal firstTime As Boolean) Implements Inventor.ApplicationAddInServer.Activate
            Try

                ' This method is called by Inventor when it loads the AddIn.
                ' The AddInSiteObject provides access to the Inventor Application object.
                ' The FirstTime flag indicates if the AddIn is loaded for the first time.

                ' Initialize AddIn members.
                m_inventorApplication = addInSiteObject.Application

                ' TODO:  Add ApplicationAddInServer.Activate implementation.
                ' e.g. event initialization, command creation etc.

                Dim _AddInCLSID As GuidAttribute = CType(System.Attribute.GetCustomAttribute(GetType(StandardAddInServer), GetType(GuidAttribute)), GuidAttribute)
                AddInCLSID = "{" &amp;amp; _AddInCLSID.Value &amp;amp; "}"

                Dim UserInterfaceManager As UserInterfaceManager = m_inventorApplication.UserInterfaceManager

                ' Get the ribbon associated with part documents
                Dim DrawingRibbon As Ribbon = UserInterfaceManager.Ribbons.Item("Drawing")

                ' Create a new tab
                Dim InventorAddIn2Tab As RibbonTab = DrawingRibbon.RibbonTabs.Add("InventorAddIn2", "InventorAddIn2.TranslatorsTab", AddInCLSID, , , False)

                ' Create a new panel within the tab
                Dim TranslatorsRibbonPanel As RibbonPanel = InventorAddIn2Tab.RibbonPanels.Add("Translators", "InventorAddIn2.TranslatorsTab.TranslatorsPanel", AddInCLSID)

                'Get icon
                Dim IconIPictureDisp As Object = System.Type.Missing

                'create the commands for the environment
                Dim ControlDefinitions As Inventor.ControlDefinitions = m_inventorApplication.CommandManager.ControlDefinitions

                _GetPdfTraslatorButton = ControlDefinitions.AddButtonDefinition("Get PDF translator", "InventorAddIn2.GetPdfTraslatorCmd", Inventor.CommandTypesEnum.kQueryOnlyCmdType, AddInCLSID, , , IconIPictureDisp, IconIPictureDisp)
                _GetStepTraslatorButton = ControlDefinitions.AddButtonDefinition("Get STEP translator", "InventorAddIn2.GetStepTraslatorCmd", Inventor.CommandTypesEnum.kQueryOnlyCmdType, AddInCLSID, , , IconIPictureDisp, IconIPictureDisp)

                ' Create a control within the panel
                Call TranslatorsRibbonPanel.CommandControls.AddButton(_GetPdfTraslatorButton, True)
                Call TranslatorsRibbonPanel.CommandControls.AddButton(_GetStepTraslatorButton, True)

            Catch ex As Exception
                MsgBox(ex.ToString)
            End Try
        End Sub

        Public Sub Deactivate() Implements Inventor.ApplicationAddInServer.Deactivate

            ' This method is called by Inventor when the AddIn is unloaded.
            ' The AddIn will be unloaded either manually by the user or
            ' when the Inventor session is terminated.

            ' TODO:  Add ApplicationAddInServer.Deactivate implementation

            ' Release objects.
            m_inventorApplication = Nothing

            System.GC.Collect()
            System.GC.WaitForPendingFinalizers()
        End Sub

        Public ReadOnly Property Automation() As Object Implements Inventor.ApplicationAddInServer.Automation

            ' This property is provided to allow the AddIn to expose an API 
            ' of its own to other programs. Typically, this  would be done by
            ' implementing the AddIn's API interface in a class and returning 
            ' that class object through this property.

            Get
                Return Nothing
            End Get

        End Property

        Public Sub ExecuteCommand(ByVal commandID As Integer) Implements Inventor.ApplicationAddInServer.ExecuteCommand

            ' Note:this method is now obsolete, you should use the 
            ' ControlDefinition functionality for implementing commands.

        End Sub

#End Region

        Private Sub _GetPdfTraslatorButton_OnExecute(Context As NameValueMap) Handles _GetPdfTraslatorButton.OnExecute
            Try
                Dim PdfTranslator As TranslatorAddIn
                PdfTranslator = m_inventorApplication.ApplicationAddIns.ItemById("{0AC6FD96-2F4D-42CE-8BE0-8AEA580399E4}")
                MsgBox("PDF TranslatorAddIn found")
            Catch ex As Exception
                MsgBox(ex.ToString)
            End Try
        End Sub

        Private Sub _GetStepTraslatorButton_OnExecute(Context As NameValueMap) Handles _GetStepTraslatorButton.OnExecute
            Try
                Dim StepTranslator As TranslatorAddIn
                StepTranslator = m_inventorApplication.ApplicationAddIns.ItemById("{90AF7F40-0C01-11D5-8E83-0010B541CD80}")
                MsgBox("STEP TranslatorAddIn found")
            Catch ex As Exception
                MsgBox(ex.ToString)
            End Try
        End Sub
    End Class

End Namespace

&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2013 14:43:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/error-getting-pdf-translator-add-in/m-p/4320515#M130074</guid>
      <dc:creator>sellis</dc:creator>
      <dc:date>2013-07-05T14:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: Error getting PDF translator Add-In</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/error-getting-pdf-translator-add-in/m-p/4344318#M130075</link>
      <description>&lt;P&gt;I am also facing the same issue.... tried for the past two days... But not able to find the solution... can any one help iin this issue&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2013 11:19:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/error-getting-pdf-translator-add-in/m-p/4344318#M130075</guid>
      <dc:creator>chockalingam</dc:creator>
      <dc:date>2013-07-26T11:19:48Z</dc:date>
    </item>
  </channel>
</rss>

