<?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: Autocad not seeing Command  Methods in new VB.net class in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/autocad-not-seeing-command-methods-in-new-vb-net-class/m-p/3009838#M61034</link>
    <description>&lt;P&gt;Declaring a Class as a CommandClass tells AutoCAD to look there for command methods and causes AutoCAD to not look anywhere else in that assembly.&amp;nbsp; It is all about loading speed.&lt;/P&gt;</description>
    <pubDate>Mon, 02 May 2011 18:43:16 GMT</pubDate>
    <dc:creator>chiefbraincloud</dc:creator>
    <dc:date>2011-05-02T18:43:16Z</dc:date>
    <item>
      <title>Autocad not seeing Command  Methods in new VB.net class</title>
      <link>https://forums.autodesk.com/t5/net-forum/autocad-not-seeing-command-methods-in-new-vb-net-class/m-p/3005498#M61032</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an exisitng project that I have added a new class to and then inserted the following code for&lt;/P&gt;&lt;P&gt;a new custom command as per the basic tutorial&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; Imports &lt;/SPAN&gt;Autodesk.AutoCAD.Runtime&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue;"&gt;Public Class&lt;/SPAN&gt; Class1&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;lt;CommandMethod(&lt;SPAN style="color: #800000;"&gt;"HelloWorld"&lt;/SPAN&gt;)&amp;gt; _&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; Public Sub&lt;/SPAN&gt; HelloWorld()&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox ("hello")&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; End Sub&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; End Clas&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I debug and netload the solution autocad does not see the new custom command in the new class&lt;/P&gt;&lt;P&gt;but sees the existing commandmethods in older classes. What am I missing?&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Justin Ralston&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2011 21:47:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autocad-not-seeing-command-methods-in-new-vb-net-class/m-p/3005498#M61032</guid>
      <dc:creator>ralstogj</dc:creator>
      <dc:date>2011-04-27T21:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: Autocad not seeing Command  Methods in new VB.net class</title>
      <link>https://forums.autodesk.com/t5/net-forum/autocad-not-seeing-command-methods-in-new-vb-net-class/m-p/3005628#M61033</link>
      <description>&lt;P&gt;Found the problem in the other class from the shipped pipe example&lt;/P&gt;&lt;P&gt;it had a line similar to this with the CommandClass&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[assembly: CommandClass(typeof(Test.Test))]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;which is discussed here&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.theswamp.org/index.php?topic=20708.0" target="_blank" rel="nofollow"&gt;http://www.theswamp.org/index.php?topic=20708.0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;not sure what it does but commented it out and now all the command methods work in all classes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Justin Ralston&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2011 00:38:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autocad-not-seeing-command-methods-in-new-vb-net-class/m-p/3005628#M61033</guid>
      <dc:creator>ralstogj</dc:creator>
      <dc:date>2011-04-28T00:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: Autocad not seeing Command  Methods in new VB.net class</title>
      <link>https://forums.autodesk.com/t5/net-forum/autocad-not-seeing-command-methods-in-new-vb-net-class/m-p/3009838#M61034</link>
      <description>&lt;P&gt;Declaring a Class as a CommandClass tells AutoCAD to look there for command methods and causes AutoCAD to not look anywhere else in that assembly.&amp;nbsp; It is all about loading speed.&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2011 18:43:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autocad-not-seeing-command-methods-in-new-vb-net-class/m-p/3009838#M61034</guid>
      <dc:creator>chiefbraincloud</dc:creator>
      <dc:date>2011-05-02T18:43:16Z</dc:date>
    </item>
  </channel>
</rss>

