<?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: Weights from assembly in Inventor Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-forum/weights-from-assembly/m-p/10500220#M104248</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;It depends what is the purpose of your effort.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But if you only want a quick info I would suggest as follows:&lt;/P&gt;&lt;P&gt;1) select everything of interest for you (but this can only be components (parts or assemblies) of the top level)&lt;/P&gt;&lt;P&gt;2) Ctrl+C&lt;/P&gt;&lt;P&gt;3) open new assembly file&lt;/P&gt;&lt;P&gt;4) Ctrl+V&lt;/P&gt;&lt;P&gt;5) iProperties -&amp;gt; physical properties&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This will be faster than playing with LoD and requiring less effort, and also it is easier than changing other parts to reference BOM, and you will not produce errors in your original model.&lt;/P&gt;&lt;P&gt;But if this is a solution for you it depends on what exactly is that you are after.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are also other potential the like trick that come to my mind, but it all depend on the intent.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cris&lt;/P&gt;</description>
    <pubDate>Tue, 27 Jul 2021 18:24:34 GMT</pubDate>
    <dc:creator>Cris-Ideas</dc:creator>
    <dc:date>2021-07-27T18:24:34Z</dc:date>
    <item>
      <title>Weights from assembly</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/weights-from-assembly/m-p/10431368#M104232</link>
      <description>&lt;P&gt;HI Experts&lt;/P&gt;&lt;P&gt;Inv 2018&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an assembly with 15 components. Can I select 5 of them and find out the mass of these items (combined mass of&amp;nbsp; components only)from the assembly environment ?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2021 06:55:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/weights-from-assembly/m-p/10431368#M104232</guid>
      <dc:creator>baliasM74U3</dc:creator>
      <dc:date>2021-06-30T06:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: Weights from assembly</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/weights-from-assembly/m-p/10431373#M104233</link>
      <description>&lt;P&gt;Don't think so.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Couple of options.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Open BOM, add the mass column. Copy these into excel and do a sum.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Create a new assembly, click the 'restore layout' icon next to the cross in the top right. This tiles the windows. Drag those parts from the browser in to the new assembly and check the mass in the iproperties.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2021 07:00:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/weights-from-assembly/m-p/10431373#M104233</guid>
      <dc:creator>SharkDesign</dc:creator>
      <dc:date>2021-06-30T07:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: Weights from assembly</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/weights-from-assembly/m-p/10431521#M104234</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7375814"&gt;@baliasM74U3&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/510259"&gt;@SharkDesign&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Set all the parts you don't want to "BOM structure - Reference" and check the mass again.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2021 08:16:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/weights-from-assembly/m-p/10431521#M104234</guid>
      <dc:creator>johan.degreef</dc:creator>
      <dc:date>2021-06-30T08:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: Weights from assembly</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/weights-from-assembly/m-p/10432037#M104235</link>
      <description>&lt;P&gt;You could create a level of detail and suppress everything except the 5 components that you want to get the weight of.&amp;nbsp; When you perform a mass properties update it will ask if you want to calculate the mass of the master LOD.&amp;nbsp; You can click NO and it will tell you the mass of just the components that are not suppressed.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2021 11:56:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/weights-from-assembly/m-p/10432037#M104235</guid>
      <dc:creator>andrewiv</dc:creator>
      <dc:date>2021-06-30T11:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: Weights from assembly</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/weights-from-assembly/m-p/10432094#M104236</link>
      <description>&lt;P&gt;If you're doing any of the methods above involving suppressing or referencing stuff do the following.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Click the items you want, click the filter and choose invert selection, then all the items you don't want are now selected.&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can now suppress en masse or reference.&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="jameswillo_0-1625054693465.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/936085i731CCBF6BC4EFB7E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jameswillo_0-1625054693465.png" alt="jameswillo_0-1625054693465.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2021 12:05:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/weights-from-assembly/m-p/10432094#M104236</guid>
      <dc:creator>SharkDesign</dc:creator>
      <dc:date>2021-06-30T12:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: Weights from assembly</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/weights-from-assembly/m-p/10433321#M104237</link>
      <description>&lt;P&gt;Hii! All above suggestions make sense. They are the only ways to do it in Inventor unfortunately. But, strictly speaking they are not what the OP was looking for. Any of the above workflow involves design change. What OP was looking for is a quick way to tell the mass prop of a group of components. The ability is available on Fusion 360.&lt;/P&gt;
