<?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: CommandMethod CommandFlags default in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/commandmethod-commandflags-default/m-p/11755809#M9958</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;As far as I know The CommandFlags default is 0 (i.e. CommandFlags.Modal).&lt;/P&gt;
&lt;P&gt;See the docs for &lt;A href="https://help.autodesk.com/view/OARX/2023/ENU/?guid=OARX-ManagedRefGuide-Autodesk_AutoCAD_Runtime_CommandFlags" target="_blank" rel="noopener"&gt;CommandFlags Enumeration (.NET)&lt;/A&gt; and &lt;A href="https://help.autodesk.com/view/OARX/2023/ENU/?guid=OARX-RefGuide-AcEdCommand__commandFlags" target="_blank" rel="noopener"&gt;AcEdCommand::commandFlags (C++)&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Wed, 15 Feb 2023 07:49:10 GMT</pubDate>
    <dc:creator>_gile</dc:creator>
    <dc:date>2023-02-15T07:49:10Z</dc:date>
    <item>
      <title>CommandMethod CommandFlags default</title>
      <link>https://forums.autodesk.com/t5/net-forum/commandmethod-commandflags-default/m-p/11755734#M9957</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Do you know the default CommandFlags of this simple command [CommandMethod("myCommandName")] ?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to extend commands with helpfile, so I need to specify CommandFlags like this&lt;/P&gt;&lt;P&gt;[CommandMethod(null, "myCommand", null, commandFlags, null, "myHelpFile.chm", "")].&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2023 06:56:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/commandmethod-commandflags-default/m-p/11755734#M9957</guid>
      <dc:creator>pfluegge30167</dc:creator>
      <dc:date>2023-02-15T06:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: CommandMethod CommandFlags default</title>
      <link>https://forums.autodesk.com/t5/net-forum/commandmethod-commandflags-default/m-p/11755809#M9958</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;As far as I know The CommandFlags default is 0 (i.e. CommandFlags.Modal).&lt;/P&gt;
&lt;P&gt;See the docs for &lt;A href="https://help.autodesk.com/view/OARX/2023/ENU/?guid=OARX-ManagedRefGuide-Autodesk_AutoCAD_Runtime_CommandFlags" target="_blank" rel="noopener"&gt;CommandFlags Enumeration (.NET)&lt;/A&gt; and &lt;A href="https://help.autodesk.com/view/OARX/2023/ENU/?guid=OARX-RefGuide-AcEdCommand__commandFlags" target="_blank" rel="noopener"&gt;AcEdCommand::commandFlags (C++)&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2023 07:49:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/commandmethod-commandflags-default/m-p/11755809#M9958</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2023-02-15T07:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: CommandMethod CommandFlags default</title>
      <link>https://forums.autodesk.com/t5/net-forum/commandmethod-commandflags-default/m-p/11755823#M9959</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;[AttributeUsage(AttributeTargets.Method, AllowMultiple=true, Inherited=false)]
public sealed class CommandMethodAttribute : Attribute, ICommandLineCallable
{
    // Methods
    public CommandMethodAttribute(string globalName);
    public CommandMethodAttribute(string globalName, CommandFlags flags);
    public CommandMethodAttribute(string groupName, string globalName, CommandFlags flags);
    public CommandMethodAttribute(string groupName, string globalName, string localizedNameId, CommandFlags flags);
    public CommandMethodAttribute(string groupName, string globalName, string localizedNameId, CommandFlags flags, string helpTopic);
    public CommandMethodAttribute(string groupName, string globalName, string localizedNameId, CommandFlags flags, Type contextMenuExtensionType);
    public CommandMethodAttribute(string groupName, string globalName, string localizedNameId, CommandFlags flags, Type contextMenuExtensionType, string helpFileName, string helpTopic);

    // Properties
    public virtual string HelpTopic { get; }
    public virtual string HelpFileName { get; }
    public virtual Type ContextMenuExtensionType { get; }
    public virtual CommandFlags Flags { get; }
    public virtual string GroupName { get; }
    public virtual string LocalizedNameId { get; }
    public virtual string GlobalName { get; }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These are the attribute signatures ( from reflection )&lt;/P&gt;&lt;P&gt;and the main method&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;public CommandMethodAttribute(string groupName, string globalName, string localizedNameId, CommandFlags flags, Type contextMenuExtensionType, string helpFileName, string helpTopic)
    {
        this.m_groupName = groupName;
        this.m_globalName = globalName;
        this.m_localizedNameId = localizedNameId;
        this.m_flags = flags;
        this.m_contextMenuExtensionType = contextMenuExtensionType;
        this.m_helpFileName = helpFileName;
        this.m_helpTopic = helpTopic;
    }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;added:&lt;/P&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/109424"&gt;@_gile&lt;/a&gt;&amp;nbsp;&amp;nbsp;beat me &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2023 08:09:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/commandmethod-commandflags-default/m-p/11755823#M9959</guid>
      <dc:creator>kerry_w_brown</dc:creator>
      <dc:date>2023-02-15T08:09:31Z</dc:date>
    </item>
    <item>
      <title>Betreff: CommandMethod CommandFlags default</title>
      <link>https://forums.autodesk.com/t5/net-forum/commandmethod-commandflags-default/m-p/11755848#M9960</link>
      <description>&lt;P&gt;rtfm &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2023 08:10:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/commandmethod-commandflags-default/m-p/11755848#M9960</guid>
      <dc:creator>pfluegge30167</dc:creator>
      <dc:date>2023-02-15T08:10:54Z</dc:date>
    </item>
  </channel>
</rss>

