Duplicate tags created when selecting multiple views (Create Tag + FilterByBoolMask lacing issue)

Hello, Dynamo Community!

Problem: When I select a single view, tagging works correctly (matches the actual door count). When I select multiple views, I get duplicate tags or it doesnt work…

Thank you so much

Try adjusting the list levels on the tagging node.
Set element and TagLocation @L2 or @L3

Thank you for your advice

i tryed it but still same problem

Can’t read the node titles in your graph image, but I’m guessing the issue isn’t in your core logic. If you’re collecting all doors(?) in these views, then there’s a high likelihood that you’re getting the same door in each view. An object’s “existence” in a view is not as simple as whether it’s visible or not. Similarly, an object’s “visibility” to the view is not as simple as whether it’s visible in the UI or not.

Mike is right, you probably have some list cleaning up to do, but I’d also check and see if you’re getting the same door in both views. You’ll probably need to clean up duplicates.

Hi, thanks for your help.

I added a list.UniqueItems (for multipel views) this time and selected just one view but it still cruch

Even with the right list levels, that would only give you the unique items per list. You need to check and see if there are duplicates between the two views. A quick way to check this is to combine both lists and then compare the unique items in the combined list. If you have more items in the combined list than the unique items, then you have duplicates somewhere. Grouping and getting group counts is also a good way to check because you can filter out groups with more than one item to see exactly which items show up more than once.

The error that you’re showing in the image above is about the input structure. The error says it’s expecting a single element but it’s getting a list. You need to change the list levels to provide the correct input structure. I’m guessing it’s looking element @L1 and TagLocation @L1.

Hi again thank you for help
i tried this i worked L1@ for view and L2@ for others
Thanks :folded_hands: