<?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: auto lisp  comman  .net in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/auto-lisp-comman-net/m-p/8910037#M21822</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use the &lt;A href="https://help.autodesk.com/view/OARX/2019/ENU/?guid=OREFNET-Autodesk_AutoCAD_ApplicationServices_Document_SendStringToExecute_string__MarshalAsUnmanagedType_U1__bool__MarshalAsUnmanagedType_U1__bool__MarshalAsUnmanagedType_U1__bool" target="_blank" rel="noopener"&gt;Document.SendStringtoExecute()&lt;/A&gt; method but you have to keep in mind it runs asynchrously.&lt;/P&gt;
&lt;P&gt;Another way (which works synchronously is using &lt;A href="https://help.autodesk.com/view/OARX/2019/ENU/?guid=OREFNET-Autodesk_AutoCAD_ApplicationServices_Core_Application_Invoke_ResultBuffer" target="_blank" rel="noopener"&gt;Application.Invoke()&lt;/A&gt;. You'll find some code snippets in &lt;A href="https://forums.autodesk.com/t5/net/unable-to-find-an-entry-point-in-dll-acad-exe/td-p/5522036" target="_blank" rel="noopener"&gt;this thread&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Mon, 15 Jul 2019 16:45:13 GMT</pubDate>
    <dc:creator>_gile</dc:creator>
    <dc:date>2019-07-15T16:45:13Z</dc:date>
    <item>
      <title>auto lisp  comman  .net</title>
      <link>https://forums.autodesk.com/t5/net-forum/auto-lisp-comman-net/m-p/8909862#M21821</link>
      <description>&lt;P&gt;how&amp;nbsp; to&amp;nbsp; atulisp&amp;nbsp; command&amp;nbsp; run&amp;nbsp; autocad.net&amp;nbsp; ?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2019 15:45:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/auto-lisp-comman-net/m-p/8909862#M21821</guid>
      <dc:creator>cihanbaki2147</dc:creator>
      <dc:date>2019-07-15T15:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: auto lisp  comman  .net</title>
      <link>https://forums.autodesk.com/t5/net-forum/auto-lisp-comman-net/m-p/8910037#M21822</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use the &lt;A href="https://help.autodesk.com/view/OARX/2019/ENU/?guid=OREFNET-Autodesk_AutoCAD_ApplicationServices_Document_SendStringToExecute_string__MarshalAsUnmanagedType_U1__bool__MarshalAsUnmanagedType_U1__bool__MarshalAsUnmanagedType_U1__bool" target="_blank" rel="noopener"&gt;Document.SendStringtoExecute()&lt;/A&gt; method but you have to keep in mind it runs asynchrously.&lt;/P&gt;
&lt;P&gt;Another way (which works synchronously is using &lt;A href="https://help.autodesk.com/view/OARX/2019/ENU/?guid=OREFNET-Autodesk_AutoCAD_ApplicationServices_Core_Application_Invoke_ResultBuffer" target="_blank" rel="noopener"&gt;Application.Invoke()&lt;/A&gt;. You'll find some code snippets in &lt;A href="https://forums.autodesk.com/t5/net/unable-to-find-an-entry-point-in-dll-acad-exe/td-p/5522036" target="_blank" rel="noopener"&gt;this thread&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2019 16:45:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/auto-lisp-comman-net/m-p/8910037#M21822</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2019-07-15T16:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: auto lisp  comman  .net</title>
      <link>https://forums.autodesk.com/t5/net-forum/auto-lisp-comman-net/m-p/8912848#M21823</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5616698"&gt;@cihanbaki2147&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just by completing the&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/109424"&gt;@_gile&lt;/a&gt;&amp;nbsp;answer:&lt;BR /&gt;&lt;A href="https://www.keanw.com/2015/08/passing-autocad-objects-to-commands-called-via-net.html" target="_blank" rel="noopener"&gt;Document.Editor.Command()&lt;/A&gt; by Autodesk.AutoCAD.EditorInput namespace is another approach to executing commands by In-Process plugins and &lt;A href="https://knowledge.autodesk.com/search-result/caas/CloudHelp/cloudhelp/2017/ENU/AutoCAD-NET/files/GUID-C8C65D7A-EC3A-42D8-BF02-4B13C2EA1A4B-htm.html" target="_blank" rel="noopener"&gt;AcadApplication.ActiveDocument.SendCommand ("('CMD_NAME') command)&lt;/A&gt; to send lisps by C # encoding. NET.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Att,&lt;/P&gt;&lt;P&gt;Antonio Leonardo&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="exam-483-programming-in-c.png" style="width: 125px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/644929i46D8C8A01522EF07/image-size/small?v=v2&amp;amp;px=200" role="button" title="exam-483-programming-in-c.png" alt="exam-483-programming-in-c.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2019 20:22:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/auto-lisp-comman-net/m-p/8912848#M21823</guid>
      <dc:creator>antonio.leonardo</dc:creator>
      <dc:date>2019-07-16T20:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: auto lisp  comman  .net</title>
      <link>https://forums.autodesk.com/t5/net-forum/auto-lisp-comman-net/m-p/8912957#M21824</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6990272"&gt;@antonio.leonardo&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5616698"&gt;@cihanbaki2147&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just by completing the&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/109424"&gt;@_gile&lt;/a&gt;&amp;nbsp;answer:&lt;BR /&gt;&lt;A href="https://www.keanw.com/2015/08/passing-autocad-objects-to-commands-called-via-net.html" target="_blank" rel="noopener"&gt;Document.Editor.Command()&lt;/A&gt; by Autodesk.AutoCAD.EditorInput namespace is another approach to executing commands by In-Process plugins&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As far as I know, you cannot call an AutoLISP defined command (or any other kind of LISP function) with Editor.Command() which only accepts native commands and .NET or ObjectARX custom commands.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2019 21:14:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/auto-lisp-comman-net/m-p/8912957#M21824</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2019-07-16T21:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: auto lisp  comman  .net</title>
      <link>https://forums.autodesk.com/t5/net-forum/auto-lisp-comman-net/m-p/8913113#M21825</link>
      <description>&lt;P&gt;Yes&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/109424"&gt;@_gile&lt;/a&gt;, you're wrigth. Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5616698"&gt;@cihanbaki2147&lt;/a&gt;, sorry for answer. Please, considering only an out-of-process approach as&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://knowledge.autodesk.com/search-result/caas/CloudHelp/cloudhelp/2017/ENU/AutoCAD-NET/files/GUID-C8C65D7A-EC3A-42D8-BF02-4B13C2EA1A4B-htm.html" target="_blank" rel="noopener nofollow noopener noreferrer"&gt;AcadApplication.ActiveDocument.SendCommand (&amp;lt;write your AutoLisp here...&amp;gt;)&lt;/A&gt;&amp;nbsp;as a way to Out-of-process plugin.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Att,&lt;/P&gt;&lt;P&gt;Antonio Leonardo&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="exam-483-programming-in-c.png" style="width: 125px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/643990iE166148305E57416/image-size/small?v=v2&amp;amp;px=200" role="button" title="exam-483-programming-in-c.png" alt="exam-483-programming-in-c.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2019 22:12:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/auto-lisp-comman-net/m-p/8913113#M21825</guid>
      <dc:creator>antonio.leonardo</dc:creator>
      <dc:date>2019-07-16T22:12:31Z</dc:date>
    </item>
  </channel>
</rss>

