<?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: iLogic Rule to preselect sheet metal style in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-rule-to-preselect-sheet-metal-style/m-p/11109059#M136847</link>
    <description>&lt;LI-CODE lang="general"&gt;'' Dim a As Inventor.ControlDefinition = ThisApplication.CommandManager.ControlDefinitions.Item("SheetMetalSetBodyRuleStyleCtxCmd")
Dim a As Inventor.ControlDefinition = ThisApplication.CommandManager.ControlDefinitions.Item("SheetMetalStylesCmd")

a.Execute&lt;/LI-CODE&gt;
&lt;P&gt;you mean on create new from template you need to see this box:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bradeneuropeArthur_0-1650058786954.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1055451iAB57C99BEC2405C0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bradeneuropeArthur_0-1650058786954.png" alt="bradeneuropeArthur_0-1650058786954.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Let the above rule on new:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bradeneuropeArthur_0-1650059837097.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1055457i264FA82B2405DDD3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bradeneuropeArthur_0-1650059837097.png" alt="bradeneuropeArthur_0-1650059837097.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Apr 2022 21:57:19 GMT</pubDate>
    <dc:creator>bradeneuropeArthur</dc:creator>
    <dc:date>2022-04-15T21:57:19Z</dc:date>
    <item>
      <title>iLogic Rule to preselect sheet metal style</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-rule-to-preselect-sheet-metal-style/m-p/11108727#M136845</link>
      <description>&lt;P&gt;Any ideas on how to use/create an iLogic Rule to preselect sheet metal style when creating a new sheet metal part (material &amp;amp; thickness) from sheet metal rule&lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2022 17:44:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-rule-to-preselect-sheet-metal-style/m-p/11108727#M136845</guid>
      <dc:creator>bbrumfield</dc:creator>
      <dc:date>2022-04-15T17:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Rule to preselect sheet metal style</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-rule-to-preselect-sheet-metal-style/m-p/11108747#M136846</link>
      <description>&lt;P&gt;Just go into the sheet metal template and change it there.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2022 17:52:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-rule-to-preselect-sheet-metal-style/m-p/11108747#M136846</guid>
      <dc:creator>dalton98</dc:creator>
      <dc:date>2022-04-15T17:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Rule to preselect sheet metal style</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-rule-to-preselect-sheet-metal-style/m-p/11109059#M136847</link>
      <description>&lt;LI-CODE lang="general"&gt;'' Dim a As Inventor.ControlDefinition = ThisApplication.CommandManager.ControlDefinitions.Item("SheetMetalSetBodyRuleStyleCtxCmd")
Dim a As Inventor.ControlDefinition = ThisApplication.CommandManager.ControlDefinitions.Item("SheetMetalStylesCmd")

a.Execute&lt;/LI-CODE&gt;
&lt;P&gt;you mean on create new from template you need to see this box:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bradeneuropeArthur_0-1650058786954.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1055451iAB57C99BEC2405C0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bradeneuropeArthur_0-1650058786954.png" alt="bradeneuropeArthur_0-1650058786954.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Let the above rule on new:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bradeneuropeArthur_0-1650059837097.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1055457i264FA82B2405DDD3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bradeneuropeArthur_0-1650059837097.png" alt="bradeneuropeArthur_0-1650059837097.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2022 21:57:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-rule-to-preselect-sheet-metal-style/m-p/11109059#M136847</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2022-04-15T21:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Rule to preselect sheet metal style</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-rule-to-preselect-sheet-metal-style/m-p/11109159#M136851</link>
      <description>&lt;P&gt;Hi bradeneuropeArthur,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That was exactly what I was looking for&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to make this work:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;a&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Inventor&lt;/SPAN&gt;.&lt;SPAN&gt;ControlDefinition&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;CommandManager&lt;/SPAN&gt;.&lt;SPAN&gt;ControlDefinitions&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"SheetMetalStylesCmd"&lt;/SPAN&gt;)

&lt;SPAN&gt;a&lt;/SPAN&gt;.&lt;SPAN&gt;Execute&lt;/SPAN&gt;
&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2022 23:59:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-rule-to-preselect-sheet-metal-style/m-p/11109159#M136851</guid>
      <dc:creator>bbrumfield</dc:creator>
      <dc:date>2022-04-15T23:59:57Z</dc:date>
    </item>
  </channel>
</rss>

