<?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: problem with constructor in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/problem-with-constructor/m-p/3934824#M49415</link>
    <description>&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;FONT color="#000000" size="1"&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;Try use&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" size="1"&gt;Autodesk.AutoCAD.ApplicationServices.&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;Application&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" size="1"&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;instead of &lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;Application&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 24 May 2013 07:15:14 GMT</pubDate>
    <dc:creator>Hallex</dc:creator>
    <dc:date>2013-05-24T07:15:14Z</dc:date>
    <item>
      <title>problem with constructor</title>
      <link>https://forums.autodesk.com/t5/net-forum/problem-with-constructor/m-p/3934679#M49414</link>
      <description>&lt;P&gt;I want to inform user the name of command immediately when they netload my dll.&amp;nbsp;I use the constructor like this way:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;public class Control&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public Control()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Editor acDoc = Application.DocumentManager.MdiActiveDocument.Editor;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; acDoc.WriteMessage("Type ABC to start");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [CommandMethod("abc", CommandFlags.UsePickSet)]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void MyForm_start()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MyForm fr = new MyForm();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Application.ShowModalDialog(fr);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But it only write to command line when call abc command. Pls help!&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2013 04:57:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/problem-with-constructor/m-p/3934679#M49414</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-05-24T04:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: problem with constructor</title>
      <link>https://forums.autodesk.com/t5/net-forum/problem-with-constructor/m-p/3934824#M49415</link>
      <description>&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;FONT color="#000000" size="1"&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;Try use&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" size="1"&gt;Autodesk.AutoCAD.ApplicationServices.&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;Application&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" size="1"&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;instead of &lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;Application&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2013 07:15:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/problem-with-constructor/m-p/3934824#M49415</guid>
      <dc:creator>Hallex</dc:creator>
      <dc:date>2013-05-24T07:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: problem with constructor</title>
      <link>https://forums.autodesk.com/t5/net-forum/problem-with-constructor/m-p/3934854#M49416</link>
      <description>&lt;P&gt;Thank you, but it's still not right. I need after user call 'netload' and select my dll file. it will show some information to autocad command line.&lt;/P&gt;&lt;P&gt;Thank again.&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2013 08:00:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/problem-with-constructor/m-p/3934854#M49416</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-05-24T08:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: problem with constructor</title>
      <link>https://forums.autodesk.com/t5/net-forum/problem-with-constructor/m-p/3935039#M49417</link>
      <description>&lt;P&gt;The class that contains your command methods is not constructed until the first time one of the commands is used.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You have to use IExtensionApplication.Initialize() to display a message when your assembly is Netloaded.&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2013 11:25:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/problem-with-constructor/m-p/3935039#M49417</guid>
      <dc:creator>DiningPhilosopher</dc:creator>
      <dc:date>2013-05-24T11:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: problem with constructor</title>
      <link>https://forums.autodesk.com/t5/net-forum/problem-with-constructor/m-p/3935499#M49418</link>
      <description>&lt;P&gt;Thank you so much. I can do it already.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public class Control : Autodesk.AutoCAD.Runtime.IExtensionApplication&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void Initialize()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Editor ed = Application.DocumentManager.MdiActiveDocument.Editor;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ed.WriteMessage("Type ABC to start.");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void Terminate()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Console.WriteLine("Cleaning up...");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [CommandMethod("abc", CommandFlags.UsePickSet)]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void MyForm_start()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;MyForm fr = new MyForm();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Application.ShowModalDialog(fr);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2013 15:39:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/problem-with-constructor/m-p/3935499#M49418</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-05-24T15:39:14Z</dc:date>
    </item>
  </channel>
</rss>

