Copying rebar from beam to to another beam

Hi everyone,
I’m using the script posted by @Einar_Raknes in this discussion Copy rebar from one element to another: to copy rebars from one beam to another, but it works only if I change the entry IN[0] coming from the node List.FilterByBoolMask to “out” and it copies only the top rebar set in the beam?

In addition, I can’t figure out why the comaparison between the same beam’s instance in the ListEqual is false ??

Please check my references below:

Rebar.Copy.dyn (17.4 KB)

beam_test.rvt (3.4 MB)

Thanks.

Change the lacing on this node to “Longest”
image

I had a seperate issue when testing your script, and that was an issue with the BIM4Struc Custom node having an invalid input.

I Extracted the python from it and change the graph as shown below and it worked for me.

Example project.
image

1 Like

@pyXam

Thanks for your reply, I changed the lacing to longest and it works fine!! (I did not understand why changing lacing to longest in this case?)

Thanks.

Here is a nice read on lists which includes some explanation on lacing.

https://primer.dynamobim.org/06_Designing-with-Lists/6-1_whats-a-list.html

1 Like