&lt;P&gt;Many thanks!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2021 18:51:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/weights-from-assembly/m-p/10433321#M104237</guid>
      <dc:creator>johnsonshiue</dc:creator>
      <dc:date>2021-06-30T18:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: Weights from assembly</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/weights-from-assembly/m-p/10433551#M104238</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/486618"&gt;@johnsonshiue&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hii! All above suggestions make sense. ..... The ability is available on Fusion 360.&lt;/P&gt;
&lt;P&gt;Many thanks!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&amp;nbsp; Too bad Inventor does not have the same tool for this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2021 20:09:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/weights-from-assembly/m-p/10433551#M104238</guid>
      <dc:creator>karthur1</dc:creator>
      <dc:date>2021-06-30T20:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: Weights from assembly</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/weights-from-assembly/m-p/10433678#M104239</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7375814"&gt;@baliasM74U3&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can give this ilogic rule a try.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;BR /&gt;Best of luck to you in all of your Inventor pursuits,&lt;BR /&gt;Curtis&lt;BR /&gt;&lt;A href="http://inventortrenches.blogspot.com" target="_blank" rel="noopener"&gt;http://inventortrenches.blogspot.com&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;
oConversion = 1
oUnit = " kg"

' 'uncomment this To use lbs
'oConversion = 2.2046
'oUnit = " lbs mass"

Dim oADoc As AssemblyDocument = ThisApplication.ActiveDocument
Dim oTotalMass As Double

Dim oList As New ArrayList

oSet = oADoc.CreateHighlightSet

While True
	oMsg = "Select parts (press ESC to continue) Total Mass " &amp;amp; _
	Round(oTotalMass * oConversion, 3) &amp;amp; oUnit
	Dim oOcc As ComponentOccurrence
	oOcc = ThisApplication.CommandManager.Pick(
	SelectionFilterEnum.kAssemblyLeafOccurrenceFilter, oMsg)

	' If nothing gets selected then we're done	
	If IsNothing(oOcc) Then Exit While

	'check against list to prevent 
	'selecting same component twice
	If oList.Contains(oOcc.Name) = False Then
		oList.Add(oOcc.Name)
		oSet.AddItem(oOcc)

		Dim oMassProps As MassProperties
		oMassProps = oOcc.Definition.Document.ComponentDefinition.MassProperties
		oTotalMass = oTotalMass + oMassProps.Mass
	End If

End While

InputBox("Total mass in " &amp;amp; oUnit, "ilogic", Round(oTotalMass * oConversion, 3))

oSet.Clear




&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 30 Jun 2021 21:03:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/weights-from-assembly/m-p/10433678#M104239</guid>
      <dc:creator>Curtis_W</dc:creator>
      <dc:date>2021-06-30T21:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: Weights from assembly</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/weights-from-assembly/m-p/10435425#M104240</link>
      <description>&lt;P&gt;Curtis,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sweet!&amp;nbsp; One thing I noticed is that if the assembly consists of both parts and assemblies, when you try to pick the items from the graphics window, it will only select "parts".&amp;nbsp; If you want to select the whole sub-assembly, you have to select this from the model browser rather then the graphics window. If you try to select all the items of a sub-assy from the graphics window, it can be difficult to include all the items.&amp;nbsp; There is no selection widow, but being able to select the entire sub from the model browser is key.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, there is no way to remove an item from the selection set.&amp;nbsp; Pick your items carefully.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kirk&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kirk&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jul 2021 12:29:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/weights-from-assembly/m-p/10435425#M104240</guid>
      <dc:creator>karthur1</dc:creator>
      <dc:date>2021-07-01T12:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: Weights from assembly</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/weights-from-assembly/m-p/10435854#M104241</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/83823"&gt;@karthur1&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;One thing I noticed ...&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Hey that's 2 things!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smirking_face:"&gt;😏&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thing 1:&lt;/P&gt;
