<?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: CommandFlags.Undefined in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/commandflags-undefined/m-p/1787943#M80148</link>
    <description>Thanks Tony.&lt;BR /&gt;
&lt;BR /&gt;
I was hoping that the CommandMethodAttribute was telling the Autocad application to call addCommand() when the dll was dynamically loaded, and therefore I could limit any commands I defined to a specific "namespace" for use in Autocad.&lt;BR /&gt;
&lt;BR /&gt;
No problem, it's not something I really needed. I'll just prefix all my commands to avoid naming conflicts.</description>
    <pubDate>Wed, 11 Oct 2006 17:34:20 GMT</pubDate>
    <dc:creator>jbooth</dc:creator>
    <dc:date>2006-10-11T17:34:20Z</dc:date>
    <item>
      <title>CommandFlags.Undefined</title>
      <link>https://forums.autodesk.com/t5/net-forum/commandflags-undefined/m-p/1787941#M80146</link>
      <description>I tried applying this flag to one of my commands for Autocad 2006. The documentation states that it forces users to enter the full namespace of the command in order to invoke it.&lt;BR /&gt;
&lt;BR /&gt;
The problem is that even after defining the local, global, and group names I can't get the command to load. I've tried every possible namespace I could think of when entering the command into Autocad. The command works if I do not apply the flag, and typing GroupName.GlobalName into the command line also works - unless I add the Undefined flag.&lt;BR /&gt;
&lt;BR /&gt;
[CommandMethod("group1", "cmd1", CommandFlags.Undefined)] _&lt;BR /&gt;
Public Sub Test()&lt;BR /&gt;
...&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
Has anyone here figured this out?&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
JB&lt;BR /&gt;
&lt;BR /&gt;
ps: I replaced the angle-brackets with regular brackets so it would display properly.</description>
      <pubDate>Tue, 10 Oct 2006 23:21:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/commandflags-undefined/m-p/1787941#M80146</guid>
      <dc:creator>jbooth</dc:creator>
      <dc:date>2006-10-10T23:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: CommandFlags.Undefined</title>
      <link>https://forums.autodesk.com/t5/net-forum/commandflags-undefined/m-p/1787942#M80147</link>
      <description>I don't think that flag has any effect when it is&lt;BR /&gt;
used in the CommandMethod attribute.&lt;BR /&gt;
&lt;BR /&gt;
It's purpose is to store the state that is set by &lt;BR /&gt;
by the UNDEFINE and REDEFINE commands. &lt;BR /&gt;
&lt;BR /&gt;
Be careful with the ARX documentation. Why do you&lt;BR /&gt;
think most people have to pay for the spoon-fed&lt;BR /&gt;
clarifications (a.k.a. Autodesk Developer Network) ?&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
&lt;JASON booth=""&gt; wrote in message news:5357205@discussion.autodesk.com...&lt;BR /&gt;
I tried applying this flag to one of my commands for Autocad 2006. The documentation states that it forces users to enter the full namespace of the command in order to invoke it.&lt;BR /&gt;
&lt;BR /&gt;
The problem is that even after defining the local, global, and group names I can't get the command to load. I've tried every possible namespace I could think of when entering the command into Autocad. The command works if I do not apply the flag, and typing GroupName.GlobalName into the command line also works - unless I add the Undefined flag.&lt;BR /&gt;
&lt;BR /&gt;
[CommandMethod("group1", "cmd1", CommandFlags.Undefined)] _&lt;BR /&gt;
Public Sub Test()&lt;BR /&gt;
...&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
Has anyone here figured this out?&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
JB&lt;BR /&gt;
&lt;BR /&gt;
ps: I replaced the angle-brackets with regular brackets so it would display properly.&lt;/JASON&gt;</description>
      <pubDate>Wed, 11 Oct 2006 16:48:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/commandflags-undefined/m-p/1787942#M80147</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-10-11T16:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: CommandFlags.Undefined</title>
      <link>https://forums.autodesk.com/t5/net-forum/commandflags-undefined/m-p/1787943#M80148</link>
      <description>Thanks Tony.&lt;BR /&gt;
&lt;BR /&gt;
I was hoping that the CommandMethodAttribute was telling the Autocad application to call addCommand() when the dll was dynamically loaded, and therefore I could limit any commands I defined to a specific "namespace" for use in Autocad.&lt;BR /&gt;
&lt;BR /&gt;
No problem, it's not something I really needed. I'll just prefix all my commands to avoid naming conflicts.</description>
      <pubDate>Wed, 11 Oct 2006 17:34:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/commandflags-undefined/m-p/1787943#M80148</guid>
      <dc:creator>jbooth</dc:creator>
      <dc:date>2006-10-11T17:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: CommandFlags.Undefined</title>
      <link>https://forums.autodesk.com/t5/net-forum/commandflags-undefined/m-p/3574384#M80149</link>
      <description>&lt;P&gt;About 6 years too late but...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try enter a single period before the command name, i.e. ".CMD1".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Preceding a command name with a period (.) ensures that the built-in AutoCAD command is accessed, and not an application-defined command of the same name that has been defined to override the built-in command using UNDEFINE.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example if you use the UNDEFINE command on the CIRCLE command, you can still access the command by preceding the command name with a period, i.e. ".CIRCLE".&lt;/P&gt;&lt;P&gt;So it looks like the CommandFlags.Undefined enum automatically undefines the command.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2012 19:12:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/commandflags-undefined/m-p/3574384#M80149</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-10T19:12:10Z</dc:date>
    </item>
  </channel>
</rss>

