<?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: print a message on load to public the name of the command in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/print-a-message-on-load-to-public-the-name-of-the-command/m-p/5634278#M40130</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Initialize() method is run as soon as the app is loaded, for some tasks, it will be a better way to wait for the AutoCAD initialization complete which can be done using the Application.Idle event.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyway, in my opinion, the best way to uderstand this is to make some simple tests by yourself:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;using Autodesk.AutoCAD.ApplicationServices;
using Autodesk.AutoCAD.Runtime;
using System;
using System.Windows.Forms;
using AcAp = Autodesk.AutoCAD.ApplicationServices.Application;

[assembly: ExtensionApplication(typeof(ExtensionApplicationTest.TestApp))]

namespace ExtensionApplicationTest
{
    public class TestApp : IExtensionApplication
    {
        public void Initialize()
        {
            MessageBox.Show("Initialize", "Test", MessageBoxButtons.OK, MessageBoxIcon.Information);
            AcAp.Idle += OnIdle;
        }

        void OnIdle(object sender, EventArgs e)
        {
            AcAp.Idle -= OnIdle;
            MessageBox.Show("Idle", "Test", MessageBoxButtons.OK, MessageBoxIcon.Information);
        }

        public void Terminate()
        {
            MessageBox.Show("Terminate", "Test", MessageBoxButtons.OK, MessageBoxIcon.Information);
        }
    }
}
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Depending on how the application loads, you'd see when Initialize and OnIdle occur (you'd also see that Terminate never occurs in AutoCAD...).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use the attached plugin to test what happens with the Autoloader mechanism (unblock the ZIP file if neessary and extract the ExtensionApplicationTest.bundle folder in %appdata%\Autodesk\ApplicationPlugins).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 14 May 2015 08:44:29 GMT</pubDate>
    <dc:creator>_gile</dc:creator>
    <dc:date>2015-05-14T08:44:29Z</dc:date>
    <item>
      <title>print a message on load to public the name of the command</title>
      <link>https://forums.autodesk.com/t5/net-forum/print-a-message-on-load-to-public-the-name-of-the-command/m-p/5632919#M40121</link>
      <description>&lt;P&gt;Hi guys ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to write a simple codes to print a message at the command line after loading the .dll file to inform the user about the command name , but&amp;nbsp;&lt;/P&gt;&lt;P&gt;I failed and my codes bring an error message .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone help me please ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;namespace AutoCAD_Test
{
    public class MyCommands
    {
        Document doc = Application.DocumentManager.MdiActiveDocument;
        Editor ed = doc.Editor;
        ed.WriteMessage("\nCommand name is &amp;lt;Test&amp;gt; :");  

        [CommandMethod("Test")]
        public static void one()
        {
        }
    }
}&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 May 2015 13:25:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/print-a-message-on-load-to-public-the-name-of-the-command/m-p/5632919#M40121</guid>
      <dc:creator>J-Rocks</dc:creator>
      <dc:date>2015-05-13T13:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: print a message on load to public the name of the command</title>
      <link>https://forums.autodesk.com/t5/net-forum/print-a-message-on-load-to-public-the-name-of-the-command/m-p/5633076#M40122</link>
      <description>&lt;P&gt;Try with this code.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://through-the-interface.typepad.com/through_the_interface/2006/09/initialization_.html" target="_blank"&gt;http://through-the-interface.typepad.com/through_the_interface/2006/09/initialization_.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2015 14:20:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/print-a-message-on-load-to-public-the-name-of-the-command/m-p/5633076#M40122</guid>
      <dc:creator>Ajilal.Vijayan</dc:creator>
      <dc:date>2015-05-13T14:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: print a message on load to public the name of the command</title>
      <link>https://forums.autodesk.com/t5/net-forum/print-a-message-on-load-to-public-the-name-of-the-command/m-p/5633169#M40123</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That codes shows the message after calling the command name and that's not what I am after .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to see a message telling the user about the name of the program to run straight after calling the load command NETLOAD .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2015 14:59:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/print-a-message-on-load-to-public-the-name-of-the-command/m-p/5633169#M40123</guid>
      <dc:creator>J-Rocks</dc:creator>
      <dc:date>2015-05-13T14:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: print a message on load to public the name of the command</title>
      <link>https://forums.autodesk.com/t5/net-forum/print-a-message-on-load-to-public-the-name-of-the-command/m-p/5633209#M40124</link>
      <description>&lt;P&gt;It appears that you're using the plugin template and it has a MyPlugin class. Put your WriteMessage statement in the MyPlugin.Initialize event. It is already created for you.&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2015 15:15:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/print-a-message-on-load-to-public-the-name-of-the-command/m-p/5633209#M40124</guid>
      <dc:creator>Ed__Jobe</dc:creator>
      <dc:date>2015-05-13T15:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: print a message on load to public the name of the command</title>
      <link>https://forums.autodesk.com/t5/net-forum/print-a-message-on-load-to-public-the-name-of-the-command/m-p/5633237#M40125</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@eljobe wrote:&lt;BR /&gt;&lt;P&gt;It appears that you're using the plugin template and it has a MyPlugin class. Put your WriteMessage statement in the MyPlugin.Initialize event. It is already created for you.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Correct I am using the AutoCAd plugin and usually I delete the MyPlugin and keep the MyCommands file to work only on one file .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did not get your point , can you please clarify it more ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2015 15:30:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/print-a-message-on-load-to-public-the-name-of-the-command/m-p/5633237#M40125</guid>
      <dc:creator>J-Rocks</dc:creator>
      <dc:date>2015-05-13T15:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: print a message on load to public the name of the command</title>
      <link>https://forums.autodesk.com/t5/net-forum/print-a-message-on-load-to-public-the-name-of-the-command/m-p/5633272#M40126</link>
      <description>&lt;P&gt;If you've deleted it, you can add a new class file to your project and paste this code into it. Then put your code where it says "Initialize your plug-in application here". Don't forget to change the namespace to match what you have in MyCommands.&lt;/P&gt;&lt;PRE&gt;// (C) Copyright 2002-2009 by Autodesk, Inc. 
