<?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: Bend Edge Length Issue  (incorrect value) in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/bend-edge-length-issue-incorrect-value/m-p/3183738#M138787</link>
    <description>&lt;P&gt;Also, my suggested workaround will &lt;EM&gt;not&lt;/EM&gt;&amp;nbsp;include any cosmetic bend lines created in the flat pattern.&lt;/P&gt;</description>
    <pubDate>Fri, 07 Oct 2011 14:36:59 GMT</pubDate>
    <dc:creator>alewer</dc:creator>
    <dc:date>2011-10-07T14:36:59Z</dc:date>
    <item>
      <title>Bend Edge Length Issue  (incorrect value)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/bend-edge-length-issue-incorrect-value/m-p/3182536#M138785</link>
      <description>&lt;P&gt;I have some code that finds the length of a bend and it works great until there is a cut operation that passes through the edge of the part and through the bend.&amp;nbsp; When this cut exists the systems recognizes the single bend 2 times which is fineand it should, just that it should also then be able to determine the length of each segment.&amp;nbsp; It appears to be providing the length of the first segment twice.&amp;nbsp; Has anyone found a way to get either the segmented lengths or the length of the bend without the cut?&amp;nbsp; I need a total length and the code below gives wrong data for the one edge length.&amp;nbsp;&amp;nbsp; the attached file shows what I mean.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;idea's or suggestions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sub Bends()&lt;BR /&gt;Dim oDoc As PartDocument&lt;BR /&gt;Set oDoc = ThisApplication.ActiveDocument&lt;BR /&gt;Dim smComp As SheetMetalComponentDefinition&lt;BR /&gt;Set smComp = oDoc.ComponentDefinition&lt;BR /&gt;Dim oFlat As FlatPattern&lt;BR /&gt;Set oFlat = smComp.FlatPattern&lt;/P&gt;&lt;P&gt;Dim oBend As FlatBendResult&lt;BR /&gt;For Each oBend In oFlat.FlatBendResults&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If oBend.IsOnBottomFace = True Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim oEdge As Edge&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set oEdge = oBend.Edge&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim dMin As Double&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim dMax As Double&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim dSingleLength As Double&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Call oEdge.Evaluator.GetParamExtents(dMin, dMax)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Call oEdge.Evaluator.GetLengthAtParam(dMin, dMax, dSingleLength)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox dSingleLength&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;BR /&gt;Next&lt;BR /&gt;End Sub&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Scott&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2011 16:57:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/bend-edge-length-issue-incorrect-value/m-p/3182536#M138785</guid>
      <dc:creator>Koeppel</dc:creator>
      <dc:date>2011-10-06T16:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: Bend Edge Length Issue  (incorrect value)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/bend-edge-length-issue-incorrect-value/m-p/3183728#M138786</link>
      <description>&lt;P&gt;I can't open your part (I'm on 2010 x64 SP3), but I can &lt;EM&gt;sometimes&lt;/EM&gt;&amp;nbsp;replicate this with the attached part. &amp;nbsp;I don't know the exact cause, but if I supress/unsupress Rectangular Pattern 1, change sketch geometry, etc, I can get the behavior you describe. &amp;nbsp;This smells like a bug to me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a workaround, you might use properties of SheetMetalComponentDefinition.Bends, but this is not as straightforward as FlatPattern.BendResults.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2011 14:34:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/bend-edge-length-issue-incorrect-value/m-p/3183728#M138786</guid>
      <dc:creator>alewer</dc:creator>
      <dc:date>2011-10-07T14:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: Bend Edge Length Issue  (incorrect value)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/bend-edge-length-issue-incorrect-value/m-p/3183738#M138787</link>
      <description>&lt;P&gt;Also, my suggested workaround will &lt;EM&gt;not&lt;/EM&gt;&amp;nbsp;include any cosmetic bend lines created in the flat pattern.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2011 14:36:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/bend-edge-length-issue-incorrect-value/m-p/3183738#M138787</guid>
      <dc:creator>alewer</dc:creator>
      <dc:date>2011-10-07T14:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: Bend Edge Length Issue  (incorrect value)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/bend-edge-length-issue-incorrect-value/m-p/3186486#M138788</link>
      <description>&lt;P&gt;That does work, thanks.&amp;nbsp; But now I miss out on the flat pattern info such as the bend direction and.&amp;nbsp; Hopefully this gets fixed.&amp;nbsp; We are trying to program parts ahead of time and need to know the direction the angle and the bend length all at once.&amp;nbsp; It is all there just not working correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your workaround.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2011 20:18:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/bend-edge-length-issue-incorrect-value/m-p/3186486#M138788</guid>
      <dc:creator>Koeppel</dc:creator>
      <dc:date>2011-10-10T20:18:40Z</dc:date>
    </item>
  </channel>
</rss>

