<?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: Cannot use interop DLL generated with TlbImp.exe in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/cannot-use-interop-dll-generated-with-tlbimp-exe/m-p/10855895#M14220</link>
    <description>&lt;P&gt;You can try to set your application as x64 - in other case you can not use this interop dll.&lt;/P&gt;
&lt;P&gt;But I think you wrong about ability to use ETransmit API in standalone application.&lt;/P&gt;
&lt;P&gt;We can ask&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1937895"&gt;@moogalm&lt;/a&gt; about possibility using ETransmit API from standalone exe (except RealDwg exe) &amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Jan 2022 21:05:24 GMT</pubDate>
    <dc:creator>Alexander.Rivilis</dc:creator>
    <dc:date>2022-01-03T21:05:24Z</dc:date>
    <item>
      <title>Cannot use interop DLL generated with TlbImp.exe</title>
      <link>https://forums.autodesk.com/t5/net-forum/cannot-use-interop-dll-generated-with-tlbimp-exe/m-p/10853120#M14211</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used TlbImp.exe to generate AcETransmit20.Interop.dll from AcETransmit20.tlb using:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;"C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools\x64\TlbImp.exe" "C:\Autodesk_ObjectARX_2019_Win_64_and_32_Bit\inc-x64\AcETransmit20.tlb" /out:AcETransmit20.Interop.dll /namespace:AcETransmit /machine:x64 /verbose&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I added AcETransmit20.Interop.dll to my (.Net 4.8) solution. When I run my project I get this error:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;System.Runtime.InteropServices.COMException: 'Retrieving the COM class factory for component with CLSID {A994CA23-17EB-4C43-8345-EDEE893F2186} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I try to register using Regsvr32, but I get the error&lt;/P&gt;&lt;LI-CODE lang="general"&gt;The module ".....\AcETransmit20.Interop.dll" was loaded but the entry-point DllRegisterServer was not found.

