Is it possible to add multiple occurrences of the same part into a connection?
For example, if I write the following formula for connection:
Dim c As New Collection
'c.Count = 5
Result = c
I get only one instance of Me.Items(1) in connection. Actual task is more complex (Visio tree diagram traversal), but the result is the same: there is only the first occurrence of each part in resulting connection.
Solved! Go to Solution.
It is not possible. The Rulestream connection is implemented as a dictionary, which allows only 1 instance of the same object.
Like Rick said, with a Rulestream connection, only unique instances are held...but, what is that you are trying to do that needs to be bound by the following constraints:
1) Must be a RS connection object (as against an arraylist)
2) Must be multiple instances of exact same Object (vs. 1 instance with a quantity of 5)
I was going to use such connection to traverse an assembly tree like shown on a picture and build an indented BOM.
For example, partfamily instance 'LB00-1100002-002 - Screw ISO 1234' has 3 occurrences. Each occurrence has its own parent, quantity and level.
I've already solved this problem another way.