<?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: Editor.command in AutoCAD Map 3D Developer Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/editor-command/m-p/6806993#M969</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;What kind of form? modeless form/PaletteSet, which is usually shown from a session command? Or modal form?&lt;/PRE&gt;&lt;P&gt;It's a pallet set shown from a session command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Kumar.&lt;/P&gt;</description>
    <pubDate>Mon, 16 Jan 2017 01:28:36 GMT</pubDate>
    <dc:creator>giskumar</dc:creator>
    <dc:date>2017-01-16T01:28:36Z</dc:date>
    <item>
      <title>Editor.command</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/editor-command/m-p/6800898#M966</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below code is working fine for me&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;[CommandMethod("T")]
        public void T()
        {
            Autodesk.AutoCAD.ApplicationServices.Document doc =
                   Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument;
            Editor ed = doc.Editor;

            List&amp;lt;ObjectId&amp;gt; oidlist = GlobalFunction.SS.ClsSelection.GetEntsOnScreen("*", "*");

            PromptPointResult ppr = ed.GetPoint("");
            Point3d pt1 = ppr.Value;
            ppr = ed.GetPoint("");
            Point3d pt2 = ppr.Value;
            ppr = ed.GetPoint("");
            Point3d pt3 = ppr.Value;
            ppr = ed.GetPoint("");
            Point3d pt4 = ppr.Value;

            try
            {
                ed.Command("_.ALIGN", oidlist[0], "", pt1, pt2, pt3, pt4, "", "Y");
            }
            catch (System.Exception ex)
            {
                MessageBox.Show(ex.Message);
            }

            MessageBox.Show("Hi");
            
            ed.Command("_.Circle", new Point3d(), 1.0);
        }&lt;/PRE&gt;&lt;P&gt;But when i call below line from form button click, it is throwing error invalid input.&lt;/P&gt;&lt;PRE&gt;ed.Command("_.ALIGN", oidlist[0], "", pt1, pt2, pt3, pt4, "", "Y");&lt;/PRE&gt;&lt;P&gt;Any one plese help me where i am doing mistake.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kumar.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2017 12:49:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/editor-command/m-p/6800898#M966</guid>
      <dc:creator>giskumar</dc:creator>
      <dc:date>2017-01-12T12:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: Editor.command</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/editor-command/m-p/6801139#M967</link>
      <description>&lt;P&gt;just Google it - you will find plenty of examples such as&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://stackoverflow.com/questions/29371567/calling-autocad-commands-from-c-net" target="_blank"&gt;http://stackoverflow.com/questions/29371567/calling-autocad-commands-from-c-net&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2017 14:10:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/editor-command/m-p/6801139#M967</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-12T14:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: Editor.command</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/editor-command/m-p/6801211#M968</link>
      <description>&lt;P&gt;What kind of form? modeless form/PaletteSet, which is usually shown from a session command? Or modal form?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Keep in mind, Editor.Command() only works in document context, not in application context.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2017 14:30:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/editor-command/m-p/6801211#M968</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2017-01-12T14:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: Editor.command</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/editor-command/m-p/6806993#M969</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;What kind of form? modeless form/PaletteSet, which is usually shown from a session command? Or modal form?&lt;/PRE&gt;&lt;P&gt;It's a pallet set shown from a session command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Kumar.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2017 01:28:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/editor-command/m-p/6806993#M969</guid>
      <dc:creator>giskumar</dc:creator>
      <dc:date>2017-01-16T01:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: Editor.command</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/editor-command/m-p/6808179#M970</link>
      <description>&lt;P&gt;Therefore, you cannot use Editor.Command().&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, you can use Document.SendStringToExecute(....), where the Document is Application.DocumentManager.MdiActiveDocument.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2017 15:05:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/editor-command/m-p/6808179#M970</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2017-01-16T15:05:11Z</dc:date>
    </item>
  </channel>
</rss>

