<?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: synchronicity, friends, &amp;amp; acedcommand in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/synchronicity-friends-amp-acedcommand/m-p/3483308#M56036</link>
    <description>&lt;P&gt;thanks, it works for commands, but I can't find the right syntax for functions&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i used a workaround, where i defined a command that just calls the function i need&lt;/P&gt;</description>
    <pubDate>Mon, 04 Jun 2012 06:57:46 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-06-04T06:57:46Z</dc:date>
    <item>
      <title>synchronicity, friends, &amp; acedcommand</title>
      <link>https://forums.autodesk.com/t5/net-forum/synchronicity-friends-amp-acedcommand/m-p/3423555#M56025</link>
      <description>&lt;P&gt;I had a VBA routine&amp;nbsp;that worked using SENDCOMMAND.&lt;/P&gt;&lt;P&gt;my VB.NET version does not work using SENDCOMMAND (well, it does work, just not at the right time).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've looking into the problem I have found that SENDCOMMAND is asynchronous in the document context but not in the application context. What does that mean? There is document.editor.SENDCOMMAND, but no application.SENDCOMMAND (or is there?).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I tried using acedcommand (&amp;amp;/or acedcmd) but i'm getting an IDE error saying "AcEdCommand' is not accessible in this context because it is 'Friend' "&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what is the proper syntax or methodology for using acedcommand?&lt;/P&gt;</description>
      <pubDate>Fri, 20 Apr 2012 15:21:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/synchronicity-friends-amp-acedcommand/m-p/3423555#M56025</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-20T15:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: synchronicity, friends, &amp; acedcommand</title>
      <link>https://forums.autodesk.com/t5/net-forum/synchronicity-friends-amp-acedcommand/m-p/3423799#M56026</link>
      <description>&lt;H3 class="entry-header"&gt;&lt;A href="http://adndevblog.typepad.com/autocad/2012/04/synchronously-send-and-wait-for-commands-in-autocad-using-c-net.html" target="_self"&gt;Synchronously Send (and wait for) commands in AutoCAD using C# .NET&lt;/A&gt;&lt;/H3&gt;</description>
      <pubDate>Fri, 20 Apr 2012 17:09:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/synchronicity-friends-amp-acedcommand/m-p/3423799#M56026</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2012-04-20T17:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: synchronicity, friends, &amp; acedcommand</title>
      <link>https://forums.autodesk.com/t5/net-forum/synchronicity-friends-amp-acedcommand/m-p/3423951#M56027</link>
      <description>&lt;P&gt;Thanks for the link, but my C knowledge is very weak, I'm using VB.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what does this do:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas;"&gt;&lt;SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;SPAN&gt;private &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;static &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;extern &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;int &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="color: #010001;"&gt;acedCmd&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="color: #010001;"&gt;System&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="color: #2b91af;"&gt;IntPtr&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="color: #010001;"&gt;vlist&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial black,avant garde"&gt;&lt;SPAN style="font-family: Consolas;"&gt;&lt;SPAN&gt;&lt;SPAN style="color: #000000;"&gt;is it declaring a integer variable named acedcmd? no, not with an arguement. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial black,avant garde"&gt;&lt;SPAN style="font-family: Consolas;"&gt;&lt;SPAN&gt;&lt;SPAN style="color: #000000;"&gt;so is it prototyping a function named acedcmd that has an arguement in the form of a system.intptrvlist type&amp;nbsp;and returns an integer? &amp;amp; the intptrvlist is essentially the list of strings that you want to send?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial black,avant garde"&gt;&lt;SPAN style="font-family: Consolas;"&gt;&lt;SPAN&gt;&lt;SPAN style="color: #000000;"&gt;but isn't acedcmd aldready a function?﻿&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas;"&gt;&lt;SPAN&gt;&lt;SPAN style="color: #000000;"&gt;﻿&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas;"&gt;&lt;SPAN&gt;&lt;SPAN style="color: #000000;"&gt;﻿&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Apr 2012 18:11:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/synchronicity-friends-amp-acedcommand/m-p/3423951#M56027</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-20T18:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: synchronicity, friends, &amp; acedcommand</title>
      <link>https://forums.autodesk.com/t5/net-forum/synchronicity-friends-amp-acedcommand/m-p/3423983#M56028</link>
      <description>&lt;PRE&gt;[DllImport("acad.exe", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.Cdecl, EntryPoint = "acedCmd")]