&lt;P&gt;So... I don't know how to allow the user to switch between selecting subassemblies and parts using the Pick method with iLogic... there might be a clever way to code that, but I've never figured it out...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the previous example was set to filter for "leaf occurrences" meaning it allowed the user to select parts from within the sub assemblies...&amp;nbsp; this example is filtering for&amp;nbsp;"occurrences"... so it selects the entire subassembly&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;...but as far as I know it's an either/or choice as far as coding it&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thing 2:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This version removes a previously selected item, if it is selected again.... whereas the previous version simply disallowed it to be selected again.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thing3 (bonus):&lt;/P&gt;
&lt;P&gt;I changed the "feedback" to use the client graphics rather than the cursor tool tip, so you should see the weight and number of selected components in the top left of the screen, something like the image below... let me know if that doesn't display well... I've only experimented with using client graphics for this kind of thing in the past, so I don't know how well it translates to different monitor and display setups&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;BR /&gt;Best of luck to you in all of your Inventor pursuits,&lt;BR /&gt;Curtis&lt;BR /&gt;&lt;A href="http://inventortrenches.blogspot.com" target="_blank" rel="noopener"&gt;http://inventortrenches.blogspot.com&lt;/A&gt;&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="Curtis_W_0-1625149488700.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/936635i59A4BF95384DF913/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Curtis_W_0-1625149488700.png" alt="Curtis_W_0-1625149488700.png" /&gt;&lt;/span&gt;&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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Sub main

	oConversion = 1
	oUnit = " kg"

	'	'uncomment this to use lbs
	'	oConversion = 2.2046
	'	oUnit = " lbs mass"

	Dim oDoc As AssemblyDocument = ThisApplication.ActiveDocument
	Dim oTotalMass As Double

	Dim oList As New ArrayList

	oSet = oDoc.CreateHighlightSet

	Dim oCollection As ObjectCollection
	oCollection = ThisApplication.TransientObjects.CreateObjectCollection

	While True
		oMsg = "Select components (press ESC to exit select)"

		Dim oOcc As ComponentOccurrence
		oOcc = ThisApplication.CommandManager.Pick(
		SelectionFilterEnum.kAssemblyOccurrenceFilter, oMsg)

		' If nothing gets selected then we're done	
		If IsNothing(oOcc) Then Exit While

		Dim oMassProps As MassProperties
		oMassProps = oOcc.Definition.Document.ComponentDefinition.MassProperties

		'check against list to prevent 
		'selecting same component twice
		If oList.Contains(oOcc.Name) = False Then
			oList.Add(oOcc.Name)
			oCollection.Add(oOcc)
			oTotalMass = oTotalMass + oMassProps.Mass

		Else
			oList.Remove(oOcc.Name)
			oCollection.RemoveByObject(oOcc)
			oTotalMass = oTotalMass - oMassProps.Mass

		End If

		oLine1 = Round(oTotalMass * oConversion, 3) &amp;amp; oUnit _
			&amp;amp; " ; " &amp;amp; oCollection.Count &amp;amp; " items selected"
		Call WriteClientGraphics(oLine1)
		oSet.AddMultipleItems(oCollection)

	End While

	Call ClearGraphics

End Sub