//
// Permission to use, copy, modify, and distribute this software in
// object code form for any purpose and without fee is hereby granted, 
// provided that the above copyright notice appears in all copies and 
// that both that copyright notice and the limited warranty and
// restricted rights notice below appear in all supporting 
// documentation.
//
// AUTODESK PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS. 
// AUTODESK SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
// MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE.  AUTODESK, INC. 
// DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
// UNINTERRUPTED OR ERROR FREE.
//
// Use, duplication, or disclosure by the U.S. Government is subject to 
// restrictions set forth in FAR 52.227-19 (Commercial Computer
// Software - Restricted Rights) and DFAR 252.227-7013(c)(1)(ii)
// (Rights in Technical Data and Computer Software), as applicable.
//
using System;
using Autodesk.AutoCAD.ApplicationServices;
using Autodesk.AutoCAD.DatabaseServices;
using Autodesk.AutoCAD.EditorInput;
using Autodesk.AutoCAD.Geometry;
using Autodesk.AutoCAD.Runtime;

// This line is not mandatory, but improves loading performances
[assembly: ExtensionApplication(typeof(TID_.MyPlugin))]

namespace TID_
{

    /// This class is instantiated by AutoCAD once and kept alive for the 
    /// duration of the session. If you don't do any one time initialization 
    /// then you should remove this class.

    public class MyPlugin : IExtensionApplication
    {

        void IExtensionApplication.Initialize()
        {
            // Add one time initialization here
            // One common scenario is to setup a callback function here that 
            // unmanaged code can call. 
            // To do this:
            // 1. Export a function from unmanaged code that takes a function
            //    pointer and stores the passed in value in a global variable.
            // 2. Call this exported function in this function passing delegate.
            // 3. When unmanaged code needs the services of this managed module
            //    you simply call acrxLoadApp() and by the time acrxLoadApp 
            //    returns  global function pointer is initialized to point to
            //    the C# delegate.
            // For more info see: 
            // http://msdn2.microsoft.com/en-US/library/5zwkzwf4(VS.80).aspx
            // http://msdn2.microsoft.com/en-us/library/44ey4b32(VS.80).aspx
            // http://msdn2.microsoft.com/en-US/library/7esfatk4.aspx
            // as well as some of the existing AutoCAD managed apps.

            // Initialize your plug-in application here

        }

