I am trying to pick all duplicate electrical equipment items that do not belong to groups. Tried this graph but I do not understan why the list.set difference produces only one item
For our better understanding, please turn on the previews of all the nodes
I think you may want to try swapping the inputs for List.SetDifference.
I’ll try it on monday, but it seems swapping inputs might do the trick. I’ll post as soon as I test it out
I think I may be doing some logical error here. Selecting directly in Revit gives me 8 duplicatesm List.RemoveItemAtIndex gives 213 - I think it may be due to my lack of understaning of how it works:
I think you are doing a logical error as well
You’re selecting all the electrical elements that belong to a group, then you are removing all the duplicate elements that are an electrical equipement. The result is : all the electrical equipement that are a duplicate and that belong to a group.
I think the best would be to :
- Select all the electrical equipement elements that belong to a group
- Select all the electrical equipements
- Subtract the two —> You get all the electrical equipement elements that do NOT belong to a group
- Select from the list you just created in 3 all the duplicates.
Also, the List.Create node has no use here
Not sure If I stated correctly what I am trying to achieve here. I have the same EE families in groups and free standing - they both give me an error. I am trying to select the ones that do not belong to groups AND give me the error and delete them. If I understand you right, your option would only to check for duplicates among ungrouped objects. It seems that I am not able to find overlapping objects, because List.DuplicateItemIndices doesn’t give me any of the overlapping objects (I should get an ID 6012336 for instance).
At least, do those 8 elements appear in Dynamo ?
I do not know how to help your more, I do not know any specifics about your projet.