Help me Merge tree branches

There are two tree lists containing polyline curves. and I’m trying to merge two lists.

However, when I’m trying to merge the two lists branches which have the same path completely combined

but what I want to do is put it together in the same hierarchy. I mean, I want to list these two.

Please tell me how to do it.

Upload GH file

2 Likes

2 Likes

Thanks to you, I solved it!
I got the result I want, but I have an additional question in the process!

As far as I know, ‘Renumber’ of ‘Tree Branch’ is a new assignment of existing branches’ paths according to the newly proposed path, just like ‘Replace Paths’.

However, in the current situation, the result was different from the presented path.
The paths extracted from Tree Statistics are not unified paths like {0;73} and {1;0}, but how does it change to {73}, {74} when you put it in the ‘Tree Branch-Renumber’?

It doesn’t. That doesn’t make sense?

3. Attach minimal versions of all the relevant files

1 Like

I’m asking because ‘Tree Branch-Renumber’ is different from the function I originally knew. I thought it would be renumbering as the input paths, but output path was converted differently. So I was wondering what the principal was.

p.s. Please understand that the gh file is too big to attach

3. Attach minimal versions of all the relevant files
If you have a gh file you have a question about, attach it to the post. Do not expect that people will recreate a file based on a screen-shot because that’s a lot of pointless work. It’s also a good idea to remove everything non-essential from a GH file. You can use the Internalise Data menu option to cut everything to the left of a parameter:
https://www.youtube.com/watch?v=EW8HgWXBcKk

Tree Branch just retrieves the data tree branches in the P input:

if you Mantain paths, the order Paths are listed in the P input doesn’t really matter as they are sortred by their own path value:

while if you Renumber paths, they get renumbered progressively from zero, so the order they are recalled matters:

one important thing in relation to the following:

1 Like