Make sure that ".....\AcETransmit20.Interop.dll" is a valid DLL or OCX file and then try again.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions? I also tried RegAsm but that didnt help either.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jan 2022 02:27:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/cannot-use-interop-dll-generated-with-tlbimp-exe/m-p/10853120#M14211</guid>
      <dc:creator>Bradleywalker12380</dc:creator>
      <dc:date>2022-01-02T02:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot use interop DLL generated with TlbImp.exe</title>
      <link>https://forums.autodesk.com/t5/net-forum/cannot-use-interop-dll-generated-with-tlbimp-exe/m-p/10853505#M14212</link>
      <description>&lt;P&gt;It is look like AutoCAD 2019 is not proper installed.&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jan 2022 12:29:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/cannot-use-interop-dll-generated-with-tlbimp-exe/m-p/10853505#M14212</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2022-01-02T12:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot use interop DLL generated with TlbImp.exe</title>
      <link>https://forums.autodesk.com/t5/net-forum/cannot-use-interop-dll-generated-with-tlbimp-exe/m-p/10855522#M14213</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did a re-install and it did not work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Brad&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jan 2022 17:10:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/cannot-use-interop-dll-generated-with-tlbimp-exe/m-p/10855522#M14213</guid>
      <dc:creator>Bradleywalker12380</dc:creator>
      <dc:date>2022-01-03T17:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot use interop DLL generated with TlbImp.exe</title>
      <link>https://forums.autodesk.com/t5/net-forum/cannot-use-interop-dll-generated-with-tlbimp-exe/m-p/10855593#M14214</link>
      <description>&lt;P&gt;What kind of project you try to create? Standalone exe file or .NET dll plugin?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jan 2022 17:58:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/cannot-use-interop-dll-generated-with-tlbimp-exe/m-p/10855593#M14214</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2022-01-03T17:58:22Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot use interop DLL generated with TlbImp.exe</title>
      <link>https://forums.autodesk.com/t5/net-forum/cannot-use-interop-dll-generated-with-tlbimp-exe/m-p/10855713#M14215</link>
      <description>&lt;P&gt;I am creating a standalone console exe.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Is there some something I am missing to generate an interop dll?&lt;/P&gt;&lt;P&gt;I am following this info from the ADN blog: &lt;A href="https://adndevblog.typepad.com/autocad/2012/05/resolving-references-when-using-tlbimp-.html" target="_blank" rel="noopener"&gt;https://adndevblog.typepad.com/autocad/2012/05/resolving-references-when-using-tlbimp-.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jan 2022 19:12:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/cannot-use-interop-dll-generated-with-tlbimp-exe/m-p/10855713#M14215</guid>
      <dc:creator>Bradleywalker12380</dc:creator>
      <dc:date>2022-01-03T19:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot use interop DLL generated with TlbImp.exe</title>
      <link>https://forums.autodesk.com/t5/net-forum/cannot-use-interop-dll-generated-with-tlbimp-exe/m-p/10855775#M14216</link>
      <description>&lt;P&gt;As far as I know it is impossible to use ETransmit in standalone exe-file.&amp;nbsp;ETransmit use&amp;nbsp;AcETransmit.dll, which is the arx-file loaded into acad.exe and and can not been used in other standalone application.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jan 2022 19:42:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/cannot-use-interop-dll-generated-with-tlbimp-exe/m-p/10855775#M14216</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2022-01-03T19:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot use interop DLL generated with TlbImp.exe</title>
      <link>https://forums.autodesk.com/t5/net-forum/cannot-use-interop-dll-generated-with-tlbimp-exe/m-p/10855866#M14217</link>
      <description>&lt;P&gt;So that is the correct method to create an interop dll? Id like to rule that out please.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Edit: It can be used outside of AutoCAD because according to the ADN blog, RealDWG uses it which is a subset of ObjectARX.&lt;/STRONG&gt; So the AutoCAD SDK should be able to support that.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jan 2022 20:46:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/cannot-use-interop-dll-generated-with-tlbimp-exe/m-p/10855866#M14217</guid>
      <dc:creator>Bradleywalker12380</dc:creator>
      <dc:date>2022-01-03T20:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot use interop DLL generated with TlbImp.exe</title>
      <link>https://forums.autodesk.com/t5/net-forum/cannot-use-interop-dll-generated-with-tlbimp-exe/m-p/10855882#M14218</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/11871126"&gt;@Bradleywalker12380&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;So that is the correct method to create an interop dll? Id like to rule that out please.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Method of creating interop dll is correct. In my case I need to delete /verbose key from command line - with this key I have such error:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;E:\ObjectARX2019\inc-x64&amp;gt;TlbImp.exe AcETransmit20.tlb /out:AcETransmit20.Interop.dll /namespace:AcETransmit /machine:x64 /verbose
Microsoft (R) .NET Framework Type Library to Assembly Converter 4.8.3928.0
Copyright (C) Microsoft Corporation.  All rights reserved.

TlbImp : Resolved referenced file 'AcETransmit20.tlb' to file 'E:\ObjectARX2019\inc-x64\AcETransmit20.tlb'.
TlbImp : error TI1000 : The type library importer encountered an unexpected exception: System.DllNotFoundException - Не удается загрузить DLL "tlbref.dll": Не найден указанный модуль. (Исключение из HRESULT: 0x8007007E)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 03 Jan 2022 20:46:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/cannot-use-interop-dll-generated-with-tlbimp-exe/m-p/10855882#M14218</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2022-01-03T20:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot use interop DLL generated with TlbImp.exe</title>
      <link>https://forums.autodesk.com/t5/net-forum/cannot-use-interop-dll-generated-with-tlbimp-exe/m-p/10855888#M14219</link>
      <description>&lt;P&gt;I got past that error by copying that dll from "C:\Windows\Microsoft.NET\Framework\v4.0.30319\TLBREF.DLL" to the same folder as tblimp.exe&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jan 2022 20:50:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/cannot-use-interop-dll-generated-with-tlbimp-exe/m-p/10855888#M14219</guid>
      <dc:creator>Bradleywalker12380</dc:creator>
      <dc:date>2022-01-03T20:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot use interop DLL generated with TlbImp.exe</title>
      <link>https://forums.autodesk.com/t5/net-forum/cannot-use-interop-dll-generated-with-tlbimp-exe/m-p/10855895#M14220</link>
      <description>&lt;P&gt;You can try to set your application as x64 - in other case you can not use this interop dll.&lt;/P&gt;
