<?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: COM Interop and AutoCAD 2025 in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/com-interop-and-autocad-2025/m-p/12999978#M2694</link>
    <description>&lt;P&gt;Yes, I am using the NuGet packages AutoCAd.NET (25.0.1)&lt;BR /&gt;and AutoCAD.NET.Interop (2025.25.0.58).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Visual Studio does recognize AutoCAD types.&lt;/P&gt;</description>
    <pubDate>Wed, 04 Sep 2024 10:24:54 GMT</pubDate>
    <dc:creator>s3b79</dc:creator>
    <dc:date>2024-09-04T10:24:54Z</dc:date>
    <item>
      <title>COM Interop and AutoCAD 2025</title>
      <link>https://forums.autodesk.com/t5/net-forum/com-interop-and-autocad-2025/m-p/12999903#M2692</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've just started a new job and my first task is to migrate an AutoCAD application written in .Net Framework / VB.NET to Autocad 2025 and therefore .Net 8.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This application is quite old and a large portion of the code still uses&amp;nbsp;COM interop classes rather than managed classes. A line like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim blocTemps As New AcadBlockReference&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;works in .Net Framework but no longer works in .Net 8 :&amp;nbsp;BC30517 Overload resolution failed because no 'New' is accessible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone ever encountered this problem and could give me some advice on how to solve it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2024 09:42:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/com-interop-and-autocad-2025/m-p/12999903#M2692</guid>
      <dc:creator>s3b79</dc:creator>
      <dc:date>2024-09-04T09:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: COM Interop and AutoCAD 2025</title>
      <link>https://forums.autodesk.com/t5/net-forum/com-interop-and-autocad-2025/m-p/12999968#M2693</link>
      <description>&lt;P&gt;Did you reference the AutoCAD 2025 libraries for AcDbMgd, AcCoremgd, AcMgd, Autodesk.AutoCAD.Interop, Autodesk.AutoCAD.Interop.Common, ... (version 25.0.58.0.0)?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2024 10:19:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/com-interop-and-autocad-2025/m-p/12999968#M2693</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2024-09-04T10:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: COM Interop and AutoCAD 2025</title>
      <link>https://forums.autodesk.com/t5/net-forum/com-interop-and-autocad-2025/m-p/12999978#M2694</link>
      <description>&lt;P&gt;Yes, I am using the NuGet packages AutoCAd.NET (25.0.1)&lt;BR /&gt;and AutoCAD.NET.Interop (2025.25.0.58).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Visual Studio does recognize AutoCAD types.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2024 10:24:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/com-interop-and-autocad-2025/m-p/12999978#M2694</guid>
      <dc:creator>s3b79</dc:creator>
      <dc:date>2024-09-04T10:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: COM Interop and AutoCAD 2025</title>
      <link>https://forums.autodesk.com/t5/net-forum/com-interop-and-autocad-2025/m-p/13000131#M2695</link>
      <description>&lt;P&gt;You should provide more informations. For example, did you &lt;A href="https://github.com/MadhukarMoogala/Autodesk-Desktop-API--NET-Core/blob/dcde9a23666f0590e8b711c27fc96ad110bd772e/How%20to%20Create%2C%20Build%20and%20Debug%20.NET%208.0%20%20Plugin%20for%20AutoCAD%202025%20(VS%202022).pdf" target="_blank" rel="noopener"&gt;start a new project from scratch&lt;/A&gt; or upgrade an existing .NET Framework project with the &lt;A href="https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.upgradeassistant" target="_blank" rel="noopener"&gt;.NET Upgrade Assistant&lt;/A&gt;? In the second case, you could read &lt;A href="https://forums.autodesk.com/t5/net/migration-guide-net-framework-to-autocad-2025-net-8-0/m-p/12676274#M81355" target="_blank" rel="noopener"&gt;this topic&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2024 11:57:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/com-interop-and-autocad-2025/m-p/13000131#M2695</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2024-09-04T11:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: COM Interop and AutoCAD 2025</title>
      <link>https://forums.autodesk.com/t5/net-forum/com-interop-and-autocad-2025/m-p/13000257#M2696</link>
      <description>&lt;P&gt;I did use the .NET Upgrade Assistant extension to update my projects.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But your comment was interesting. I tried to make a new project in .Net 4.7 and .Net 8.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I used this time NuGet packages to reference the classic AutoCAD libraries and local references for the interop libraries (because&amp;nbsp;AutoCAD.NET.Interop is not an official package).&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="s3b79_0-1725454356871.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1405619i874C90E48608A734/image-size/medium?v=v2&amp;amp;px=400" role="button" title="s3b79_0-1725454356871.png" alt="s3b79_0-1725454356871.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I read your doc but it didn't give me any clues, but thanks for that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2024 12:57:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/com-interop-and-autocad-2025/m-p/13000257#M2696</guid>
      <dc:creator>s3b79</dc:creator>
      <dc:date>2024-09-04T12:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: COM Interop and AutoCAD 2025</title>
      <link>https://forums.autodesk.com/t5/net-forum/com-interop-and-autocad-2025/m-p/13000521#M2697</link>
      <description>&lt;P&gt;Sorry, I'm not familiar with VB specifics and I try to avoid using COM interop in .NET plugins, but the code you posted doesn't make sense to me (i.e. creating an AcadBlockReference with New). As far as I know, you can only create a new AcadBlock reference with the InsertBlock method.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2024 14:41:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/com-interop-and-autocad-2025/m-p/13000521#M2697</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2024-09-04T14:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: COM Interop and AutoCAD 2025</title>
      <link>https://forums.autodesk.com/t5/net-forum/com-interop-and-autocad-2025/m-p/13000703#M2698</link>
      <description>&lt;P&gt;I'm a C# guy too and I don't really like VB. but it's historical in the project where VBA code was migrated to VB.NET with interop.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also wondered if it made sense to do a New. Maybe the New is useless because the reference is overwritten later and just declaring a variable of type AcadBlockReference without the new would be sufficient.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My project is big and I have many errors of this type to correct but I can try...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2024 15:46:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/com-interop-and-autocad-2025/m-p/13000703#M2698</guid>
      <dc:creator>s3b79</dc:creator>
      <dc:date>2024-09-04T15:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: COM Interop and AutoCAD 2025</title>
      <link>https://forums.autodesk.com/t5/net-forum/com-interop-and-autocad-2025/m-p/13000848#M2699</link>
      <description>&lt;P&gt;I had to do this kind of migration a dozen years ago and I'm glad that today projects are entirely converted to C# without any reference to COM interop.&lt;/P&gt;
&lt;P&gt;All the best.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2024 16:49:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/com-interop-and-autocad-2025/m-p/13000848#M2699</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2024-09-04T16:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: COM Interop and AutoCAD 2025</title>
      <link>https://forums.autodesk.com/t5/net-forum/com-interop-and-autocad-2025/m-p/13001265#M2700</link>
      <description>&lt;P&gt;I would never write code that has a dependence on COM Interop.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have code that uses the COM API (e.g., AcadDocument), but does so via late-binding using System.Dynamic.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2024 20:25:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/com-interop-and-autocad-2025/m-p/13001265#M2700</guid>
      <dc:creator>ActivistInvestor</dc:creator>
      <dc:date>2024-09-04T20:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: COM Interop and AutoCAD 2025</title>
      <link>https://forums.autodesk.com/t5/net-forum/com-interop-and-autocad-2025/m-p/13001270#M2701</link>
      <description>&lt;P&gt;Do you start development by referencing COM.Interop, just to get Intelisense and then switch to late binding when you're done?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2024 20:28:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/com-interop-and-autocad-2025/m-p/13001270#M2701</guid>
      <dc:creator>Ed__Jobe</dc:creator>
      <dc:date>2024-09-04T20:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: COM Interop and AutoCAD 2025</title>
      <link>https://forums.autodesk.com/t5/net-forum/com-interop-and-autocad-2025/m-p/13001825#M2702</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/14801"&gt;@Ed__Jobe&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Do you start development by referencing COM.Interop, just to get Intelisense and then switch to late binding when you're done?&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;No, I go from memory, and I don't really do use COM very much to begin with, so not having Intellisense isn't really an issue.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2024 05:09:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/com-interop-and-autocad-2025/m-p/13001825#M2702</guid>
      <dc:creator>ActivistInvestor</dc:creator>
      <dc:date>2024-09-05T05:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: COM Interop and AutoCAD 2025</title>
      <link>https://forums.autodesk.com/t5/net-forum/com-interop-and-autocad-2025/m-p/13002879#M2703</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4476837"&gt;@ActivistInvestor&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/14801"&gt;@Ed__Jobe&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Do you start development by referencing COM.Interop, just to get Intelisense and then switch to late binding when you're done?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;No, I go from memory, and I don't really do use COM very much to begin with, so not having Intellisense isn't really an issue.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Thx. My memory isn't as good. So I have a shortcut to the help file. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; However, if &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/16023534"&gt;@s3b79&lt;/a&gt; isn't familiar with the COM api and needs Intellisense, they should know that they have the option to set a reference to AutoCAD.COM.Interop and remove it before they compile for Release.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2024 14:49:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/com-interop-and-autocad-2025/m-p/13002879#M2703</guid>
      <dc:creator>Ed__Jobe</dc:creator>
      <dc:date>2024-09-05T14:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: COM Interop and AutoCAD 2025</title>
      <link>https://forums.autodesk.com/t5/net-forum/com-interop-and-autocad-2025/m-p/13003367#M2704</link>
      <description>&lt;P&gt;As I said above, I have just taken over the maintenance of a project. This project uses interop classes (in addition to managed classes...). And it's not a choice, it's a fact.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm a developer and my knowledge of Autocad and its APi is very limited. &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/109424"&gt;@_gile&lt;/a&gt;'s answer about the fact that the code I posted didn't make sense was very pertinent. I simply deleted the New and the code compiled.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't say that the migration to .Net 8 is complete, but this particular point seems to have been resolved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks to all.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2024 18:01:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/com-interop-and-autocad-2025/m-p/13003367#M2704</guid>
      <dc:creator>s3b79</dc:creator>
      <dc:date>2024-09-05T18:01:28Z</dc:date>
    </item>
  </channel>
</rss>

