Copy rebar from one element to another


#1

Hi,

Is it possible to copy a group, with a known name ?
I’m thinking about copying a group of rebar from one element to another.

Any ideas ?

Cheers,
Dennis


Warning: No property called Direction on Autodesk.DesignScript.Geometry.Point could be found
#2

Hi @d.kelfkens,

There were some recent discussions about groups and placing them if this helps…

https://forum.dynamobim.com/t/how-to-place-a-revit-model-group/7216/12

Cheers,
Dan


#3

Hi @Daniel_Woodcock1 ,

Thanks for your reply.
I’ve read the discussion. But what I’m actually looking for is a wat to select all rebar in a concrete beam and copy that to another beam. At first I thought about doing that using a group. But I don’t need to do that anymore.

Base question is : Can we select all rebar in a host (beam) using Dynamo ?

Cheers,
Dennis


#4

@d.kelfkens There is a custom package called “BIM4Struc.Rebar” that has got node called Rebar.GetHost. You can use that to get rebar host elements.


#5

To play a little further on the suggestion by @Kulkul:


#6

Thanks !
I’m going to work with this idea and let you know my progress.


#7

@Einar_Raknes Your solution works perfectly. I get a list of Rebar Items in the selected host.

I’m now having trouble copying them to another concrete beam. Copy.Translate doesn’t seem to work on rebar items.
I’ve seen posts about copying walls where people wrote that copying families isn’t possible. I can’t imagine this can’t be done.

I think I’m looking for a way to copy these rebars in a direction + distance. Direction and distance are then defined by the line between the two host (one with and on without rebar)


#8

Copy with distance should not be a problem, it will be a litte bit trickier if they are rotated differently too. Have you looked through the nodes in bim4struc? He has got a Rebar.Copy node.


#9

Found it !!!
Thanks for all the help @Einar_Raknes


#10

I tried to get it work with a rotated beam as well, but I have some trouble to determine the correct sign on the rotation. I must probably refresh some of my basic math skills. I modified the bim4struc node to include rotation.


#11

This is even better !!!
Thanks a lot !
Cheers,
Dennis


#12

@Einar_Raknes
Hi Einar,
I’ve tried your solution with the non modified bim4struc node (Rotation will be the next step :))
It seems that not only the rebar is copied but also the beam itself. Can you check this is happening at your model ?


#13

No in my graph only the rebars are copied. I fixed another issue with the python script, it did not change the host of the copied rebars. I also found a solution on the rotation.

I attached the dyn if you want to test it:

Rebar.Copy.dyn (17.4 KB)

Something for you to test as well @Dieter_Vermeulen?


Copy Rebar column to column
#14

Works perfect.
Many thanks !!!


#15

Hi Einar,

Can you try to copy a beam with stirrups ?
In my tests the stirrup shape changed in the beam with the copied bars.


#16

Hi everyone,

Did anybody try the solution above and noticed that the strirrup changed form in the copy ?


#17

I did a test and the stirrup remained unchanged. Do the beams have the same cover settings?


#18

Is it possible to do this with floor, walls…?


#19

Should work with all elements with location lines, like walls and beams. The rebars will not be stretched though.


#20

Yes, the cover settings are the same Einar. I’ve tried it on Revit 2016 and 2017 and different machines and models. I’ll post a demo later.