<?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 enable/disable add-in commands for appropriate environment(s) in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-enable-disable-add-in-commands-for-appropriate/m-p/9337797#M106202</link>
    <description>&lt;P&gt;I'm not 100% sure, but I believe it has to do with a combination of how you set up the ControlDefinition's Classification (CommandTypesEnum, which are 'bits'), and the CommandCatagory(s) that you have added it into.&amp;nbsp; Then Inventor just knows how to handle it from there.&lt;/P&gt;</description>
    <pubDate>Mon, 24 Feb 2020 15:07:38 GMT</pubDate>
    <dc:creator>WCrihfield</dc:creator>
    <dc:date>2020-02-24T15:07:38Z</dc:date>
    <item>
      <title>How to enable/disable add-in commands for appropriate environment(s)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-enable-disable-add-in-commands-for-appropriate/m-p/9337701#M106199</link>
      <description>&lt;P&gt;I've noticed that Inventor commands will disable themselves if you're not in the appropriate environment. For example, if you place a Parts List in a drawing, then switch to an Assembly and right-click, "Repeat Parts List" in the context menu will be grayed out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know how to disable a control definition with its "Enabled" property, and I guess I could handle the environment switch event and enable/disable my commands with that. But is that the right way to do it? Or is there a better way? Such as a way to tell Inventor, "this is a Part command", "this is an Assembly command", etc.?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2020 14:28:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-enable-disable-add-in-commands-for-appropriate/m-p/9337701#M106199</guid>
      <dc:creator>DRoam</dc:creator>
      <dc:date>2020-02-24T14:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable/disable add-in commands for appropriate environment(s)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-enable-disable-add-in-commands-for-appropriate/m-p/9337797#M106202</link>
      <description>&lt;P&gt;I'm not 100% sure, but I believe it has to do with a combination of how you set up the ControlDefinition's Classification (CommandTypesEnum, which are 'bits'), and the CommandCatagory(s) that you have added it into.&amp;nbsp; Then Inventor just knows how to handle it from there.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2020 15:07:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-enable-disable-add-in-commands-for-appropriate/m-p/9337797#M106202</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2020-02-24T15:07:38Z</dc:date>
    </item>
  </channel>
</rss>

