Hi kjb,
Here's a quick video of how to set a list in a part file, it's pretty straight forward, but using this approach you'd have to have a list in each part file:
Working with an assembly is a bit more involved, here's a video (since I can't provide a example file set that you can open with your version) as well as the example rules. Note the one rule is just one line.
If this still doesn't meet your needs we can do the same thing using Excel.
Get List of Components rule:
iLogicVb.UpdateWhenDone = True
' Get the active document. Assumes a part document is active.
Dim oDoc As AssemblyDocument
oDoc = ThisApplication.ActiveDocument
' Get the UserParameters collection
Dim userParams As UserParameters
userParams = oDoc.ComponentDefinition.Parameters.UserParameters
'check For Parameter And create If Not found
Try
oTest = Parameter("Component_List")
Catch
oParam = userParams.AddByValue("Component_List","", UnitsTypeEnum.kTextUnits)
End Try
'set reference to assembly definition
Dim oAsmCompDef As AssemblyComponentDefinition
oAsmCompDef = oDoc.ComponentDefinition
'create temporary list to hold component names
Dim MyArrayList As New ArrayList
'Iterate through all of the occurrences
Dim oOccurrence As ComponentOccurrence
For Each oOccurrence In oAsmCompDef.Occurrences.AllReferencedOccurrences(oAsmCompDef)
MyArrayList.add( oOccurrence.Name )
Next
MultiValue.List("Component_List") = MyArrayList
Set Name to Selected Component rule:
Parameter(Component_List, "Engraved_Text") = Name_List
I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com