<?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: Disable UI Elements temporarily via API in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/disable-ui-elements-temporarily-via-api/m-p/10710970#M130460</link>
    <description>&lt;P&gt;Hi! Thanks alot.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Oct 2021 06:48:39 GMT</pubDate>
    <dc:creator>hoeckesfeld</dc:creator>
    <dc:date>2021-10-25T06:48:39Z</dc:date>
    <item>
      <title>Disable UI Elements temporarily via API</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/disable-ui-elements-temporarily-via-api/m-p/10710142#M130451</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it's possible to disable a group of UI Elements (CommandTypes) with the following line:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ThisApplication.ActiveDocument.DisabledCommandTypes = CommandTypesEnum.kShapeEditCmdType;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I disable multiple CommandTypes? e.g.:&lt;BR /&gt;&lt;STRONG&gt;DisabledCommandTypesList = new List&amp;lt;CommandTypesEnum&amp;gt; {CommandTypesEnum.kShapeEditCmdType, CommandTypesEnum.kQueryOnlyCmdType }&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For my API I want to wait for a User Input where the user has to select multiple faces but shouldn't be allowed to click on a UI element. Is there a possibility to implement this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&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;</description>
      <pubDate>Sun, 24 Oct 2021 16:23:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/disable-ui-elements-temporarily-via-api/m-p/10710142#M130451</guid>
      <dc:creator>hoeckesfeld</dc:creator>
      <dc:date>2021-10-24T16:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Disable UI Elements temporarily via API</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/disable-ui-elements-temporarily-via-api/m-p/10710960#M130459</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CommandTypesEnum&amp;nbsp;&lt;/STRONG&gt;is used as Enum with &lt;STRONG&gt;Flags&lt;/STRONG&gt; attribute (implemented in background but not explicitly). In this case you can use it as combination of individual values. For more information see this article&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/dotnet/api/system.flagsattribute?view=net-5.0" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/dotnet/api/system.flagsattribute?view=net-5.0&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is sample use. This code works, but compiler provides a warning, because the [Flags] attribute is missing in Interop implementation.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;var disabledCommands = CommandTypesEnum.kFileOperationsCmdType | CommandTypesEnum.kFilePropertyEditCmdType;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 06:41:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/disable-ui-elements-temporarily-via-api/m-p/10710960#M130459</guid>
      <dc:creator>Michael.Navara</dc:creator>
      <dc:date>2021-10-25T06:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: Disable UI Elements temporarily via API</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/disable-ui-elements-temporarily-via-api/m-p/10710970#M130460</link>
      <description>&lt;P&gt;Hi! Thanks alot.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 06:48:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/disable-ui-elements-temporarily-via-api/m-p/10710970#M130460</guid>
      <dc:creator>hoeckesfeld</dc:creator>
      <dc:date>2021-10-25T06:48:39Z</dc:date>
    </item>
  </channel>
</rss>