Sub WriteClientGraphics(oLine1 As String)
	oFont = "Stylus BT"
	oFontSize = 35

	Dim oDoc As Document = ThisApplication.ActiveDocument

	' a reference to the component definition.
	Dim oCompDef As ComponentDefinition

	oCompDef = oDoc.ComponentDefinition

	Call ClearGraphics

	oClientGraphics = oCompDef.ClientGraphicsCollection.Add("Text Test")

	Dim oTG As TransientGeometry
	oTG = ThisApplication.TransientGeometry

	Dim oAnchorPoint As Point
	oAnchorPoint = oTG.CreatePoint(0, 1, 1)

	' Create a graphics node.
	Dim oNode As GraphicsNode
	oNode = oClientGraphics.AddNode(1)

	'[ Text1
	Dim oTextGraphics1 As TextGraphics
	oTextGraphics1 = oNode.AddTextGraphics
	oTextGraphics1.Text = oLine1

	' Set the text's anchor in model space.
	oTextGraphics1.Anchor = oAnchorPoint

	' Anchor the text graphics in the view.
	Call oTextGraphics1.SetViewSpaceAnchor( _
	oAnchorPoint, oTG.CreatePoint2d(40, 40), kTopLeftViewCorner)


	oTextGraphics1.Font = oFont
	oTextGraphics1.FontSize = oFontSize
	oTextGraphics1.PutTextColor(0, 0, 255)
	ThisApplication.ActiveView.Update
	']



End Sub

Function ClearGraphics
	' a reference to the component definition.
	Dim oCompDef As ComponentDefinition
	oCompDef = ThisApplication.ActiveDocument.ComponentDefinition

	' Attempt to get the existing client graphics object.  If it exists
	' delete it so the rest of the code can continue as if it never existed.
	Dim oClientGraphics As ClientGraphics
	On Error Resume Next
	oClientGraphics = oCompDef.ClientGraphicsCollection.Item("Text Test")
	If Err.Number = 0 Then
		oClientGraphics.Delete
	End If
	On Error GoTo 0
	ThisApplication.ActiveView.Update
End Function
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jul 2021 14:25:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/weights-from-assembly/m-p/10435854#M104241</guid>
      <dc:creator>Curtis_W</dc:creator>
      <dc:date>2021-07-01T14:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: Weights from assembly</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/weights-from-assembly/m-p/10435981#M104242</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/105031"&gt;@Curtis_W&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/83823"&gt;@karthur1&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;One thing I noticed ...&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Hey that's 2 things!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smirking_face:"&gt;😏&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thing 1:&lt;/P&gt;
