<?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: ads_queueexp in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/ads-queueexp/m-p/3423479#M56084</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;
&lt;P&gt;Thank you very much for the help everyone, ;-).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Martin.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;A href="http://forums.autodesk.com/t5/FAQ-How-To-Using-Autodesk/Kudos-New-April-18/td-p/2993368" target="_self"&gt;Kudos&lt;/A&gt; and &lt;A href="http://forums.autodesk.com/t5/FAQ-How-To-Using-Autodesk/Accepted-Solutions/td-p/2701533" target="_self"&gt;Accepted Solutions&lt;/A&gt; will be helpful. &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 20 Apr 2012 14:38:29 GMT</pubDate>
    <dc:creator>Alexander.Rivilis</dc:creator>
    <dc:date>2012-04-20T14:38:29Z</dc:date>
    <item>
      <title>ads_queueexp</title>
      <link>https://forums.autodesk.com/t5/net-forum/ads-queueexp/m-p/3423087#M56079</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;Does anyone know how to get “ads_queueexpr” to work under AutoCAD 2013?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Private Declare Auto Function ads_queueexpr Lib "acad.exe" (ByVal strExpr As String) As Integer&lt;/P&gt;&lt;P&gt;ads_queueexpr("(command""_dtext"" p1 8 0)")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I asked ADN and they said it's now part of "accore.dll"&lt;/P&gt;&lt;P&gt;But I'm still not sure how to reference it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Martin.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Apr 2012 10:02:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/ads-queueexp/m-p/3423087#M56079</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-20T10:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: ads_queueexp</title>
      <link>https://forums.autodesk.com/t5/net-forum/ads-queueexp/m-p/3423111#M56080</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;change the read part (if you are speaking about AutoCAD 2013)&lt;/P&gt;&lt;P&gt;&lt;FONT color="#666699" face="lucida sans unicode,lucida sans"&gt;Private Declare Auto Function ads_queueexpr Lib "&lt;FONT color="#FF6600"&gt;accore.dll&lt;/FONT&gt;" (ByVal strExpr As String) As Integer&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#666699" face="lucida sans unicode,lucida sans"&gt;ads_queueexpr("(command""_dtext"" p1 8 0)")&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- alfred -&lt;/P&gt;</description>
      <pubDate>Fri, 20 Apr 2012 10:24:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/ads-queueexp/m-p/3423111#M56080</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2012-04-20T10:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: ads_queueexp</title>
      <link>https://forums.autodesk.com/t5/net-forum/ads-queueexp/m-p/3423119#M56081</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I feel a little silly for not spotting that ;-).&amp;nbsp; Thanks for the help.&lt;/P&gt;&lt;P&gt;That has helpped, it now sort of works but now I receive this error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A call to PInvoke function &amp;lt;Mydll&amp;gt;::ads_queueexpr' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ADN sent me this code in C#, I write only in VB.net &amp;amp; cou;dn't onvert using one of the on-line converters:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;using&lt;STRONG&gt; &lt;/STRONG&gt;System.Text&lt;STRONG&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[&lt;/STRONG&gt;DllImport&lt;STRONG&gt;(&lt;/STRONG&gt;"accore.dll"&lt;STRONG&gt;, &lt;/STRONG&gt;CharSet&lt;STRONG&gt; &lt;/STRONG&gt;=&lt;STRONG&gt; &lt;/STRONG&gt;CharSet.Ansi&lt;STRONG&gt;, &lt;/STRONG&gt;CallingConvention&lt;STRONG&gt; &lt;/STRONG&gt;=&lt;STRONG&gt; &lt;/STRONG&gt;CallingConvention.Cdecl&lt;STRONG&gt;, &lt;/STRONG&gt;EntryPoint&lt;STRONG&gt; &lt;/STRONG&gt;=&lt;STRONG&gt; &lt;/STRONG&gt;"ads_queueexpr"&lt;STRONG&gt;)]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;extern&lt;STRONG&gt; &lt;/STRONG&gt;static&lt;STRONG&gt; &lt;/STRONG&gt;int&lt;STRONG&gt; &lt;/STRONG&gt;ads_queueexpr&lt;STRONG&gt;(&lt;/STRONG&gt;byte&lt;STRONG&gt;[] &lt;/STRONG&gt;command&lt;STRONG&gt;);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;UnicodeEncoding&lt;STRONG&gt; &lt;/STRONG&gt;uEncode&lt;STRONG&gt; &lt;/STRONG&gt;=&lt;STRONG&gt; &lt;/STRONG&gt;new&lt;STRONG&gt; &lt;/STRONG&gt;UnicodeEncoding&lt;STRONG&gt;();&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;ads_queueexpr&lt;STRONG&gt;(&lt;/STRONG&gt;uEncode.GetBytes&lt;STRONG&gt;(&lt;/STRONG&gt;"(Command \"StartOverrule\")"&lt;STRONG&gt;));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Chers,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Martin.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Apr 2012 10:31:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/ads-queueexp/m-p/3423119#M56081</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-20T10:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: ads_queueexp</title>
      <link>https://forums.autodesk.com/t5/net-forum/ads-queueexp/m-p/3423387#M56082</link>
      <description>&lt;PRE&gt;Imports System
