<?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: Inventor Weld Length Data Summation in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-weld-length-data-summation/m-p/13222938#M3473</link>
    <description>&lt;P&gt;Sorry to do it to ya...&lt;/P&gt;&lt;P&gt;1 inch = 2.54 cm&lt;/P&gt;</description>
    <pubDate>Fri, 20 Dec 2024 19:17:00 GMT</pubDate>
    <dc:creator>daltonNYAW9</dc:creator>
    <dc:date>2024-12-20T19:17:00Z</dc:date>
    <item>
      <title>Inventor Weld Length Data Summation</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-weld-length-data-summation/m-p/13219059#M3472</link>
      <description>&lt;P&gt;Gang...&lt;/P&gt;&lt;P&gt;Trying to create some ilogic to sum the total of all weld lengths in a weldt.&lt;/P&gt;&lt;P&gt;I have the logic running....but I am questioning the accuracy.&lt;/P&gt;&lt;P&gt;Here's the logic....&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;AssemblyDocument&lt;/SPAN&gt;
&lt;SPAN&gt;oDoc&lt;/SPAN&gt; = &lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Document&lt;/SPAN&gt;

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oComdef&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;WeldmentComponentDefinition&lt;/SPAN&gt;
&lt;SPAN&gt;oComdef&lt;/SPAN&gt; = &lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;

&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Weld_Length_Sum"&lt;/SPAN&gt;) = 0
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oWeldBead&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;WeldBead&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oWeld&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Weld&lt;/SPAN&gt;
&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;oWeld&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;oComdef&lt;/SPAN&gt;.&lt;SPAN&gt;Welds&lt;/SPAN&gt;


	&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;oWeld&lt;/SPAN&gt;.&lt;SPAN&gt;Type&lt;/SPAN&gt; = &lt;SPAN&gt;ObjectTypeEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kWeldBeadObject&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
	&lt;SPAN&gt;oWeldBead&lt;/SPAN&gt; = &lt;SPAN&gt;oWeld&lt;/SPAN&gt;
	&lt;SPAN&gt;Logger&lt;/SPAN&gt;.&lt;SPAN&gt;Info&lt;/SPAN&gt;(&lt;SPAN&gt;"some info about the stuff that just happened..."&lt;/SPAN&gt;)
	&lt;SPAN&gt;Logger&lt;/SPAN&gt;.&lt;SPAN&gt;Info&lt;/SPAN&gt;(&lt;SPAN&gt;oWeldBead&lt;/SPAN&gt;.&lt;SPAN&gt;BeadLength&lt;/SPAN&gt;)
	&lt;SPAN&gt;MessageBox&lt;/SPAN&gt;.&lt;SPAN&gt;Show&lt;/SPAN&gt;((&lt;SPAN&gt;oWeldBead&lt;/SPAN&gt;.&lt;SPAN&gt;BeadLength&lt;/SPAN&gt;), &lt;SPAN&gt;"weld"&lt;/SPAN&gt;)
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Weld_Length_Sum"&lt;/SPAN&gt;) = &lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Weld_Length_Sum"&lt;/SPAN&gt;) + (&lt;SPAN&gt;oWeldBead&lt;/SPAN&gt;.&lt;SPAN&gt;BeadLength&lt;/SPAN&gt;)
	&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
&lt;SPAN&gt;Next&lt;/SPAN&gt;
&lt;SPAN&gt;MessageBox&lt;/SPAN&gt;.&lt;SPAN&gt;Show&lt;/SPAN&gt;(&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Weld_Length_Sum"&lt;/SPAN&gt;), &lt;SPAN&gt;"Sum of All Welds"&lt;/SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;I get a grand total of 76.48 inches....but if I export the weld bead table....I get a different summation.&lt;BR /&gt;The weld bead table is correct, iLogic is wrong.&lt;BR /&gt;See the attached spreadsheet for the comparison.&lt;BR /&gt;&lt;BR /&gt;Do I have the correct variable for the bead length?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Dec 2024 19:58:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-weld-length-data-summation/m-p/13219059#M3472</guid>
      <dc:creator>steveh3</dc:creator>
      <dc:date>2024-12-18T19:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor Weld Length Data Summation</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-weld-length-data-summation/m-p/13222938#M3473</link>
      <description>&lt;P&gt;Sorry to do it to ya...&lt;/P&gt;&lt;P&gt;1 inch = 2.54 cm&lt;/P&gt;</description>
      <pubDate>Fri, 20 Dec 2024 19:17:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-weld-length-data-summation/m-p/13222938#M3473</guid>
      <dc:creator>daltonNYAW9</dc:creator>
      <dc:date>2024-12-20T19:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor Weld Length Data Summation</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-weld-length-data-summation/m-p/13222946#M3474</link>
      <description>&lt;P&gt;LOL...&lt;/P&gt;&lt;P&gt;That gets me everytime!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":rolling_on_the_floor_laughing:"&gt;🤣&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Appreciate the help!&lt;/P&gt;</description>
      <pubDate>Fri, 20 Dec 2024 19:23:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-weld-length-data-summation/m-p/13222946#M3474</guid>
      <dc:creator>steveh3</dc:creator>
      <dc:date>2024-12-20T19:23:09Z</dc:date>
    </item>
  </channel>
</rss>

