<?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: how to call another class with C# in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/how-to-call-another-class-with-c/m-p/10950280#M13644</link>
    <description>&lt;P&gt;I think I couldn't describe the issue good enough. my bad&lt;/P&gt;&lt;P&gt;Ill try to explain with this picture&lt;/P&gt;&lt;P&gt;CleanBlock has 2 classes. one is "CreateSSet". and the Other is "test"&lt;/P&gt;&lt;P&gt;when I load the dll file, the command method "nsvtest" does not work.&lt;/P&gt;&lt;P&gt;I mean it doesnt event show up in the command line. am I&amp;nbsp;missing some thing ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="code.JPG" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1025108i60A1E556DAD11F0A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="code.JPG" alt="code.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 14 Feb 2022 23:52:30 GMT</pubDate>
    <dc:creator>a.kouchakzadeh</dc:creator>
    <dc:date>2022-02-14T23:52:30Z</dc:date>
    <item>
      <title>how to call another class with C#</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-call-another-class-with-c/m-p/10949721#M13642</link>
      <description>&lt;P&gt;Hi every one.&lt;/P&gt;&lt;P&gt;I have right clicked on my project, added another class, assigned a command method to it, but after I loaded it, the method isnt available. am I missing any thing?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Feb 2022 18:39:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-call-another-class-with-c/m-p/10949721#M13642</guid>
      <dc:creator>a.kouchakzadeh</dc:creator>
      <dc:date>2022-02-14T18:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: how to call another class with C#</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-call-another-class-with-c/m-p/10949740#M13643</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Diffucult to diagnose without seeing any code.&lt;/P&gt;
&lt;P&gt;Anyway,&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;a class defining commands must be a 'public' class as the methods decored with the CommandMethod have to be 'public' ;&lt;/LI&gt;
&lt;LI&gt;if the project contains a class decored with the attribute: [assembly: CommandClass(typeof(...))], all the classes in the same project have to decored with a similar attribute.&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Mon, 14 Feb 2022 18:51:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-call-another-class-with-c/m-p/10949740#M13643</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2022-02-14T18:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to call another class with C#</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-call-another-class-with-c/m-p/10950280#M13644</link>
      <description>&lt;P&gt;I think I couldn't describe the issue good enough. my bad&lt;/P&gt;&lt;P&gt;Ill try to explain with this picture&lt;/P&gt;&lt;P&gt;CleanBlock has 2 classes. one is "CreateSSet". and the Other is "test"&lt;/P&gt;&lt;P&gt;when I load the dll file, the command method "nsvtest" does not work.&lt;/P&gt;&lt;P&gt;I mean it doesnt event show up in the command line. am I&amp;nbsp;missing some thing ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="code.JPG" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1025108i60A1E556DAD11F0A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="code.JPG" alt="code.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Feb 2022 23:52:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-call-another-class-with-c/m-p/10950280#M13644</guid>
      <dc:creator>a.kouchakzadeh</dc:creator>
      <dc:date>2022-02-14T23:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: how to call another class with C#</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-call-another-class-with-c/m-p/10950714#M13645</link>
      <description>&lt;P&gt;As I said upper the class where commands are defined have to be &lt;STRONG&gt;public&lt;/STRONG&gt;:&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;public class test
{
    [CommandMethod("nsvtest")]
    // ...
}&lt;/LI-CODE&gt;
&lt;P&gt;It looks like you are missing some .NET/C# basics.&lt;/P&gt;
&lt;P&gt;IMHO, you should not try to program AutoCAD with .NET while you are not comfortable with .NET and C# basics that you may learn outside of AutoCAD.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 06:29:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-call-another-class-with-c/m-p/10950714#M13645</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2022-02-15T06:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: how to call another class with C#</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-call-another-class-with-c/m-p/10950973#M13646</link>
      <description>&lt;P&gt;thank you sir. I didnt pay attention to the class. I was looking at the public void NSVtest()&lt;/P&gt;&lt;P&gt;that is true. Not having a solid background in C# and .NEt is being a challenge. unfortunately I have a limited time for migrating from VBA to .NET and rewriting my programs.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 09:20:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-call-another-class-with-c/m-p/10950973#M13646</guid>
      <dc:creator>a.kouchakzadeh</dc:creator>
      <dc:date>2022-02-15T09:20:48Z</dc:date>
    </item>
  </channel>
</rss>