Imports System.Text
Imports System.Runtime.InteropServices
Imports Autodesk.AutoCAD.Runtime
Imports Autodesk.AutoCAD.ApplicationServices
Imports Autodesk.AutoCAD.DatabaseServices
Imports Autodesk.AutoCAD.Geometry
Imports Autodesk.AutoCAD.EditorInput
&amp;lt;Assembly: CommandClass(GetType(AutoCAD_VB_plug_in1.MyCommands))&amp;gt; 
Namespace AutoCAD_VB_plug_in1
    Public Class MyCommands
        &amp;lt;DllImport("accore.dll", CharSet:=CharSet.Ansi, CallingConvention:=CallingConvention.Cdecl, EntryPoint:="ads_queueexpr")&amp;gt;
        Public Shared Function ads_queueexpr(command As Byte()) As Integer
        End Function
        &amp;lt;CommandMethod("MyGroup", "MyCommand", "MyCommandLocal", CommandFlags.Modal)&amp;gt; _
        Public Sub MyCommand() ' This method can have any name
            Dim uEncode As UnicodeEncoding = New UnicodeEncoding
            Call ads_queueexpr(uEncode.GetBytes( _
               "(command " + Chr(34) + "_ZOOM" + Chr(34) + " " + Chr(34) + "_Extents" + Chr(34) + ")"))
        End Sub
    End Class
End Namespace&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Apr 2012 13:58:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/ads-queueexp/m-p/3423387#M56082</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2012-04-20T13:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: ads_queueexp</title>
      <link>https://forums.autodesk.com/t5/net-forum/ads-queueexp/m-p/3423463#M56083</link>
      <description>&lt;P&gt;Thank you very much for the help everyone, ;-).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Martin.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Apr 2012 14:29:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/ads-queueexp/m-p/3423463#M56083</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-20T14:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: ads_queueexp</title>
      <link>https://forums.autodesk.com/t5/net-forum/ads-queueexp/m-p/3423479#M56084</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;
&lt;P&gt;Thank you very much for the help everyone, ;-).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Martin.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;A href="http://forums.autodesk.com/t5/FAQ-How-To-Using-Autodesk/Kudos-New-April-18/td-p/2993368" target="_self"&gt;Kudos&lt;/A&gt; and &lt;A href="http://forums.autodesk.com/t5/FAQ-How-To-Using-Autodesk/Accepted-Solutions/td-p/2701533" target="_self"&gt;Accepted Solutions&lt;/A&gt; will be helpful. &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Apr 2012 14:38:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/ads-queueexp/m-p/3423479#M56084</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2012-04-20T14:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: ads_queueexp</title>
      <link>https://forums.autodesk.com/t5/net-forum/ads-queueexp/m-p/3423503#M56085</link>
      <description>&lt;P&gt;LOL, Done! &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Apr 2012 14:48:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/ads-queueexp/m-p/3423503#M56085</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-20T14:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: ads_queueexp</title>
      <link>https://forums.autodesk.com/t5/net-forum/ads-queueexp/m-p/3424513#M56086</link>
      <description>&lt;P&gt;Hi Martin,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;An alternative to ads_queueexpr for running a command at startup - &lt;A href="http://adndevblog.typepad.com/autocad/2012/04/autoloader-the-startupcommand-parameter.html" target="_blank"&gt;http://adndevblog.typepad.com/autocad/2012/04/autoloader-the-startupcommand-parameter.html&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BTW If you asked this question through ADN support, whoever answered you should have made sure you understood the specific changes required to your code. If you send me a private message with the Case number, I'll check the casenotes and 'educate' &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://forums.autodesk.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt; whoever answered you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Apr 2012 23:49:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/ads-queueexp/m-p/3424513#M56086</guid>
      <dc:creator>StephenPreston</dc:creator>
      <dc:date>2012-04-20T23:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: ads_queueexp</title>
      <link>https://forums.autodesk.com/t5/net-forum/ads-queueexp/m-p/3424715#M56087</link>
      <description>&lt;P&gt;Hi Stephen,&lt;/P&gt;&lt;P&gt;I did get an answer and it was perfect.&amp;nbsp; I was flapping because it was getting close to 5pm, and I didn't know if I would get my answer for the weekend.&amp;nbsp; So no need to put the smack down. ;-).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Martin.&lt;/P&gt;</description>
      <pubDate>Sat, 21 Apr 2012 10:28:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/ads-queueexp/m-p/3424715#M56087</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-21T10:28:15Z</dc:date>
    </item>
  </channel>
</rss>