&lt;P&gt;But I think you wrong about ability to use ETransmit API in standalone application.&lt;/P&gt;
&lt;P&gt;We can ask&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1937895"&gt;@moogalm&lt;/a&gt; about possibility using ETransmit API from standalone exe (except RealDwg exe) &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jan 2022 21:05:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/cannot-use-interop-dll-generated-with-tlbimp-exe/m-p/10855895#M14220</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2022-01-03T21:05:24Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot use interop DLL generated with TlbImp.exe</title>
      <link>https://forums.autodesk.com/t5/net-forum/cannot-use-interop-dll-generated-with-tlbimp-exe/m-p/10855922#M14221</link>
      <description>&lt;P&gt;I tried that, and got "Class not registered " again.&lt;BR /&gt;According to the blog post &lt;A href="https://adndevblog.typepad.com/autocad/2012/05/resolving-references-when-using-tlbimp-.html" target="_blank" rel="noopener"&gt;https://adndevblog.typepad.com/autocad/2012/05/resolving-references-when-using-tlbimp-.html&lt;/A&gt; it says you can specifically use ETRansmit in a stand alone project, thats why it in the same post it offers the tlbimp conversion.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;They even provide the code in this other post &lt;A href="https://adndevblog.typepad.com/autocad/2014/10/including-fonts-and-other-files-using-etransmit-api-.html" target="_blank" rel="noopener"&gt;https://adndevblog.typepad.com/autocad/2014/10/including-fonts-and-other-files-using-etransmit-api-.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you try that code and see if it works in a standalone exe, please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have working .Net code here:&lt;/P&gt;&lt;LI-CODE lang="general"&gt; Public Sub DependentFilesMethod()
        Dim tf As TransmittalFile = Nothing
        Dim [to] As New TransmittalOperation()
        Dim ti As TransmittalInfo = [to].getTransmittalInfoInterface()
        ti.includeDataLinkFile = 1
        ti.includeDGNUnderlay = 1
        ti.includeDWFUnderlay = 1
        ti.includeFontFile = 1
        ti.includeImageFile = 1
        ti.includeInventorProjectFile = 1
        ti.includeInventorReferences = 1
        ti.includeMaterialTextureFile = 1
        ti.includeNestedOverlayXrefDwg = 1
        ti.includePDFUnderlay = 1
        ti.includePhotometricWebFile = 1
        ti.includePlotFile = 1
        ti.includeUnloadedXrefDwg = 1
        ti.includeXrefDwg = 1

        Dim dwgFile As String = "C:\Users\LAB_USER\Desktop\_etransmit test\2013181.dwg"
        If [to].addDrawingFile(dwgFile, tf) = AddFileReturnVal.eFileAdded Then

            Dim tfg As TransmittalFilesGraph = [to].graphInterfacePtr()

            Dim rootTF As TransmittalFile = tfg.getRoot()

            DisplayDependent(rootTF)
        End If
    End Sub

    Sub DisplayDependent(ByVal tf As TransmittalFile)
        Dim numberOfDependents As Integer = tf.numberOfDependents
        For i As Integer = 0 To numberOfDependents - 1
            Dim childTF As TransmittalFile = tf.getDependent(i)

            Dim ft As FileType = childTF.FileType

            Dim sourcePath As String = childTF.sourcePath

            'Console.WriteLine.DocumentManager.MdiActiveDocument.Editor.WriteMessage(String.Format("{0} Dependent {1} - {2}", Environment.NewLine, ft.ToString(), sourcePath))
            Console.WriteLine(String.Format("{0} Dependent {1} - {2}", Environment.NewLine, ft.ToString(), sourcePath))

            DisplayDependent(childTF)
        Next i
    End Sub&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jan 2022 21:10:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/cannot-use-interop-dll-generated-with-tlbimp-exe/m-p/10855922#M14221</guid>
      <dc:creator>Bradleywalker12380</dc:creator>
      <dc:date>2022-01-03T21:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot use interop DLL generated with TlbImp.exe</title>
      <link>https://forums.autodesk.com/t5/net-forum/cannot-use-interop-dll-generated-with-tlbimp-exe/m-p/10855947#M14222</link>
      <description>&lt;P&gt;This code only for using in .NET plugin and not for using in standalone application.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jan 2022 21:18:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/cannot-use-interop-dll-generated-with-tlbimp-exe/m-p/10855947#M14222</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2022-01-03T21:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot use interop DLL generated with TlbImp.exe</title>
      <link>https://forums.autodesk.com/t5/net-forum/cannot-use-interop-dll-generated-with-tlbimp-exe/m-p/10855953#M14223</link>
      <description>&lt;P&gt;I see... well just to completely put this to rest, I hope &lt;A href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1937895" target="_blank" rel="noopener"&gt;@madhukar.moogala&lt;/A&gt; can confirm this, or provide insight as to why the DLL isnt working. I appreciate the help very much though.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jan 2022 21:23:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/cannot-use-interop-dll-generated-with-tlbimp-exe/m-p/10855953#M14223</guid>
      <dc:creator>Bradleywalker12380</dc:creator>
      <dc:date>2022-01-03T21:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot use interop DLL generated with TlbImp.exe</title>
      <link>https://forums.autodesk.com/t5/net-forum/cannot-use-interop-dll-generated-with-tlbimp-exe/m-p/10856161#M14224</link>
      <description>AcETransmit.dll has a dependency on AcDb24.dll and other related dlls which cannot be used in anything other than an AutoCAD based product or a licensed RealDWG host application.</description>
      <pubDate>Tue, 04 Jan 2022 00:11:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/cannot-use-interop-dll-generated-with-tlbimp-exe/m-p/10856161#M14224</guid>
      <dc:creator>artc2</dc:creator>
      <dc:date>2022-01-04T00:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot use interop DLL generated with TlbImp.exe</title>
      <link>https://forums.autodesk.com/t5/net-forum/cannot-use-interop-dll-generated-with-tlbimp-exe/m-p/10856167#M14225</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/656250"&gt;@artc2&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for clarifying!&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jan 2022 00:16:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/cannot-use-interop-dll-generated-with-tlbimp-exe/m-p/10856167#M14225</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2022-01-04T00:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot use interop DLL generated with TlbImp.exe</title>
      <link>https://forums.autodesk.com/t5/net-forum/cannot-use-interop-dll-generated-with-tlbimp-exe/m-p/10856202#M14226</link>
      <description>&lt;P&gt;Transmittal COM library needs to be in AutoCAD domain [If not realdwg app], so you need create AutoCAD .NET command wrapping with transmittal logic and call this command from out of process.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jan 2022 00:51:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/cannot-use-interop-dll-generated-with-tlbimp-exe/m-p/10856202#M14226</guid>
      <dc:creator>moogalm</dc:creator>
      <dc:date>2022-01-04T00:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot use interop DLL generated with TlbImp.exe</title>
      <link>https://forums.autodesk.com/t5/net-forum/cannot-use-interop-dll-generated-with-tlbimp-exe/m-p/10856214#M14227</link>
      <description>Thank you &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1937895"&gt;@moogalm&lt;/a&gt; for that clarification. For some of us that are not experts would not have found that out.&lt;BR /&gt;The blog posts I saw you wrote didnt say if it was for ObjectARX or RealDWG... it would be interesting to read something covering it for both ways.&lt;BR /&gt;&lt;BR /&gt;Anyways, I still appreciate the help everyone. Thanks!&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 04 Jan 2022 01:03:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/cannot-use-interop-dll-generated-with-tlbimp-exe/m-p/10856214#M14227</guid>
      <dc:creator>Bradleywalker12380</dc:creator>
      <dc:date>2022-01-04T01:03:30Z</dc:date>
    </item>
  </channel>
</rss>

