<?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: Show total mass automatically in Parts list in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/show-total-mass-automatically-in-parts-list/m-p/8208592#M85832</link>
    <description>&lt;P&gt;Mike&lt;/P&gt;&lt;P&gt;Not had a chance to try it yet&lt;/P&gt;&lt;P&gt;I don't know how to create a virtual part using illogic.&lt;/P&gt;&lt;P&gt;I will have a look today&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;</description>
    <pubDate>Sat, 18 Aug 2018 12:59:31 GMT</pubDate>
    <dc:creator>MikeKovacik4928</dc:creator>
    <dc:date>2018-08-18T12:59:31Z</dc:date>
    <item>
      <title>Show total mass automatically in Parts list</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/show-total-mass-automatically-in-parts-list/m-p/8180314#M85826</link>
      <description>&lt;P&gt;Hi inventor users around the globe &amp;amp; Autodesk employees&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;see jpeg below for details of what I&amp;nbsp;would like to do.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IQ_134_Total Weight on BOM_013.jpg" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/531593i8FEC6C77F0294E4B/image-size/large?v=v2&amp;amp;px=999" role="button" title="IQ_134_Total Weight on BOM_013.jpg" alt="IQ_134_Total Weight on BOM_013.jpg" /&gt;&lt;/span&gt;&amp;nbsp;Michael Kovacik&lt;BR /&gt;2d &amp;amp; 3d Autocad and Inventor designer/draughtsman&lt;BR /&gt;&lt;BR /&gt;Draughting/Designing (Manufacturing) (31 yrs)&lt;BR /&gt;-Drawing Board (3 yrs)&lt;BR /&gt;--Cad (28 yrs)&lt;BR /&gt;---Cadkey (4 yrs)&lt;BR /&gt;---AutoCAD 2d &amp;amp; 3d (16 yrs)&lt;BR /&gt;---Inventor (4 yrs)&lt;BR /&gt;---Autocad and Inventor Simultaneously (4 years)&lt;BR /&gt;---(and recently Autocad/Inventor Customisation)&lt;BR /&gt;&lt;BR /&gt;Authorised Autocad &amp;amp; Inventor Professional&lt;BR /&gt;Authorised Autodesk Trainer&lt;BR /&gt;&lt;BR /&gt;Higher Diploma Mechanical Engineering&lt;BR /&gt;Autodesk Product Design Suite Ultimate 2018&lt;BR /&gt;Autocad 2018, Inventor Pro 2018&lt;BR /&gt;(personal licensed copy)&lt;BR /&gt;&lt;BR /&gt;Johannesburg, South Africa&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;(Impossible only means you haven't&lt;BR /&gt;found the solution yet)&lt;/P&gt;</description>
      <pubDate>Mon, 06 Aug 2018 16:25:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/show-total-mass-automatically-in-parts-list/m-p/8180314#M85826</guid>
      <dc:creator>MikeKovacik4928</dc:creator>
      <dc:date>2018-08-06T16:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: Show total mass automatically in Parts list</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/show-total-mass-automatically-in-parts-list/m-p/8180695#M85827</link>
      <description>&lt;P&gt;So you want a total mass option added to the parts list at the bottom?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You have it showing up for each part, which is good, but now you just need that last part?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What about making a virtual part via iLogic calling it Total Mass, giving the weight value of what you have to the assembly you're in ... total mass.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Aug 2018 18:57:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/show-total-mass-automatically-in-parts-list/m-p/8180695#M85827</guid>
      <dc:creator>mdavis22569</dc:creator>
      <dc:date>2018-08-06T18:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: Show total mass automatically in Parts list</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/show-total-mass-automatically-in-parts-list/m-p/8196041#M85828</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IQ_134_Total Weight on BOM_015.jpg" style="width: 604px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/534172i4AD631F0DA741F46/image-size/large?v=v2&amp;amp;px=999" role="button" title="IQ_134_Total Weight on BOM_015.jpg" alt="IQ_134_Total Weight on BOM_015.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Not Solved Yet&lt;/P&gt;&lt;P&gt;My fault&lt;/P&gt;&lt;P&gt;Sorry Michael for not replying&lt;/P&gt;&lt;P&gt;I don't know how to make a virtual part using ilogic, can you explain&lt;/P&gt;&lt;P&gt;Your idea sounds good, I would like to give it a try&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Aug 2018 16:30:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/show-total-mass-automatically-in-parts-list/m-p/8196041#M85828</guid>
      <dc:creator>MikeKovacik4928</dc:creator>
      <dc:date>2018-08-13T16:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: Show total mass automatically in Parts list</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/show-total-mass-automatically-in-parts-list/m-p/8197132#M85829</link>
      <description>&lt;P&gt;Would it be acceptable to have the total mass displayed somewhere other than your parts list? If you create a text note somewhere on your drawing you can pull up the total mass of your assembly as a linked property.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://knowledge.autodesk.com/support/inventor-products/troubleshooting/caas/sfdcarticles/sfdcarticles/How-to-add-model-parameters-in-Inventor-drawing-title-block.html" target="_blank"&gt;https://knowledge.autodesk.com/support/inventor-products/troubleshooting/caas/sfdcarticles/sfdcarticles/How-to-add-model-parameters-in-Inventor-drawing-title-block.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 01:30:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/show-total-mass-automatically-in-parts-list/m-p/8197132#M85829</guid>
      <dc:creator>mrattray</dc:creator>
      <dc:date>2018-08-14T01:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: Show total mass automatically in Parts list</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/show-total-mass-automatically-in-parts-list/m-p/8200660#M85830</link>
      <description>&lt;P&gt;Sorry&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/429307"&gt;@MikeKovacik4928&lt;/a&gt;&amp;nbsp;for my delay ....&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you had a moment to look at or try my suggestion?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can try it too...&lt;/P&gt;</description>
      <pubDate>Wed, 15 Aug 2018 09:51:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/show-total-mass-automatically-in-parts-list/m-p/8200660#M85830</guid>
      <dc:creator>mdavis22569</dc:creator>
      <dc:date>2018-08-15T09:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: Show total mass automatically in Parts list</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/show-total-mass-automatically-in-parts-list/m-p/8208590#M85831</link>
      <description>&lt;P&gt;Thanks Mike&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No I need it to appear as the bottom of the bom as the last row and automatically add&lt;/P&gt;&lt;P&gt;up the masses of all the parts multiplied by their number of instances.&lt;/P&gt;&lt;P&gt;Something that is quite easily done in excel, just not possible out of the box in Inventor, unfortunately&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;</description>
      <pubDate>Sat, 18 Aug 2018 12:53:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/show-total-mass-automatically-in-parts-list/m-p/8208590#M85831</guid>
      <dc:creator>MikeKovacik4928</dc:creator>
      <dc:date>2018-08-18T12:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: Show total mass automatically in Parts list</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/show-total-mass-automatically-in-parts-list/m-p/8208592#M85832</link>
      <description>&lt;P&gt;Mike&lt;/P&gt;&lt;P&gt;Not had a chance to try it yet&lt;/P&gt;&lt;P&gt;I don't know how to create a virtual part using illogic.&lt;/P&gt;&lt;P&gt;I will have a look today&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;</description>
      <pubDate>Sat, 18 Aug 2018 12:59:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/show-total-mass-automatically-in-parts-list/m-p/8208592#M85832</guid>
      <dc:creator>MikeKovacik4928</dc:creator>
      <dc:date>2018-08-18T12:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: Show total mass automatically in Parts list</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/show-total-mass-automatically-in-parts-list/m-p/8209279#M85833</link>
      <description>&lt;P&gt;Mike&lt;/P&gt;&lt;P&gt;Here is how I have done it using virtual component but not using iLogic and filling in things manually. Definitely far from ideal and not automatic.&lt;/P&gt;&lt;P&gt;I would like to take it one step further and automate it using ilogic. However I am new to ilogic and never used it before.&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IQ_134_Total Weight on BOM_027.jpg" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/536298i93E64D864406CB05/image-size/large?v=v2&amp;amp;px=999" role="button" title="IQ_134_Total Weight on BOM_027.jpg" alt="IQ_134_Total Weight on BOM_027.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IQ_134_Total Weight on BOM_028.jpg" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/536299i2B14AA4BEDFA0ED1/image-size/large?v=v2&amp;amp;px=999" role="button" title="IQ_134_Total Weight on BOM_028.jpg" alt="IQ_134_Total Weight on BOM_028.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Aug 2018 08:59:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/show-total-mass-automatically-in-parts-list/m-p/8209279#M85833</guid>
      <dc:creator>MikeKovacik4928</dc:creator>
      <dc:date>2018-08-19T08:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: Show total mass automatically in Parts list</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/show-total-mass-automatically-in-parts-list/m-p/8209363#M85834</link>
      <description>&lt;P&gt;Curtis is the iLogic guru ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;He might be able to come up with the workflow that would work for that ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Aug 2018 11:15:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/show-total-mass-automatically-in-parts-list/m-p/8209363#M85834</guid>
      <dc:creator>mdavis22569</dc:creator>
      <dc:date>2018-08-19T11:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: Show total mass automatically in Parts list</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/show-total-mass-automatically-in-parts-list/m-p/8209391#M85835</link>
      <description>&lt;P&gt;Not iLogic, and a different approach. Here's a macro that:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- asks you to pick an assembly view&lt;/P&gt;&lt;P&gt;- adds row to partslist (assumes there is only one in the sheet)&lt;/P&gt;&lt;P&gt;- puts the assembly mass in the last row&lt;/P&gt;&lt;P&gt;- if there is already a row with total mass in the parts list, it updates the mass&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You might have to change the numbers 3 and 4, these are the column numbers.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Sub testTotalMass()

Dim dwg As DrawingDocument
Set dwg = ThisApplication.ActiveDocument

Dim oview As DrawingView
Set oview = ThisApplication.CommandManager.Pick(kDrawingViewFilter, "Pick the assembly view")

On Error Resume Next
Dim asm As AssemblyDocument
Set asm = oview.ReferencedDocumentDescriptor.ReferencedDocument
If Err Then
    MsgBox ("Not an assembly")
    Exit Sub
End If

Dim pl As PartsList
Set pl = dwg.ActiveSheet.PartsLists.Item(1)

Dim plr As PartsListRow
Dim found As Boolean
For Each plr In pl.PartsListRows
    If plr.Item(3).Value = "TOTAL MASS" Then
        found = True
        Exit For
    End If
Next

Dim txn As Transaction
Set txn = ThisApplication.TransactionManager.StartTransaction(dwg, "Add total mass")

If found = False Then Set plr = pl.PartsListRows.Add(pl.PartsListRows.count, False)

plr.Item(3).Value = "TOTAL MASS"
plr.Item(4).Value = Round(asm.ComponentDefinition.MassProperties.mass, 2) &amp;amp; " kg"

txn.End

End Sub&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Aug 2018 11:41:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/show-total-mass-automatically-in-parts-list/m-p/8209391#M85835</guid>
      <dc:creator>basnederveen</dc:creator>
      <dc:date>2018-08-19T11:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: Show total mass automatically in Parts list</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/show-total-mass-automatically-in-parts-list/m-p/8209621#M85836</link>
      <description>&lt;P&gt;basnerdeveen&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;1. How do I load this&lt;/P&gt;&lt;P&gt;2. How do I run it&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;</description>
      <pubDate>Sun, 19 Aug 2018 16:22:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/show-total-mass-automatically-in-parts-list/m-p/8209621#M85836</guid>
      <dc:creator>MikeKovacik4928</dc:creator>
      <dc:date>2018-08-19T16:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: Show total mass automatically in Parts list</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/show-total-mass-automatically-in-parts-list/m-p/8209757#M85837</link>
      <description>&lt;P&gt;Press Alt + F11 -&amp;gt; paste the code in a module -&amp;gt; create a shortcut by right clicking the ribbon -&amp;gt; customize user commands -&amp;gt; choose 'macros' in the dropdown -&amp;gt; pick the macro you just added -&amp;gt; press the button&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Aug 2018 19:17:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/show-total-mass-automatically-in-parts-list/m-p/8209757#M85837</guid>
      <dc:creator>basnederveen</dc:creator>
      <dc:date>2018-08-19T19:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: Show total mass automatically in Parts list</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/show-total-mass-automatically-in-parts-list/m-p/8211479#M85838</link>
      <description>&lt;P&gt;Basnederveen&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Works beautifully&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;</description>
      <pubDate>Mon, 20 Aug 2018 15:30:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/show-total-mass-automatically-in-parts-list/m-p/8211479#M85838</guid>
      <dc:creator>MikeKovacik4928</dc:creator>
      <dc:date>2018-08-20T15:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: Show total mass automatically in Parts list</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/show-total-mass-automatically-in-parts-list/m-p/8215052#M85839</link>
      <description>&lt;P&gt;Michael,&lt;/P&gt;&lt;P&gt;After you create your B.O.M., you'll need to do the following:&lt;/P&gt;&lt;P&gt;- Select column chooser in top left corner&lt;/P&gt;&lt;P&gt;- Select New Property and Name it 'Total Mass'&lt;/P&gt;&lt;P&gt;- Add it to your selected properties&lt;/P&gt;&lt;P&gt;- Click 'OK', then right click the 'Total Mass' column and select 'Format Column'&lt;/P&gt;&lt;P&gt;- Click the substitution tab and select 'Enable Value Substition'&lt;/P&gt;&lt;P&gt;- Click the drop down menu and select the 'MASS' property&lt;/P&gt;&lt;P&gt;- Under 'When rows are merged, value used is' drop down menu, select 'Sum of Values'&lt;/P&gt;&lt;P&gt;You can follow these steps for each bill you create, or you can follow these steps in your styles editor for your template file and it will show up automatically when you place a B.O.M. on the drawing.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Column Chooser.jpg" style="width: 655px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/537262i6DED2E0D14C47D2E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Column Chooser.jpg" alt="Column Chooser.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Format Column.jpg" style="width: 609px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/537263i024534309208379B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Format Column.jpg" alt="Format Column.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Parts List.jpg" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/537264i9D941E4C6CE06DFD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Parts List.jpg" alt="Parts List.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2018 20:20:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/show-total-mass-automatically-in-parts-list/m-p/8215052#M85839</guid>
      <dc:creator>anoor</dc:creator>
      <dc:date>2018-08-21T20:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: Show total mass automatically in Parts list</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/show-total-mass-automatically-in-parts-list/m-p/8622716#M85840</link>
      <description>&lt;P&gt;What are the advantages/disadvantages to putting the code in Modules after hitting Alt+F11 vs putting the same code in iLogic rules?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Feb 2019 18:34:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/show-total-mass-automatically-in-parts-list/m-p/8622716#M85840</guid>
      <dc:creator>claudio.ibarra</dc:creator>
      <dc:date>2019-02-26T18:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: Show total mass automatically in Parts list</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/show-total-mass-automatically-in-parts-list/m-p/9064047#M85841</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is i possible to get partname in Partslist table(Title) in this macro se also pisture&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Sub testTotalMass()

Dim dwg As DrawingDocument
Set dwg = ThisApplication.ActiveDocument

Dim oview As DrawingView
Set oview = ThisApplication.CommandManager.Pick(kDrawingViewFilter, "Pick the assembly view")

On Error Resume Next
Dim asm As AssemblyDocument
Set asm = oview.ReferencedDocumentDescriptor.ReferencedDocument
If Err Then
    MsgBox ("Not an assembly")
    Exit Sub
End If

Dim pl As PartsList
Set pl = dwg.ActiveSheet.PartsLists.Item(1)

Dim plr As PartsListRow
Dim found As Boolean
For Each plr In pl.PartsListRows
    If plr.Item(3).Value = "TOTAL MASS" Then
        found = True
        Exit For
    End If
Next

Dim txn As Transaction
Set txn = ThisApplication.TransactionManager.StartTransaction(dwg, "Add total mass")

If found = False Then Set plr = pl.PartsListRows.Add(pl.PartsListRows.count, False)

plr.Item(3).Value = "TOTAL MASS"
plr.Item(4).Value = Round(asm.ComponentDefinition.MassProperties.mass, 2) &amp;amp; " kg"

txn.End

End Sub&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Title.JPG" style="width: 544px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/683982iEEF9A9338BE050EB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Title.JPG" alt="Title.JPG" /&gt;&lt;/span&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 03 Oct 2019 07:13:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/show-total-mass-automatically-in-parts-list/m-p/9064047#M85841</guid>
      <dc:creator>EMVC</dc:creator>
      <dc:date>2019-10-03T07:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: Show total mass automatically in Parts list</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/show-total-mass-automatically-in-parts-list/m-p/9861858#M85842</link>
      <description>&lt;P&gt;Is there any way to add this logic if I have multiple assemblies on one drawing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run the macro on the second assembly, it adds another Total Weight to the first BOM. Also, the summation is not correct. The total weight should be 44.2 and it shows up as 20.0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jeff I.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 13:59:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/show-total-mass-automatically-in-parts-list/m-p/9861858#M85842</guid>
      <dc:creator>jeffi</dc:creator>
      <dc:date>2020-11-11T13:59:37Z</dc:date>
    </item>
  </channel>
</rss>