private static extern int acedCmd(System.IntPtr vlist);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;The whole of the above is the code needed for PInvoke of acedCmd.&amp;nbsp; The attribute (stuff between []) is the import of the command and it decorates the private static extern int acedCmd(System.IntPtr vlist) so the acedCmd is available in your code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The System.IntPtr vlist is actually a result buffer that is created a few lines below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ResultBuffer rb = new ResultBuffer();

  // RTSTR = 5005
 
  rb.Add(new TypedValue(5005, "_.INSERT"));
 
  // start the insert command
 
  acedCmd(rb.UnmanagedObject);&lt;/PRE&gt;&lt;P&gt;After you have the PInvoke and extern&amp;nbsp;declared you can use the&amp;nbsp;acedCmd as above, the result buffer holds a string (code 5005) and in this case the string is the insert command.&amp;nbsp; This is how the acedCmd is used, you&amp;nbsp;cant just send it a string directly, you need to use result buffers.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you look at the documentation for result buffer you will see the different codes and how they work.&amp;nbsp; If you google PInvoke you can get more details on how it works and what exactly is going on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From the documentation the returned int:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="Element10"&gt;The return value of &lt;SPAN&gt;acedCmd()&lt;/SPAN&gt; does not indicate the success or failure of a command. The function usually returns &lt;SPAN&gt;RTNORM&lt;/SPAN&gt;. It returns &lt;SPAN&gt;RTCAN&lt;/SPAN&gt; if the user cancels the command by pressing [Ctrl]+[C] or [Ctrl]+[Break]. It returns &lt;SPAN&gt;RTERROR&lt;/SPAN&gt; or &lt;SPAN&gt;RTREJ&lt;/SPAN&gt; to indicate a failure of undefined origin, not a command failure.&lt;/P&gt;&lt;P class="Element10"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="Element10"&gt;&lt;A target="_blank" href="http://docs.autodesk.com/ACDMAC/2012/ENU/ObjectARX%20Reference/index.html?frmname=topic&amp;amp;frmfile=acedCmd@struct_resbuf__.html"&gt;http://docs.autodesk.com/ACDMAC/2012/ENU/ObjectARX%20Reference/index.html?frmname=topic&amp;amp;frmfile=acedCmd@struct_resbuf__.html&lt;/A&gt;&lt;/P&gt;&lt;P class="Element10"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="Element10"&gt;RTNORM and RTCAN etc are integers defined somewhere else as constants in the ObjectARX files.&amp;nbsp; Not sure off the top of my head where though.&lt;/P&gt;&lt;P class="Element10"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="Element10"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;One more edit, the private static extern int acedCmd(System.IntPtr vlist)&lt;/P&gt;&lt;P&gt;You see the System.IntPtr vlist in there, and from the documentation above you read:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #871f78;"&gt;int&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;SPAN style="color: #660000;"&gt;acedCmd&lt;/SPAN&gt;&lt;/STRONG&gt;(&lt;STRONG&gt;&lt;SPAN style="color: #871f78;"&gt;const&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;SPAN style="color: #871f78;"&gt;struct&lt;/SPAN&gt;&lt;/STRONG&gt; resbuf * &lt;STRONG&gt;&lt;SPAN style="color: #660000;"&gt;rbp&lt;/SPAN&gt;&lt;/STRONG&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="Element247"&gt;Pointer to a result-buffer list, in which each buffer specifies a data item whose value is passed to AutoCAD as if it were entered at the Command prompt&lt;/DIV&gt;&lt;DIV class="Element247"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="Element247"&gt;This is&amp;nbsp;why the System.IntPtr vlist is in the command declaration, the underlying command you are Pinvoke'ing defines it takes a pointer to a result buffer, so this needs to be in the command declaration as it is.&lt;/DIV&gt;</description>
      <pubDate>Fri, 20 Apr 2012 18:35:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/synchronicity-friends-amp-acedcommand/m-p/3423983#M56028</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-20T18:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: synchronicity, friends, &amp; acedcommand</title>
      <link>https://forums.autodesk.com/t5/net-forum/synchronicity-friends-amp-acedcommand/m-p/3424041#M56029</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IMO, you'd rather try to hard code what the native command do.&lt;/P&gt;&lt;P&gt;Most of the time it's more easy than understanding how to P/invoke unmanaged methods and it's a good way to learn the API.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Apr 2012 18:53:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/synchronicity-friends-amp-acedcommand/m-p/3424041#M56029</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2012-04-20T18:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: synchronicity, friends, &amp; acedcommand</title>
      <link>https://forums.autodesk.com/t5/net-forum/synchronicity-friends-amp-acedcommand/m-p/3424453#M56030</link>
      <description>&lt;P&gt;yeah, looks like I might have to. The thing is that I already have a fully functional VBA routine that has a lot going on. To match the funtionality of VPLAYER, I'm going to have to do a great deal of additional work involving searching layertables &amp;amp; retrieving IDs. Just a lot of extra work to replicate something that already works in VBA. + the viewport object's methods don't cover all of the functinality of VPLAYER, therefore I have to write additional alogorithms to replicate the functionality&amp;nbsp;that my&amp;nbsp;VBA routine provided via VPLAYER.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is rather irritating.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;VB.NET, for me, is like using a jet fighter to go to the store to get some beer instead of using&amp;nbsp;a car (VBA), when you have a car that runs &amp;amp; you know how to drive very well, but someone (microsoft) won't let you drive it anymore.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Apr 2012 22:18:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/synchronicity-friends-amp-acedcommand/m-p/3424453#M56030</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-20T22:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: synchronicity, friends, &amp; acedcommand</title>
      <link>https://forums.autodesk.com/t5/net-forum/synchronicity-friends-amp-acedcommand/m-p/3424691#M56032</link>
      <description>&lt;P&gt;I agree.&lt;BR /&gt;By my side, to get some beers at the store, I'd rather use AutoLISP with which you can easily script native commands.&lt;BR /&gt;&lt;BR /&gt;Anyway, here's a little helper to use acedCmd with managed code (inspired by Tony Tanzillo's CommandLine (thanks again to him).&lt;BR /&gt;The Command method build the resultbuffer with the passed arguments.&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#FF9900"&gt;EDIT: with A2013, replace "acad.exe" with "accore.dll" in the DllImport attribute arguments.&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;C#&lt;/P&gt;&lt;PRE&gt;        [System.Security.SuppressUnmanagedCodeSecurity]
        [DllImport("acad.exe", EntryPoint = "acedCmd",
            CharSet = CharSet.Unicode, CallingConvention = CallingConvention.Cdecl)]
        extern static private int acedCmd(IntPtr resbuf);
 
        /// &amp;lt;summary&amp;gt;
        /// Call an AutoCAD command (runs synchronously).
        /// &amp;lt;/summary&amp;gt;
        /// &amp;lt;param name="args"&amp;gt;The command name followed by command inputs.&amp;lt;/param&amp;gt;
        public static void Command(params object[] args)
        {
            ResultBuffer resbuf = new ResultBuffer();
            foreach (object obj in args)
            {
                switch (obj.GetType().Name)
                {
                    case "String":
                        resbuf.Add(new TypedValue((int)LispDataType.Text, obj)); break;
                    case "Int16":
                        resbuf.Add(new TypedValue((int)LispDataType.Int16, obj)); break;
                    case "Int32":
                        resbuf.Add(new TypedValue((int)LispDataType.Int32, obj)); break;
                    case "Double":
                        resbuf.Add(new TypedValue((int)LispDataType.Double, obj)); break;
                    case "Point2d":
                        resbuf.Add(new TypedValue((int)LispDataType.Point2d, obj)); break;
                    case "Point3d":
                        resbuf.Add(new TypedValue((int)LispDataType.Point3d, obj)); break;
                    case "ObjectId":
                        resbuf.Add(new TypedValue((int)LispDataType.ObjectId, obj)); break;
                    case "ObjectId[]":
                        foreach (ObjectId id in (ObjectId[])obj)
                            resbuf.Add(new TypedValue((int)LispDataType.ObjectId, id)); 
                        break;
                    case "ObjectIdCollection":
                        foreach (ObjectId id in (ObjectIdCollection)obj)
                            resbuf.Add(new TypedValue((int)LispDataType.ObjectId, id));
                        break;
                    case "SelectionSetDelayMarshalled":
                    case "SelectionSetFullyMarshalled":
                        resbuf.Add(new TypedValue((int)LispDataType.SelectionSet, obj)); break;
                    default:
                        throw new InvalidOperationException("Unsupported type in Command() method");
                }
            }
            acedCmd(resbuf.UnmanagedObject);
        }&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;VB&lt;/P&gt;&lt;PRE&gt;        &amp;lt;System.Security.SuppressUnmanagedCodeSecurity()&amp;gt; _
        &amp;lt;DllImport("acad.exe", EntryPoint:="acedCmd", CharSet:=CharSet.Unicode, CallingConvention:=CallingConvention.Cdecl)&amp;gt; _
        Private Shared Function acedCmd(resbuf As IntPtr) As Integer
        End Function
 
        '''&amp;lt;summary&amp;gt;
        ''' Call an AutoCAD command (runs synchronously).
        ''' &amp;lt;/summary&amp;gt;
        ''' &amp;lt;param name="args"&amp;gt;The command name followed by command inputs.&amp;lt;/param&amp;gt;
        Public Shared Sub Command(ParamArray args As Object())
            Dim resbuf As New ResultBuffer()
            For Each obj As Object In args
                Select Case obj.GetType().Name
                    Case "String"
                        resbuf.Add(New TypedValue(CInt(LispDataType.Text), obj))
                        Exit Select
                    Case "Int16"
                        resbuf.Add(New TypedValue(CInt(LispDataType.Int16), obj))
                        Exit Select
                    Case "Int32"
                        resbuf.Add(New TypedValue(CInt(LispDataType.Int32), obj))
                        Exit Select
                    Case "Double"
                        resbuf.Add(New TypedValue(CInt(LispDataType.[Double]), obj))
                        Exit Select
                    Case "Point2d"
                        resbuf.Add(New TypedValue(CInt(LispDataType.Point2d), obj))
                        Exit Select
                    Case "Point3d"
                        resbuf.Add(New TypedValue(CInt(LispDataType.Point3d), obj))
                        Exit Select
                    Case "ObjectId"
                        resbuf.Add(New TypedValue(CInt(LispDataType.ObjectId), obj))
                        Exit Select
                    Case "ObjectId[]"
                        For Each id As ObjectId In DirectCast(obj, ObjectId())
                            resbuf.Add(New TypedValue(CInt(LispDataType.ObjectId), id))
                        Next
                        Exit Select
                    Case "ObjectIdCollection"
                        For Each id As ObjectId In DirectCast(obj, ObjectIdCollection)
                            resbuf.Add(New TypedValue(CInt(LispDataType.ObjectId), id))
                        Next
                        Exit Select
                    Case "SelectionSetDelayMarshalled", "SelectionSetFullyMarshalled"
                        resbuf.Add(New TypedValue(CInt(LispDataType.SelectionSet), obj))
                        Exit Select
                    Case Else
                        Throw New InvalidOperationException("Unsupported type in Command() method")
                End Select
            Next
            acedCmd(resbuf.UnmanagedObject)
        End Sub&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using examples (VB):&lt;BR /&gt;&lt;BR /&gt;Draws a line.&lt;/P&gt;&lt;PRE&gt;Command("_.line", New Point3d(10.0, 20.0, 0.0), New Point3d(80.0, 50.0, 0.0), "")&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Freezes the "0" layer in the selected viewport.&lt;/P&gt;&lt;PRE&gt;Command("_.vplayer", "_freeze", "0", "_select", "\", "", "")&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Note:&lt;/P&gt;&lt;P&gt;- an empty string ("") means a validation (Enter)&lt;BR /&gt;- an anti-slash ("\" with VB or "\\" with C#) means a pause for user input.&lt;/P&gt;</description>
      <pubDate>Sat, 21 Apr 2012 08:09:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/synchronicity-friends-amp-acedcommand/m-p/3424691#M56032</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2012-04-21T08:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: synchronicity, friends, &amp; acedcommand</title>
      <link>https://forums.autodesk.com/t5/net-forum/synchronicity-friends-amp-acedcommand/m-p/3430839#M56033</link>
      <description>&lt;P&gt;thank you so much, that works in a very awesome manner.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2012 17:30:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/synchronicity-friends-amp-acedcommand/m-p/3430839#M56033</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-25T17:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: synchronicity, friends, &amp; acedcommand</title>
      <link>https://forums.autodesk.com/t5/net-forum/synchronicity-friends-amp-acedcommand/m-p/3481152#M56034</link>
      <description>&lt;P&gt;how can I use LISP functions or custom commands with that Tony's method?&lt;/P&gt;&lt;P&gt;I can't figure that out&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jun 2012 13:14:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/synchronicity-friends-amp-acedcommand/m-p/3481152#M56034</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-01T13:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: synchronicity, friends, &amp; acedcommand</title>
      <link>https://forums.autodesk.com/t5/net-forum/synchronicity-friends-amp-acedcommand/m-p/3482868#M56035</link>
      <description>&lt;P&gt;If you want to run LISP functions, you'd rather use the Application.Invoke() method (A2011 or later) or P/Invoke the unmanaged acedInvoke() method.&lt;/P&gt;</description>
      <pubDate>Sun, 03 Jun 2012 10:22:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/synchronicity-friends-amp-acedcommand/m-p/3482868#M56035</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2012-06-03T10:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: synchronicity, friends, &amp; acedcommand</title>
      <link>https://forums.autodesk.com/t5/net-forum/synchronicity-friends-amp-acedcommand/m-p/3483308#M56036</link>
      <description>&lt;P&gt;thanks, it works for commands, but I can't find the right syntax for functions&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i used a workaround, where i defined a command that just calls the function i need&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jun 2012 06:57:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/synchronicity-friends-amp-acedcommand/m-p/3483308#M56036</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-04T06:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: synchronicity, friends, &amp; acedcommand</title>
      <link>https://forums.autodesk.com/t5/net-forum/synchronicity-friends-amp-acedcommand/m-p/4872146#M56037</link>
      <description>&lt;P&gt;in 2014, for the Case ObjectId[],&lt;/P&gt;&lt;P&gt;this line is givng a run time error (unsupported type in command() method )"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;resbuf.Add(New TypedValue(CInt(LispDataType.ObjectId), id)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure if this case ever woked in previous versions. This is a for a new routine for civil 3d featurelines&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2014 22:20:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/synchronicity-friends-amp-acedcommand/m-p/4872146#M56037</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-07T22:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: synchronicity, friends, &amp; acedcommand</title>
      <link>https://forums.autodesk.com/t5/net-forum/synchronicity-friends-amp-acedcommand/m-p/4872204#M56038</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tony Tanzillo shared a wrapper for the undocumented runCommand() method which is safer the P/Invoking acedCmd.&lt;/P&gt;
&lt;P&gt;Have a look &lt;A href="https://forums.autodesk.com/t5/NET/Problem-calling-acedCmd/m-p/4752787/highlight/true#M38687" target="_blank"&gt;here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2014 22:43:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/synchronicity-friends-amp-acedcommand/m-p/4872204#M56038</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2014-03-07T22:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: synchronicity, friends, &amp; acedcommand</title>
      <link>https://forums.autodesk.com/t5/net-forum/synchronicity-friends-amp-acedcommand/m-p/4872358#M56039</link>
      <description>&lt;P&gt;so actually my problem was that I was sending a 3d point object to the _aeccbreakfeatureline command, which expects a station, so it nothing to do with the code in question.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Mar 2014 04:45:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/synchronicity-friends-amp-acedcommand/m-p/4872358#M56039</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-08T04:45:00Z</dc:date>
    </item>
  </channel>
</rss>

