Data tree trouble

Hello,
I have a question about tree data. When I try to add one of the elements to the data tree after editing, I get a tree with a different number of levels. How can I fix this?

The tree is shown below if only one value was previously filtered. In this case {3}.

But if previously only a few values ​​were filtered, then everything falls into place on one level in tree.

Please see attachment GH file.

Best regards

Olek

Post a file.

questuon tree level.gh (15.9 KB)

Please see attachment GH file.

Hi @olek1 ,

Have you tried “Match Tree” ?


Just a Suirify would do so.
questuon tree level_01.gh (20.8 KB)

Looking at your file , I can’t see why you are doing this when you can just use Region Union

It doesn’t matter what the operation was (it could be anything). It’s important to align the tree after the operation, since only one value is added to it. Thanks for the advice :).

The real answer to this is to pay attention to the number of zeros in the branch label and Trim Tree accordingly since Suirify will collapse both leading and trailing zeros and you may not want that.

Thank you, I’ll take that into account.