<?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: GetObject autocad application issue in autocad 2025 in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/getobject-autocad-application-issue-in-autocad-2025/m-p/13164545#M1873</link>
    <description>&lt;P&gt;Have a look at this link:&lt;/P&gt;&lt;P&gt;"The GetActiveObject method is deprecated in .NET 8, specifically starting from .NET Core 3.0. The Marshal.GetActiveObject() API is a simple wrapper over the Running Object Table (ROT) and relies on folllwing Win32 APIs that can easily be called via P/Invoke."&lt;/P&gt;&lt;P&gt;&lt;A href="https://adndevblog.typepad.com/autocad/2024/07/autocad-2025-marshalgetactiveobject-net-core.html" target="_blank"&gt;https://adndevblog.typepad.com/autocad/2024/07/autocad-2025-marshalgetactiveobject-net-core.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;Here are some related content you may need:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/ReneNyffenegger/.NET-API/blob/master/System/Runtime/InteropServices/Marshal/GetActiveObject/PInvoke.cs" target="_blank"&gt;https://github.com/ReneNyffenegger/.NET-API/blob/master/System/Runtime/InteropServices/Marshal/GetActiveObject/PInvoke.cs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/net/getobject-is-not-working-in-2025-beta-version/td-p/12492974" target="_blank"&gt;https://forums.autodesk.com/t5/net/getobject-is-not-working-in-2025-beta-version/td-p/12492974&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Nov 2024 04:32:09 GMT</pubDate>
    <dc:creator>ntclmain</dc:creator>
    <dc:date>2024-11-21T04:32:09Z</dc:date>
    <item>
      <title>GetObject autocad application issue in autocad 2025</title>
      <link>https://forums.autodesk.com/t5/net-forum/getobject-autocad-application-issue-in-autocad-2025/m-p/13159357#M1872</link>
      <description>&lt;P&gt;Hi Everybody, Good Day.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am developing software using Visual Studio 2022 and autocad 2025. The software starts with .Net 8 COM and after autocad opens, it calls .Net 8 DLLs using sendcommand. The issue is, everytime i start the software, i have to create a new Application instead of using existing application.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;   Try
       Acadapp = GetObject(, "Autocad.Application")
   Catch ex As Exception

   End Try

   Try
       Acadapp = GetObject(, "AutoCAD.Application.25")
   Catch ex As Exception

   End Try
   Try
       Acadapp = GetObject(, "AutoCAD.Application.25.1")
   Catch ex1 As Exception

   End Try
   Try
       Acadapp = GetObject(, "AutoCAD.Application.25.0")
   Catch ex1 As Exception

   End Try
   Try
       Acadapp = GetObject(, "AutoCAD.Application.25.2")
   Catch ex1 As Exception

   End Try
   Acadapp = CreateObject("AutoCAD.Application")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;In the simple code, above, getobject never fetches autocad application. I tried to start without /nologo. Even then it does not work. Please help me.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2024 07:05:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/getobject-autocad-application-issue-in-autocad-2025/m-p/13159357#M1872</guid>
      <dc:creator>murugamaha</dc:creator>
      <dc:date>2024-11-19T07:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: GetObject autocad application issue in autocad 2025</title>
      <link>https://forums.autodesk.com/t5/net-forum/getobject-autocad-application-issue-in-autocad-2025/m-p/13164545#M1873</link>
      <description>&lt;P&gt;Have a look at this link:&lt;/P&gt;&lt;P&gt;"The GetActiveObject method is deprecated in .NET 8, specifically starting from .NET Core 3.0. The Marshal.GetActiveObject() API is a simple wrapper over the Running Object Table (ROT) and relies on folllwing Win32 APIs that can easily be called via P/Invoke."&lt;/P&gt;&lt;P&gt;&lt;A href="https://adndevblog.typepad.com/autocad/2024/07/autocad-2025-marshalgetactiveobject-net-core.html" target="_blank"&gt;https://adndevblog.typepad.com/autocad/2024/07/autocad-2025-marshalgetactiveobject-net-core.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;Here are some related content you may need:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/ReneNyffenegger/.NET-API/blob/master/System/Runtime/InteropServices/Marshal/GetActiveObject/PInvoke.cs" target="_blank"&gt;https://github.com/ReneNyffenegger/.NET-API/blob/master/System/Runtime/InteropServices/Marshal/GetActiveObject/PInvoke.cs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/net/getobject-is-not-working-in-2025-beta-version/td-p/12492974" target="_blank"&gt;https://forums.autodesk.com/t5/net/getobject-is-not-working-in-2025-beta-version/td-p/12492974&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 04:32:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/getobject-autocad-application-issue-in-autocad-2025/m-p/13164545#M1873</guid>
      <dc:creator>ntclmain</dc:creator>
      <dc:date>2024-11-21T04:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: GetObject autocad application issue in autocad 2025</title>
      <link>https://forums.autodesk.com/t5/net-forum/getobject-autocad-application-issue-in-autocad-2025/m-p/13164666#M1874</link>
      <description>&lt;P&gt;Thanks, I will Try.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 06:10:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/getobject-autocad-application-issue-in-autocad-2025/m-p/13164666#M1874</guid>
      <dc:creator>murugamaha</dc:creator>
      <dc:date>2024-11-21T06:10:44Z</dc:date>
    </item>
  </channel>
</rss>