        void IExtensionApplication.Terminate()
        {
            // Do plug-in application clean up here
        }

    }

}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2015 16:07:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/print-a-message-on-load-to-public-the-name-of-the-command/m-p/5633272#M40126</guid>
      <dc:creator>Ed__Jobe</dc:creator>
      <dc:date>2015-05-13T16:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: print a message on load to public the name of the command</title>
      <link>https://forums.autodesk.com/t5/net-forum/print-a-message-on-load-to-public-the-name-of-the-command/m-p/5633357#M40127</link>
      <description>&lt;P&gt;Nice , that works very well .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is for we can use the Terminate function in that inherited interface IExtensionApplication to MyPlugin ?&lt;/P&gt;&lt;P&gt;If you have any example , it would be great .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2015 16:29:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/print-a-message-on-load-to-public-the-name-of-the-command/m-p/5633357#M40127</guid>
      <dc:creator>J-Rocks</dc:creator>
      <dc:date>2015-05-13T16:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: print a message on load to public the name of the command</title>
      <link>https://forums.autodesk.com/t5/net-forum/print-a-message-on-load-to-public-the-name-of-the-command/m-p/5633918#M40128</link>
      <description>&lt;P&gt;Thats useful when dealing with resource management, but isn't all that common with more mundane, day-to-day functions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Consider that you might be connected to a database in real-time.&amp;nbsp; The initialize method would establish the connection, do some initial auditing, record locking, and so on.&amp;nbsp; When&amp;nbsp;you are finished you may want to ensure the connection is closed/released, possibly signalling other applications that changes are complete and they are clear to use it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another example may be a custom licensing method.&amp;nbsp; The initialize method would check out a license if available, or lock out functions if not.&amp;nbsp; When done any checked out license would be released.&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2015 21:48:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/print-a-message-on-load-to-public-the-name-of-the-command/m-p/5633918#M40128</guid>
      <dc:creator>dgorsman</dc:creator>
      <dc:date>2015-05-13T21:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: print a message on load to public the name of the command</title>
      <link>https://forums.autodesk.com/t5/net-forum/print-a-message-on-load-to-public-the-name-of-the-command/m-p/5634124#M40129</link>
      <description>&lt;P&gt;Thank you dgorsman for you reply .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can I say that the &lt;STRONG&gt;I&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;nitialize&lt;/STRONG&gt; method is to start&amp;nbsp;immediately as soon as the program being loaded and just before the command name is called ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Also , can I say that the &lt;STRONG&gt;Terminate&lt;/STRONG&gt; method works like error handler intervenes to assure&amp;nbsp;closing , ending a process .... etc ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regard.&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2015 04:39:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/print-a-message-on-load-to-public-the-name-of-the-command/m-p/5634124#M40129</guid>
      <dc:creator>J-Rocks</dc:creator>
      <dc:date>2015-05-14T04:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: print a message on load to public the name of the command</title>
      <link>https://forums.autodesk.com/t5/net-forum/print-a-message-on-load-to-public-the-name-of-the-command/m-p/5634278#M40130</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Initialize() method is run as soon as the app is loaded, for some tasks, it will be a better way to wait for the AutoCAD initialization complete which can be done using the Application.Idle event.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyway, in my opinion, the best way to uderstand this is to make some simple tests by yourself:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;using Autodesk.AutoCAD.ApplicationServices;
using Autodesk.AutoCAD.Runtime;
using System;
using System.Windows.Forms;
using AcAp = Autodesk.AutoCAD.ApplicationServices.Application;

[assembly: ExtensionApplication(typeof(ExtensionApplicationTest.TestApp))]

namespace ExtensionApplicationTest
{
    public class TestApp : IExtensionApplication
    {
        public void Initialize()
        {
            MessageBox.Show("Initialize", "Test", MessageBoxButtons.OK, MessageBoxIcon.Information);
            AcAp.Idle += OnIdle;
        }

        void OnIdle(object sender, EventArgs e)
        {
            AcAp.Idle -= OnIdle;
            MessageBox.Show("Idle", "Test", MessageBoxButtons.OK, MessageBoxIcon.Information);
        }

        public void Terminate()
        {
            MessageBox.Show("Terminate", "Test", MessageBoxButtons.OK, MessageBoxIcon.Information);
        }
    }
}
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Depending on how the application loads, you'd see when Initialize and OnIdle occur (you'd also see that Terminate never occurs in AutoCAD...).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use the attached plugin to test what happens with the Autoloader mechanism (unblock the ZIP file if neessary and extract the ExtensionApplicationTest.bundle folder in %appdata%\Autodesk\ApplicationPlugins).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2015 08:44:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/print-a-message-on-load-to-public-the-name-of-the-command/m-p/5634278#M40130</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2015-05-14T08:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: print a message on load to public the name of the command</title>
      <link>https://forums.autodesk.com/t5/net-forum/print-a-message-on-load-to-public-the-name-of-the-command/m-p/5634425#M40131</link>
      <description>&lt;P&gt;Thank you gile for the practical example , its clear enough to me but I still wonder when the Terminate method would not run ! and since that is not needed, why it is included in the Interface then in the class ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have added a few codes to your example to test that out and I released that the Test command is unknown in Autocad hahaha strange to me , can you please tell me why ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;using Autodesk.AutoCAD.ApplicationServices;
