<?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: run method created in lisp con c#.net in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/run-method-created-in-lisp-con-c-net/m-p/9069791#M21080</link>
    <description>&lt;DIV class="lia-message-author-with-avatar"&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-Mentor lia-component-message-view-widget-author-username"&gt;&lt;A href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/109424" target="_self"&gt;&lt;SPAN class="login-bold"&gt;_gile&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt; &lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN&gt;Thank you very much for the code and the links.&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-message-author-with-avatar"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="lia-message-author-with-avatar"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="lia-message-author-with-avatar"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="lia-message-author-with-avatar"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="lia-message-author-with-avatar"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="lia-message-author-with-avatar"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="lia-message-author-with-avatar"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="lia-message-author-with-avatar"&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class=""&gt;It is what I was looking for.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-message-author-with-avatar"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="lia-message-author-with-avatar"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="lia-message-author-with-avatar"&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class=""&gt;regards&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;</description>
    <pubDate>Sun, 06 Oct 2019 18:42:10 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-10-06T18:42:10Z</dc:date>
    <item>
      <title>run method created in lisp con c#.net</title>
      <link>https://forums.autodesk.com/t5/net-forum/run-method-created-in-lisp-con-c-net/m-p/9069230#M21078</link>
      <description>&lt;P&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN&gt;Hello everyone&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have created many method in lisp.&lt;/SPAN&gt; &lt;SPAN class=""&gt;And I'm trying to run a method that has as parameters 2 points and a string&lt;/SPAN&gt;&lt;/SPAN&gt;&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="c1.png" style="width: 458px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/684847iA4C522B8B0EB69B5/image-size/large?v=v2&amp;amp;px=999" role="button" title="c1.png" alt="c1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class=""&gt;I am trying to run the function (loaded in autocad) with code in .net&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="c2.png" style="width: 901px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/684849i874672D881BCBFB8/image-size/large?v=v2&amp;amp;px=999" role="button" title="c2.png" alt="c2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN&gt;And I couldn't load the run to the method .&lt;/SPAN&gt; &lt;SPAN class=""&gt;I can only run create method for me that don't need parameters&lt;/SPAN&gt;&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class=""&gt;question&lt;/SPAN&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;BR /&gt;&lt;SPAN&gt;1)Can I call routines with parameters created by me using c # .net code?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;2)What would be the correct way to call?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;regards&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Oct 2019 01:32:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/run-method-created-in-lisp-con-c-net/m-p/9069230#M21078</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-06T01:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: run method created in lisp con c#.net</title>
      <link>https://forums.autodesk.com/t5/net-forum/run-method-created-in-lisp-con-c-net/m-p/9069313#M21079</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You have to use the Application.Invoke() method. See these topics:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/net/unable-to-find-an-entry-point-in-dll-acad-exe/m-p/5527242/highlight/true#M43451" target="_blank"&gt;https://forums.autodesk.com/t5/net/unable-to-find-an-entry-point-in-dll-acad-exe/m-p/5527242/highlight/true#M43451&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/net/how-to-pass-selection-set-to-lisp-command/m-p/8760502#M62469" target="_blank"&gt;https://forums.autodesk.com/t5/net/how-to-pass-selection-set-to-lisp-command/m-p/8760502#M62469&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In you case:&lt;/P&gt;
&lt;PRE&gt;            var args = new ResultBuffer(
                new TypedValue((int)LispDataType.Text, "c:wrapper_draw_pl"),
                new TypedValue((int)LispDataType.Point3d, new Point3d(-11452.0, 3197.0, 0.0)),
                new TypedValue((int)LispDataType.Point3d, new Point3d(-11452.0, 3297.0, 0.0)),
                new TypedValue((int)LispDataType.Text, "A"));
            Application.Invoke(args);&lt;/PRE&gt;
&lt;P&gt;But attentively read &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/253793"&gt;@dgorsman&lt;/a&gt; 's advice here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/net/call-autolisp-function-from-c-code/td-p/5521845" target="_blank"&gt;https://forums.autodesk.com/t5/net/call-autolisp-function-from-c-code/td-p/5521845&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Oct 2019 05:49:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/run-method-created-in-lisp-con-c-net/m-p/9069313#M21079</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2019-10-06T05:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: run method created in lisp con c#.net</title>
      <link>https://forums.autodesk.com/t5/net-forum/run-method-created-in-lisp-con-c-net/m-p/9069791#M21080</link>
      <description>&lt;DIV class="lia-message-author-with-avatar"&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-Mentor lia-component-message-view-widget-author-username"&gt;&lt;A href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/109424" target="_self"&gt;&lt;SPAN class="login-bold"&gt;_gile&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt; &lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN&gt;Thank you very much for the code and the links.&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-message-author-with-avatar"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="lia-message-author-with-avatar"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="lia-message-author-with-avatar"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="lia-message-author-with-avatar"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="lia-message-author-with-avatar"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="lia-message-author-with-avatar"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="lia-message-author-with-avatar"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="lia-message-author-with-avatar"&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class=""&gt;It is what I was looking for.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-message-author-with-avatar"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="lia-message-author-with-avatar"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="lia-message-author-with-avatar"&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class=""&gt;regards&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 06 Oct 2019 18:42:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/run-method-created-in-lisp-con-c-net/m-p/9069791#M21080</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-06T18:42:10Z</dc:date>
    </item>
  </channel>
</rss>

