<?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 VBA code to unflag &amp;quot;USE THICKNESS FROM RULE&amp;quot; in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/vba-code-to-unflag-quot-use-thickness-from-rule-quot/m-p/8746228#M96765</link>
    <description>&lt;P&gt;I need a VBA code to unflag the "Use Thickness from Rule" in the sheet metal style property.&lt;/P&gt;
&lt;P&gt;I tried the "ThisDoc.Document.ComponentDefinition.UseSheetMetalStyleThickness = False" but give me a debug error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also the following code:&lt;/P&gt;
&lt;PRE&gt;Sub ChangeUseThicknessFromRule()
  Dim doc As PartDocument
  Set doc = ThisApplication.ActiveDocument
  
  Dim cd As SheetMetalComponentDefinition
  Set cd = doc.ComponentDefinition
  
  cd.UseSheetMetalStyleThickness = False
End Sub&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;Not sure where is the error.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Nicola&lt;/P&gt;</description>
    <pubDate>Mon, 22 Apr 2019 21:56:33 GMT</pubDate>
    <dc:creator>nicolamora</dc:creator>
    <dc:date>2019-04-22T21:56:33Z</dc:date>
    <item>
      <title>VBA code to unflag "USE THICKNESS FROM RULE"</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/vba-code-to-unflag-quot-use-thickness-from-rule-quot/m-p/8746228#M96765</link>
      <description>&lt;P&gt;I need a VBA code to unflag the "Use Thickness from Rule" in the sheet metal style property.&lt;/P&gt;
&lt;P&gt;I tried the "ThisDoc.Document.ComponentDefinition.UseSheetMetalStyleThickness = False" but give me a debug error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also the following code:&lt;/P&gt;
&lt;PRE&gt;Sub ChangeUseThicknessFromRule()
  Dim doc As PartDocument
  Set doc = ThisApplication.ActiveDocument
  
  Dim cd As SheetMetalComponentDefinition
  Set cd = doc.ComponentDefinition
  
  cd.UseSheetMetalStyleThickness = False
End Sub&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;Not sure where is the error.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Nicola&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2019 21:56:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/vba-code-to-unflag-quot-use-thickness-from-rule-quot/m-p/8746228#M96765</guid>
      <dc:creator>nicolamora</dc:creator>
      <dc:date>2019-04-22T21:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: VBA code to unflag "USE THICKNESS FROM RULE"</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/vba-code-to-unflag-quot-use-thickness-from-rule-quot/m-p/8746265#M96768</link>
      <description>&lt;P&gt;Hi, I have created a metal sheet file and the code that you have created works, it does not show any error. Could you attach your example here to investigate?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Sub ChangeUseThicknessFromRule()
  Dim doc As PartDocument
  Set doc = ThisApplication.ActiveDocument
  
  Dim cd As SheetMetalComponentDefinition
  Set cd = doc.ComponentDefinition
  
  cd.UseSheetMetalStyleThickness = False
End Sub&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2019 22:27:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/vba-code-to-unflag-quot-use-thickness-from-rule-quot/m-p/8746265#M96768</guid>
      <dc:creator>Sergio.D.Suárez</dc:creator>
      <dc:date>2019-04-22T22:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: VBA code to unflag "USE THICKNESS FROM RULE"</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/vba-code-to-unflag-quot-use-thickness-from-rule-quot/m-p/8746287#M96769</link>
      <description>&lt;P&gt;I was trying to use the code on an old derived sheet metal part, and it didn't work.&lt;/P&gt;
&lt;P&gt;But it works perfectly on new parts.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm guessing the problem was just that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks anyway for your fast reply,&lt;/P&gt;
&lt;P&gt;Nicola&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2019 22:48:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/vba-code-to-unflag-quot-use-thickness-from-rule-quot/m-p/8746287#M96769</guid>
      <dc:creator>nicolamora</dc:creator>
      <dc:date>2019-04-22T22:48:21Z</dc:date>
    </item>
  </channel>
</rss>