&lt;P&gt;So... I don't know how to allow the user to switch between selecting subassemblies and parts using the Pick method with iLogic... there might be a clever way to code that, but I've never figured it out...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the previous example was set to filter for "leaf occurrences" meaning it allowed the user to select parts from within the sub assemblies...&amp;nbsp; this example is filtering for&amp;nbsp;"occurrences"... so it selects the entire subassembly&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;...but as far as I know it's an either/or choice as far as coding it&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thing 2:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This version removes a previously selected item, if it is selected again.... whereas the previous version simply disallowed it to be selected again.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thing3 (bonus):&lt;/P&gt;
&lt;P&gt;I changed the "feedback" to use the client graphics rather than the cursor tool tip, so you should see the weight and number of selected components in the top left of the screen, something like the image below... let me know if that doesn't display well... I've only experimented with using client graphics for this kind of thing in the past, so I don't know how well it translates to different monitor and display setups&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;BR /&gt;Best of luck to you in all of your Inventor pursuits,&lt;BR /&gt;Curtis&lt;BR /&gt;&lt;A href="http://inventortrenches.blogspot.com" target="_blank" rel="noopener"&gt;http://inventortrenches.blogspot.com&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Two things... yea, you know engineers cant add.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thing 1:&amp;nbsp; If figured that it was "either/ or".&amp;nbsp; I sort of liked the way it was originally, where we could pick single items from the graphics window, but if needed I could pick an assembly from the browser.&amp;nbsp; That would give me all the items in the sub.&amp;nbsp; That way you could have both.&lt;/P&gt;
&lt;P&gt;Thing 2:&amp;nbsp; Excellent.&amp;nbsp; Much better!!!&lt;/P&gt;
&lt;P&gt;Thing 3:&amp;nbsp; I like it. But if the background is the same color as your text, it might be difficult to see.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kirk&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jul 2021 14:53:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/weights-from-assembly/m-p/10435981#M104242</guid>
      <dc:creator>karthur1</dc:creator>
      <dc:date>2021-07-01T14:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: Weights from assembly</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/weights-from-assembly/m-p/10436135#M104243</link>
      <description>&lt;P&gt;ok, so here's a version that has some option that can be uncommented for selection and graphics colors, etc... this way folks can set the "things" up as they prefer.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Sub main
	
	'/////////// options
	
	oConversion = 1
	oUnit = " kg"

	'''uncomment these 2 lines to use lbs
	'	oConversion = 2.2046
	'	oUnit = " lbs mass"
	
	Dim oSelectionFilter As SelectionFilterEnum
	'subassembly selection
	oSelectionFilter = SelectionFilterEnum.kAssemblyOccurrenceFilter
	
	'''uncomment this line to use part selection
	'oSelectionFilter = SelectionFilterEnum.kAssemblyLeafOccurrenceFilter
	
	''' uncomment or change this to a named color scheme of your choice
	oColorScheme = "Light"	
	'oColorScheme = "Sky"
	
	Dim oColor As Color
    oColor = ThisApplication.TransientObjects.CreateColor(0, 0, 0) 'black
	
	'''uncomment one of these to change text color
	''' or create your own RGB color values
	'oColor = ThisApplication.TransientObjects.CreateColor(255, 0, 0) 'red
	'oColor = ThisApplication.TransientObjects.CreateColor(0, 255, 0) 'green
	'oColor = ThisApplication.TransientObjects.CreateColor(0, 0, 255) 'blue
	
	
	'/////////// end options

	oCurrentBackground = ThisApplication.ColorSchemes.BackgroundType
	oCurrentBGName = ThisApplication.ActiveColorScheme.Name

	ThisApplication.ColorSchemes.BackgroundType = BackgroundTypeEnum.kOneColorBackgroundType
	ThisApplication.ColorSchemes(oColorScheme).Activate

	On Error GoTo ResetColors
	

	Dim oDoc As AssemblyDocument = ThisApplication.ActiveDocument
	Dim oTotalMass As Double

	Dim oList As New ArrayList

	oSet = oDoc.CreateHighlightSet

	Dim oCollection As ObjectCollection
	oCollection = ThisApplication.TransientObjects.CreateObjectCollection

	While True
		oMsg = "Select components (press ESC to exit select)"

		Dim oOcc As ComponentOccurrence
		oOcc = ThisApplication.CommandManager.Pick(
		oSelectionFilter, oMsg)

		' If nothing gets selected then we're done	
		If IsNothing(oOcc) Then Exit While

		Dim oMassProps As MassProperties
		oMassProps = oOcc.Definition.Document.ComponentDefinition.MassProperties

		'check against list to prevent 
		'selecting same component twice
		If oList.Contains(oOcc.Name) = False Then
			oList.Add(oOcc.Name)
			oCollection.Add(oOcc)
			oTotalMass = oTotalMass + oMassProps.Mass

		Else
			oList.Remove(oOcc.Name)
			oCollection.RemoveByObject(oOcc)
			oTotalMass = oTotalMass - oMassProps.Mass

		End If

		oLine1 = Round(oTotalMass * oConversion, 3) &amp;amp; oUnit _
		&amp;amp; " ; " &amp;amp; oCollection.Count &amp;amp; " items selected"
		Call WriteClientGraphics(oLine1,oColor)
		oSet.AddMultipleItems(oCollection)

	End While

	Call ClearGraphics
	
	ResetColors :

	ThisApplication.ColorSchemes.BackgroundType = oCurrentBackground
	ThisApplication.ColorSchemes(oCurrentBGName).Activate

End Sub

Sub WriteClientGraphics(oLine1 As String, oColor As Color)
	oFont = "Stylus BT"
	oFontSize = 35

	Dim oDoc As Document = ThisApplication.ActiveDocument

	' a reference to the component definition.
	Dim oCompDef As ComponentDefinition

	oCompDef = oDoc.ComponentDefinition

	Call ClearGraphics

	oClientGraphics = oCompDef.ClientGraphicsCollection.Add("Text Test")

	Dim oTG As TransientGeometry
	oTG = ThisApplication.TransientGeometry

	Dim oAnchorPoint As Point
	oAnchorPoint = oTG.CreatePoint(0, 1, 1)

	' Create a graphics node.
	Dim oNode As GraphicsNode
	oNode = oClientGraphics.AddNode(1)

	'[ Text1
	Dim oTextGraphics1 As TextGraphics
	oTextGraphics1 = oNode.AddTextGraphics
	oTextGraphics1.Text = oLine1

	' Set the text's anchor in model space.
	oTextGraphics1.Anchor = oAnchorPoint

	' Anchor the text graphics in the view.
	Call oTextGraphics1.SetViewSpaceAnchor( _
	oAnchorPoint, oTG.CreatePoint2d(40, 40), kTopLeftViewCorner)


	oTextGraphics1.Font = oFont
	oTextGraphics1.FontSize = oFontSize

	oTextGraphics1.PutTextColor(oColor.Red, oColor.Green, oColor.Blue)
	ThisApplication.ActiveView.Update
	']



End Sub

Function ClearGraphics
	' a reference to the component definition.
	Dim oCompDef As ComponentDefinition
	oCompDef = ThisApplication.ActiveDocument.ComponentDefinition

	' Attempt to get the existing client graphics object.  If it exists
	' delete it so the rest of the code can continue as if it never existed.
	Dim oClientGraphics As ClientGraphics
	On Error Resume Next
	oClientGraphics = oCompDef.ClientGraphicsCollection.Item("Text Test")
	If Err.Number = 0 Then
		oClientGraphics.Delete
	End If
	On Error GoTo 0
	ThisApplication.ActiveView.Update
End Function
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jul 2021 15:34:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/weights-from-assembly/m-p/10436135#M104243</guid>
      <dc:creator>Curtis_W</dc:creator>
      <dc:date>2021-07-01T15:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: Weights from assembly</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/weights-from-assembly/m-p/10436218#M104244</link>
      <description>&lt;P&gt;I get this for the latest version.&amp;nbsp; Could not figure out where the error was.&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="karthur1_0-1625155216153.png" style="width: 477px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/936676i42FE0F49BEF355C5/image-dimensions/477x74?v=v2" width="477" height="74" role="button" title="karthur1_0-1625155216153.png" alt="karthur1_0-1625155216153.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jul 2021 16:01:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/weights-from-assembly/m-p/10436218#M104244</guid>
      <dc:creator>karthur1</dc:creator>
      <dc:date>2021-07-01T16:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: Weights from assembly</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/weights-from-assembly/m-p/10436308#M104245</link>
      <description>&lt;P&gt;hmmmm...I'm not sure, but it was probably something related to toggling the color schemes... but there might be some hiccups with using the client graphics that I'm not familiar with, since I've not used that all that much&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;here's two other versions....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;a simpler version that just uses the tool tip and gets rid of all the&amp;nbsp;color scheme and client graphics stuff&lt;/LI&gt;
&lt;LI&gt;and one that gets rid of all the color scheme stuff, and just writes the info to the tool tip and client graphics both&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;I hope this helps.&lt;BR /&gt;Best of luck to you in all of your Inventor pursuits,&lt;BR /&gt;Curtis&lt;BR /&gt;&lt;A href="http://inventortrenches.blogspot.com" target="_blank"&gt;http://inventortrenches.blogspot.com&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;version that just uses tool tip&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Sub main

	'/////////// options

	Dim oSelectionFilter As SelectionFilterEnum
	'subassembly selection
	oSelectionFilter = SelectionFilterEnum.kAssemblyOccurrenceFilter

	'''uncomment this line to use part selection
	'oSelectionFilter = SelectionFilterEnum.kAssemblyLeafOccurrenceFilter	

	oConversion = 1
	oUnit = " kg"

	'''uncomment these 2 lines to use lbs
	'	oConversion = 2.2046
	'	oUnit = " lbs mass"

	'/////////// end options

	Dim oDoc As AssemblyDocument = ThisApplication.ActiveDocument
	Dim oTotalMass As Double

	Dim oList As New ArrayList

	oSet = oDoc.CreateHighlightSet

	Dim oCollection As ObjectCollection
	oCollection = ThisApplication.TransientObjects.CreateObjectCollection

	oMsg = "Select a component (press ESC to end selection)"
	While True

		Dim oOcc As ComponentOccurrence
		oOcc = ThisApplication.CommandManager.Pick(
		oSelectionFilter, oMsg)

		' If nothing gets selected then we're done	
		If IsNothing(oOcc) Then Exit While

		Dim oMassProps As MassProperties
		oMassProps = oOcc.Definition.Document.ComponentDefinition.MassProperties

		'check against list to prevent 
		'selecting same component twice
		If oList.Contains(oOcc.Name) = False Then
			oList.Add(oOcc.Name)
			oCollection.Add(oOcc)
			oTotalMass = oTotalMass + oMassProps.Mass

		Else
			oList.Remove(oOcc.Name)
			oCollection.RemoveByObject(oOcc)
			oTotalMass = oTotalMass - oMassProps.Mass

		End If

		oMsg = Round(oTotalMass * oConversion, 3) &amp;amp; oUnit _
		&amp;amp; " ; " &amp;amp; oCollection.Count &amp;amp; " items selected"


		oSet.AddMultipleItems(oCollection)

	End While

	InputBox("Total mass in " &amp;amp; oUnit, "ilogic", Round(oTotalMass * oConversion, 3))

	oSet.Clear


End Sub

&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;version that uses client graphics&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Sub main

	'/////////// options

	Dim oSelectionFilter As SelectionFilterEnum
	'subassembly selection
	oSelectionFilter = SelectionFilterEnum.kAssemblyOccurrenceFilter

	'''uncomment this line to use part selection
	'oSelectionFilter = SelectionFilterEnum.kAssemblyLeafOccurrenceFilter	
	
	oConversion = 1
	oUnit = " kg"

	'''uncomment these 2 lines to use lbs
	'	oConversion = 2.2046
	'	oUnit = " lbs mass"

	'/////////// end options

	Dim oDoc As AssemblyDocument = ThisApplication.ActiveDocument
	Dim oTotalMass As Double

	Dim oList As New ArrayList

	oSet = oDoc.CreateHighlightSet

	Dim oCollection As ObjectCollection
	oCollection = ThisApplication.TransientObjects.CreateObjectCollection
	
	oMsg = "Select a component (press ESC to end selection)"
	While True
		
		Dim oOcc As ComponentOccurrence
		oOcc = ThisApplication.CommandManager.Pick(
		oSelectionFilter, oMsg)

		' If nothing gets selected then we're done	
		If IsNothing(oOcc) Then Exit While

		Dim oMassProps As MassProperties
		oMassProps = oOcc.Definition.Document.ComponentDefinition.MassProperties

		'check against list to prevent 
		'selecting same component twice
		If oList.Contains(oOcc.Name) = False Then
			oList.Add(oOcc.Name)
			oCollection.Add(oOcc)
			oTotalMass = oTotalMass + oMassProps.Mass

		Else
			oList.Remove(oOcc.Name)
			oCollection.RemoveByObject(oOcc)
			oTotalMass = oTotalMass - oMassProps.Mass

		End If

		oMsg = Round(oTotalMass * oConversion, 3) &amp;amp; oUnit _
		&amp;amp; " ; " &amp;amp; oCollection.Count &amp;amp; " items selected"
		
		Call WriteClientGraphics(oMsg)
		oSet.AddMultipleItems(oCollection)

	End While

	Call ClearGraphics


End Sub

Sub WriteClientGraphics(oLine1 As String)
	oFont = "Stylus BT"
	oFontSize = 35

	Dim oDoc As Document = ThisApplication.ActiveDocument

	' a reference to the component definition.
	Dim oCompDef As ComponentDefinition

	oCompDef = oDoc.ComponentDefinition

	Call ClearGraphics

	oClientGraphics = oCompDef.ClientGraphicsCollection.Add("Text Test")

	Dim oTG As TransientGeometry
	oTG = ThisApplication.TransientGeometry

	Dim oAnchorPoint As Point
	oAnchorPoint = oTG.CreatePoint(0, 1, 1)

	' Create a graphics node.
	Dim oNode As GraphicsNode
	oNode = oClientGraphics.AddNode(1)

	'[ Text1
	Dim oTextGraphics1 As TextGraphics
	oTextGraphics1 = oNode.AddTextGraphics
	oTextGraphics1.Text = oLine1

	' Set the text's anchor in model space.
	oTextGraphics1.Anchor = oAnchorPoint

	' Anchor the text graphics in the view.
	Call oTextGraphics1.SetViewSpaceAnchor( _
	oAnchorPoint, oTG.CreatePoint2d(40, 40), kTopLeftViewCorner)


	oTextGraphics1.Font = oFont
	oTextGraphics1.FontSize = oFontSize

	'oTextGraphics1.PutTextColor(0, 0, 0) 'black
	'oTextGraphics1.PutTextColor(255, 0, 0) 'red
	'oTextGraphics1.PutTextColor(0, 255, 0) 'green
	oTextGraphics1.PutTextColor(0, 0, 255) 'blue
	ThisApplication.ActiveView.Update
	']



End Sub

Function ClearGraphics
	' a reference to the component definition.
	Dim oCompDef As ComponentDefinition
	oCompDef = ThisApplication.ActiveDocument.ComponentDefinition

	' Attempt to get the existing client graphics object.  If it exists
	' delete it so the rest of the code can continue as if it never existed.
	Dim oClientGraphics As ClientGraphics
	On Error Resume Next
	oClientGraphics = oCompDef.ClientGraphicsCollection.Item("Text Test")
	If Err.Number = 0 Then
		oClientGraphics.Delete
	End If
	On Error GoTo 0
	ThisApplication.ActiveView.Update
End Function&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jul 2021 16:27:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/weights-from-assembly/m-p/10436308#M104245</guid>
      <dc:creator>Curtis_W</dc:creator>
      <dc:date>2021-07-01T16:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: Weights from assembly</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/weights-from-assembly/m-p/10436508#M104246</link>
      <description>&lt;P&gt;I tested both and no errors on either.&amp;nbsp; I like the one that writes it to the tool tip.... just my preference.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks again.&lt;/P&gt;
&lt;P&gt;Kirk&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jul 2021 17:54:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/weights-from-assembly/m-p/10436508#M104246</guid>
      <dc:creator>karthur1</dc:creator>
      <dc:date>2021-07-01T17:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: Weights from assembly</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/weights-from-assembly/m-p/10491347#M104247</link>
      <description>&lt;P&gt;Hi, I got this by reference from another thread.&amp;nbsp; I tried it and it works well.&amp;nbsp; Is there a way to have multiple-selection functionality?&amp;nbsp; (drag mouse and it picks everything in the window, shift-select in the browser window, etc)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jul 2021 17:11:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/weights-from-assembly/m-p/10491347#M104247</guid>
      <dc:creator>dlekx</dc:creator>
      <dc:date>2021-07-23T17:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: Weights from assembly</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/weights-from-assembly/m-p/10500220#M104248</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;It depends what is the purpose of your effort.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But if you only want a quick info I would suggest as follows:&lt;/P&gt;&lt;P&gt;1) select everything of interest for you (but this can only be components (parts or assemblies) of the top level)&lt;/P&gt;&lt;P&gt;2) Ctrl+C&lt;/P&gt;&lt;P&gt;3) open new assembly file&lt;/P&gt;&lt;P&gt;4) Ctrl+V&lt;/P&gt;&lt;P&gt;5) iProperties -&amp;gt; physical properties&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This will be faster than playing with LoD and requiring less effort, and also it is easier than changing other parts to reference BOM, and you will not produce errors in your original model.&lt;/P&gt;&lt;P&gt;But if this is a solution for you it depends on what exactly is that you are after.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are also other potential the like trick that come to my mind, but it all depend on the intent.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cris&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jul 2021 18:24:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/weights-from-assembly/m-p/10500220#M104248</guid>
      <dc:creator>Cris-Ideas</dc:creator>
      <dc:date>2021-07-27T18:24:34Z</dc:date>
    </item>
  </channel>
</rss>

