<?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: vb.net routine - autocad says unkown command in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/vb-net-routine-autocad-says-unkown-command/m-p/3357239#M57033</link>
    <description>&lt;P&gt;that worked.&lt;/P&gt;&lt;P&gt;what is it? why?&lt;/P&gt;&lt;P&gt;I don't have that in any other projects that work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanls.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would have NEVER figured that out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;also, useful tip for anyone out there (maybe):&lt;/P&gt;&lt;P&gt;I set option strict&amp;nbsp; = ON, &amp;amp; a lot of errors revealed themselves.&lt;/P&gt;&lt;P&gt;I've been leaving it off because there always ends up being at least one thing I can't resolve, like with this program there was one late binding error (keep in mind I haven't begun to debug this yet since I haven't yet been able to enter my command in autocad to start the process):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#0000ff" face="Consolas"&gt;&lt;FONT size="2" color="#0000ff" face="Consolas"&gt;&lt;FONT size="2" color="#0000ff" face="Consolas"&gt;For&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff" face="Consolas"&gt;&lt;FONT size="2" color="#0000ff" face="Consolas"&gt;&lt;FONT size="2" color="#0000ff" face="Consolas"&gt;Each&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; Ent &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff" face="Consolas"&gt;&lt;FONT size="2" color="#0000ff" face="Consolas"&gt;&lt;FONT size="2" color="#0000ff" face="Consolas"&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff" face="Consolas"&gt;&lt;FONT size="2" color="#0000ff" face="Consolas"&gt;&lt;FONT size="2" color="#0000ff" face="Consolas"&gt;Object&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff" face="Consolas"&gt;&lt;FONT size="2" color="#0000ff" face="Consolas"&gt;&lt;FONT size="2" color="#0000ff" face="Consolas"&gt;In&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#2b91af" face="Consolas"&gt;&lt;FONT size="2" color="#2b91af" face="Consolas"&gt;&lt;FONT size="2" color="#2b91af" face="Consolas"&gt;ACF&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;.ThisDrawing.PaperSpace&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#0000ff" face="Consolas"&gt;&lt;FONT size="2" color="#0000ff" face="Consolas"&gt;&lt;FONT size="2" color="#0000ff" face="Consolas"&gt;If&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; Ent.ObjectName = &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#a31515" face="Consolas"&gt;&lt;FONT size="2" color="#a31515" face="Consolas"&gt;&lt;FONT size="2" color="#a31515" face="Consolas"&gt;"AcDbViewport"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff" face="Consolas"&gt;&lt;FONT size="2" color="#0000ff" face="Consolas"&gt;&lt;FONT size="2" color="#0000ff" face="Consolas"&gt;Then&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#0000ff" face="Consolas"&gt;&lt;FONT size="2" color="#0000ff" face="Consolas"&gt;&lt;FONT size="2" color="#0000ff" face="Consolas"&gt;....&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 04 Mar 2012 04:08:37 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-03-04T04:08:37Z</dc:date>
    <item>
      <title>vb.net routine - autocad says unkown command</title>
      <link>https://forums.autodesk.com/t5/net-forum/vb-net-routine-autocad-says-unkown-command/m-p/3357179#M57031</link>
      <description>&lt;P&gt;I have no idea why autocad 2012&amp;nbsp;refuses to load this, or it is loading it but something else is causing the command to not be known.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have no errors in visual studio &amp;amp; I get no errors when I netload.&lt;/P&gt;&lt;P&gt;I'm sure there are logic&amp;nbsp;errors since I haven't been able to debug this yet (migrating it from VBA to VB.NET)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any help would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the start point / command is in Class2 in vbLayerGroupController&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ACF &amp;amp; ACGen contain functions called by my routine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;While trying to figure this out, as a test, I had created a new class with a generic msgbox command within this project &amp;amp; it worked (I removed it now), so there is something in here that autocad doesn't like.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Mar 2012 22:46:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/vb-net-routine-autocad-says-unkown-command/m-p/3357179#M57031</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-03T22:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: vb.net routine - autocad says unkown command</title>
      <link>https://forums.autodesk.com/t5/net-forum/vb-net-routine-autocad-says-unkown-command/m-p/3357215#M57032</link>
      <description>&lt;P&gt;In your class2.vb file, add this line after the "Imports..." instruction&amp;nbsp;and before the class LayerGroupController, like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Imports Autodesk...&lt;/P&gt;&lt;P&gt;Imports .....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;Assembly: CommandClass(GetType(LayerGroupController))&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Class LayerGroupController&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;CommandMethod("LKK")&amp;gt;_&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Public Sub LayerGroupController()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EndClass&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Mar 2012 02:47:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/vb-net-routine-autocad-says-unkown-command/m-p/3357215#M57032</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2012-03-04T02:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: vb.net routine - autocad says unkown command</title>
      <link>https://forums.autodesk.com/t5/net-forum/vb-net-routine-autocad-says-unkown-command/m-p/3357239#M57033</link>
      <description>&lt;P&gt;that worked.&lt;/P&gt;&lt;P&gt;what is it? why?&lt;/P&gt;&lt;P&gt;I don't have that in any other projects that work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanls.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would have NEVER figured that out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;also, useful tip for anyone out there (maybe):&lt;/P&gt;&lt;P&gt;I set option strict&amp;nbsp; = ON, &amp;amp; a lot of errors revealed themselves.&lt;/P&gt;&lt;P&gt;I've been leaving it off because there always ends up being at least one thing I can't resolve, like with this program there was one late binding error (keep in mind I haven't begun to debug this yet since I haven't yet been able to enter my command in autocad to start the process):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#0000ff" face="Consolas"&gt;&lt;FONT size="2" color="#0000ff" face="Consolas"&gt;&lt;FONT size="2" color="#0000ff" face="Consolas"&gt;For&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff" face="Consolas"&gt;&lt;FONT size="2" color="#0000ff" face="Consolas"&gt;&lt;FONT size="2" color="#0000ff" face="Consolas"&gt;Each&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; Ent &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff" face="Consolas"&gt;&lt;FONT size="2" color="#0000ff" face="Consolas"&gt;&lt;FONT size="2" color="#0000ff" face="Consolas"&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff" face="Consolas"&gt;&lt;FONT size="2" color="#0000ff" face="Consolas"&gt;&lt;FONT size="2" color="#0000ff" face="Consolas"&gt;Object&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff" face="Consolas"&gt;&lt;FONT size="2" color="#0000ff" face="Consolas"&gt;&lt;FONT size="2" color="#0000ff" face="Consolas"&gt;In&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#2b91af" face="Consolas"&gt;&lt;FONT size="2" color="#2b91af" face="Consolas"&gt;&lt;FONT size="2" color="#2b91af" face="Consolas"&gt;ACF&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;.ThisDrawing.PaperSpace&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#0000ff" face="Consolas"&gt;&lt;FONT size="2" color="#0000ff" face="Consolas"&gt;&lt;FONT size="2" color="#0000ff" face="Consolas"&gt;If&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; Ent.ObjectName = &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#a31515" face="Consolas"&gt;&lt;FONT size="2" color="#a31515" face="Consolas"&gt;&lt;FONT size="2" color="#a31515" face="Consolas"&gt;"AcDbViewport"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff" face="Consolas"&gt;&lt;FONT size="2" color="#0000ff" face="Consolas"&gt;&lt;FONT size="2" color="#0000ff" face="Consolas"&gt;Then&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#0000ff" face="Consolas"&gt;&lt;FONT size="2" color="#0000ff" face="Consolas"&gt;&lt;FONT size="2" color="#0000ff" face="Consolas"&gt;....&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Mar 2012 04:08:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/vb-net-routine-autocad-says-unkown-command/m-p/3357239#M57033</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-04T04:08:37Z</dc:date>
    </item>
  </channel>
</rss>

