<?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 Betreff: How to change the flange-width of previously existing sheetmetal part using Inventor VBA code in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-change-the-flange-width-of-previously-existing-sheetmetal/m-p/10219949#M123083</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Don't know if the additional options are correct in your case.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Private Sub FlangeHeight()

Dim oPartDoc As PartDocument
Set oPartDoc = ThisApplication.ActiveDocument

Dim oFeatures As SheetMetalFeatures
Set oFeatures = oPartDoc.ComponentDefinition.Features

Dim oFlange As FlangeFeature
Set oFlange = oFeatures.FlangeFeatures.Item(1)

Dim oFlangeDef As FlangeDefinition
Set oFlangeDef = oFlange.Definition

Call oFlange.SetEndOfPart(True)

Call oFlangeDef.SetDistanceHeightExtent("2 in", kPositiveExtentDirection, kHeightDatumOuter)

Call oPartDoc.ComponentDefinition.SetEndOfPartToTopOrBottom(False)

End Sub&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 07 Apr 2021 20:48:40 GMT</pubDate>
    <dc:creator>Ralf_Krieg</dc:creator>
    <dc:date>2021-04-07T20:48:40Z</dc:date>
    <item>
      <title>How to change the flange-width of previously existing sheetmetal part using Inventor VBA code</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-change-the-flange-width-of-previously-existing-sheetmetal/m-p/10186361#M123074</link>
      <description>&lt;P&gt;I have a previously existing sheetmetal part with a flange (Flange1 - consider having only 1 flange). I need to get the "Flange1" feature and change the flange width with some other value.&lt;/P&gt;&lt;P&gt;Can you please help me with appropriate API for it? or a sample VBA code will do.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 14:04:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-change-the-flange-width-of-previously-existing-sheetmetal/m-p/10186361#M123074</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-25T14:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the flange-width of previously existing sheetmetal part using Inventor VBA code</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-change-the-flange-width-of-previously-existing-sheetmetal/m-p/10187278#M123075</link>
      <description>&lt;P&gt;Hi! This can be done quite easily using iLogic. Please share an example and forum experts can show the solution very quickly.&lt;/P&gt;
&lt;P&gt;Many thanks!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 18:59:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-change-the-flange-width-of-previously-existing-sheetmetal/m-p/10187278#M123075</guid>
      <dc:creator>johnsonshiue</dc:creator>
      <dc:date>2021-03-25T18:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the flange-width of previously existing sheetmetal part using Inventor VBA code</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-change-the-flange-width-of-previously-existing-sheetmetal/m-p/10214484#M123076</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I just have a simple problem that I have a sheetmetal part and a flange to it, as you can see in the image&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Part.png" style="width: 413px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/902646i0D7213AA9028D7AF/image-dimensions/413x391?v=v2" width="413" height="391" role="button" title="Part.png" alt="Part.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;for eg. I just need to change the flange width from 1 inches to 2 inches using simple VBA code.&lt;/P&gt;&lt;P&gt;I have tried various ways but I am unable to achieve the thing, so can anyone please help me with a simple code asap ?&lt;/P&gt;</description>
      <pubDate>Tue, 06 Apr 2021 07:38:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-change-the-flange-width-of-previously-existing-sheetmetal/m-p/10214484#M123076</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-04-06T07:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the flange-width of previously existing sheetmetal part using Inventor VBA code</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-change-the-flange-width-of-previously-existing-sheetmetal/m-p/10216412#M123077</link>
      <description>&lt;P&gt;Hi! This can be done in two ways (quite similar to manual process). You can edit the Flange and change the type (click on double-arrow button) to Edge or Width. Set the desirable distance accordingly.&lt;/P&gt;
&lt;P&gt;For iLogic/API, you will need to alter the Flange type and change the parameters programmatically. Or, you change the Flange type before starting the rule. Then you only need to change the parameter values.&lt;/P&gt;
&lt;P&gt;Many thanks!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Apr 2021 18:16:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-change-the-flange-width-of-previously-existing-sheetmetal/m-p/10216412#M123077</guid>
      <dc:creator>johnsonshiue</dc:creator>
      <dc:date>2021-04-06T18:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the flange-width of previously existing sheetmetal part using Inventor VBA code</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-change-the-flange-width-of-previously-existing-sheetmetal/m-p/10219424#M123078</link>
      <description>&lt;P&gt;Yes I know, but can i get just a simple VBA code to change the flangewidth ?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 17:24:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-change-the-flange-width-of-previously-existing-sheetmetal/m-p/10219424#M123078</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-04-07T17:24:36Z</dc:date>
    </item>
    <item>
      <title>Betreff: How to change the flange-width of previously existing sheetmetal part using Inventor VBA code</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-change-the-flange-width-of-previously-existing-sheetmetal/m-p/10219949#M123083</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Don't know if the additional options are correct in your case.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Private Sub FlangeHeight()

Dim oPartDoc As PartDocument
Set oPartDoc = ThisApplication.ActiveDocument

Dim oFeatures As SheetMetalFeatures
Set oFeatures = oPartDoc.ComponentDefinition.Features

Dim oFlange As FlangeFeature
Set oFlange = oFeatures.FlangeFeatures.Item(1)

Dim oFlangeDef As FlangeDefinition
Set oFlangeDef = oFlange.Definition

Call oFlange.SetEndOfPart(True)

Call oFlangeDef.SetDistanceHeightExtent("2 in", kPositiveExtentDirection, kHeightDatumOuter)

Call oPartDoc.ComponentDefinition.SetEndOfPartToTopOrBottom(False)

End Sub&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 07 Apr 2021 20:48:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-change-the-flange-width-of-previously-existing-sheetmetal/m-p/10219949#M123083</guid>
      <dc:creator>Ralf_Krieg</dc:creator>
      <dc:date>2021-04-07T20:48:40Z</dc:date>
    </item>
  </channel>
</rss>

