<?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 show the number of bends in a sheet metal part in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-show-the-number-of-bends-in-a-sheet-metal-part/m-p/5745744#M57702</link>
    <description>&lt;DIV class="username_area"&gt;&lt;SPAN&gt;Hey there fsdolphin,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="username_area"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="username_area"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="username_area"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="username_area"&gt;&lt;SPAN&gt;This was quick and dirty but it should get you what you need. &amp;nbsp;I didn't fully test it so there is a slight chance there may be some features it doesn't recognize but I did test with normal flanges and contour flanges. &amp;nbsp;I would think this is where the bend id's come from for tagging in a drawing so I think we're pretty safe.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SyntaxEditor Code Snippet&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oPartDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;PartDocument&lt;/SPAN&gt;
&lt;SPAN&gt;oPartDoc&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;ActiveDocument&lt;/SPAN&gt;

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oCompDef&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;SheetMetalComponentDefinition&lt;/SPAN&gt;
&lt;SPAN&gt;oCompDef&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;oPartDoc&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;ComponentDefinitions&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Item&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;

&lt;SPAN&gt;oBendCount&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;oCompDef&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Bends&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Count&lt;/SPAN&gt;

&lt;SPAN&gt;MsgBox&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;Bend Total: &lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt; &lt;SPAN&gt;&amp;amp;&lt;/SPAN&gt; &lt;SPAN&gt;oBendCount&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Randy&lt;/P&gt;</description>
    <pubDate>Tue, 28 Jul 2015 20:42:05 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-07-28T20:42:05Z</dc:date>
    <item>
      <title>How to show the number of bends in a sheet metal part</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-show-the-number-of-bends-in-a-sheet-metal-part/m-p/5745697#M57700</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to show the number of bends in a sheet metal part using iLogic?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2015 20:13:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-show-the-number-of-bends-in-a-sheet-metal-part/m-p/5745697#M57700</guid>
      <dc:creator>fsdolphin</dc:creator>
      <dc:date>2015-07-28T20:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to show the number of bends in a sheet metal part</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-show-the-number-of-bends-in-a-sheet-metal-part/m-p/5745744#M57702</link>
      <description>&lt;DIV class="username_area"&gt;&lt;SPAN&gt;Hey there fsdolphin,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="username_area"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="username_area"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="username_area"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="username_area"&gt;&lt;SPAN&gt;This was quick and dirty but it should get you what you need. &amp;nbsp;I didn't fully test it so there is a slight chance there may be some features it doesn't recognize but I did test with normal flanges and contour flanges. &amp;nbsp;I would think this is where the bend id's come from for tagging in a drawing so I think we're pretty safe.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SyntaxEditor Code Snippet&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oPartDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;PartDocument&lt;/SPAN&gt;
&lt;SPAN&gt;oPartDoc&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;ActiveDocument&lt;/SPAN&gt;

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oCompDef&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;SheetMetalComponentDefinition&lt;/SPAN&gt;
&lt;SPAN&gt;oCompDef&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;oPartDoc&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;ComponentDefinitions&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Item&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;

&lt;SPAN&gt;oBendCount&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;oCompDef&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Bends&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Count&lt;/SPAN&gt;

&lt;SPAN&gt;MsgBox&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;Bend Total: &lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt; &lt;SPAN&gt;&amp;amp;&lt;/SPAN&gt; &lt;SPAN&gt;oBendCount&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Randy&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2015 20:42:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-show-the-number-of-bends-in-a-sheet-metal-part/m-p/5745744#M57702</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-28T20:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to show the number of bends in a sheet metal part</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-show-the-number-of-bends-in-a-sheet-metal-part/m-p/5746599#M57709</link>
      <description>&lt;P&gt;@Anonymous﻿&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cool, that worked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One more question, I know I know but I'm currently learning how to find information in the Inventor APIs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to identify howmany bends are 90° and howmany are other than 90°?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2015 12:39:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-show-the-number-of-bends-in-a-sheet-metal-part/m-p/5746599#M57709</guid>
      <dc:creator>fsdolphin</dc:creator>
      <dc:date>2015-07-29T12:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to show the number of bends in a sheet metal part</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-show-the-number-of-bends-in-a-sheet-metal-part/m-p/5750385#M57734</link>
      <description>&lt;P&gt;I found the BendRadius property in the API but I don't know how to use it.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;Dim oPartDoc As PartDocument = ThisApplication.ActiveDocument

Dim oCompDef As SheetMetalComponentDefinition = oPartDoc.ComponentDefinitions.Item(1)
Dim oBendCount As String = oCompDef.Bends.Count

Dim oBendRadius As Parameter = oCompDef.BendRadius

MessageBox.Show("Bend Total: " &amp;amp; oBendCount)

MessageBox.Show(oBendRadius)&lt;/PRE&gt;</description>
      <pubDate>Thu, 30 Jul 2015 17:57:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-show-the-number-of-bends-in-a-sheet-metal-part/m-p/5750385#M57734</guid>
      <dc:creator>fsdolphin</dc:creator>
      <dc:date>2015-07-30T17:57:41Z</dc:date>
    </item>
  </channel>
</rss>