using Autodesk.AutoCAD.Runtime;
using System;
using System.Windows.Forms;
using AcAp = Autodesk.AutoCAD.ApplicationServices.Application;

[assembly: ExtensionApplication(typeof(ExtensionApplicationTest.TestApp))]

namespace ExtensionApplicationTest
{
    public class TestApp : IExtensionApplication
    {
        public void Initialize()
        {
            MessageBox.Show("Initialize", "Test", MessageBoxButtons.OK, MessageBoxIcon.Information);
            AcAp.Idle += OnIdle;
            AcAp.EnterModal += AnotherMessage;
        }
         void OnIdle(object sender, EventArgs e)
        {
            AcAp.Idle -= OnIdle;
            MessageBox.Show("Idle", "Test", MessageBoxButtons.OK, MessageBoxIcon.Information);
        }
         void AnotherMessage(object s, EventArgs e)
         {
             AcAp.EnterModal -= AnotherMessage;
             MessageBox.Show("Another test is here .", "2nd");
         }
         
         public void Terminate()
         {
             MessageBox.Show("Terminate", "Test", MessageBoxButtons.OK, MessageBoxIcon.Information);
         }

         [CommandMethod("Test")]
         public void justTest()
         {
             MessageBox.Show("Just a simple test.");
         }
    }
}&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 May 2015 11:32:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/print-a-message-on-load-to-public-the-name-of-the-command/m-p/5634425#M40131</guid>
      <dc:creator>J-Rocks</dc:creator>
      <dc:date>2015-05-14T11:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: print a message on load to public the name of the command</title>
      <link>https://forums.autodesk.com/t5/net-forum/print-a-message-on-load-to-public-the-name-of-the-command/m-p/5634546#M40132</link>
      <description>&lt;P&gt;The Terminate() method is run after AutoCAD closed (that's why I said it "never occurs in AutoCAD").&lt;/P&gt;
&lt;P&gt;As dgorsman said, it can be use to release external resources, close a connection to a database...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I cannot say why the TEST command is unknown for you (it works fine here). &lt;/P&gt;
&lt;P&gt;You can try to remove the ExtensionApplication attribute after the using directives ("This line is not mandatory, but improves loading performances").&lt;/P&gt;
&lt;P&gt;Or add a CommandClass one pointing on a Commands class which may contain the commands methods (this can be prefereably done in a separate file or in the same one as below):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;using Autodesk.AutoCAD.ApplicationServices;
using Autodesk.AutoCAD.Runtime;
using System;
using System.Windows.Forms;
using AcAp = Autodesk.AutoCAD.ApplicationServices.Application;
&lt;BR /&gt;// These lines are not mandatory, but improve loading performances
[assembly: ExtensionApplication(typeof(ExtensionApplicationTest.TestApp))]
[assembly: CommandClass(typeof(ExtensionApplicationTest.Commands))]

namespace ExtensionApplicationTest
{
    public class TestApp : IExtensionApplication
    {
        public void Initialize()
        {
            MessageBox.Show("Initialize", "Test", MessageBoxButtons.OK, MessageBoxIcon.Information);
            AcAp.Idle += OnIdle;
        }

        void OnIdle(object sender, EventArgs e)
        {
            AcAp.Idle -= OnIdle;
            MessageBox.Show("Idle", "Test", MessageBoxButtons.OK, MessageBoxIcon.Information);
        }

        public void Terminate()
        {
            MessageBox.Show("Terminate", "Test", MessageBoxButtons.OK, MessageBoxIcon.Information);
        }
    }

    public class Commands
    {
        [CommandMethod("Test")]
        public void justTest()
        {
            MessageBox.Show("Just a simple test.");
        }
    }
}
&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 May 2015 12:51:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/print-a-message-on-load-to-public-the-name-of-the-command/m-p/5634546#M40132</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2015-05-14T12:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: print a message on load to public the name of the command</title>
      <link>https://forums.autodesk.com/t5/net-forum/print-a-message-on-load-to-public-the-name-of-the-command/m-p/5634568#M40133</link>
      <description>&lt;P&gt;Thank you gile that works like a charm and your explanations with codes turns the shade into light .&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2015 13:03:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/print-a-message-on-load-to-public-the-name-of-the-command/m-p/5634568#M40133</guid>
      <dc:creator>J-Rocks</dc:creator>
      <dc:date>2015-05-14T13:03:01Z</dc:date>
    </item>
  </channel>
</rss>

