Diagonal bars at wall openings

Diagonal bars at wall openings

miguel.gutierrezD74CZ
Advocate Advocate
366 Views
2 Replies
Message 1 of 3

Diagonal bars at wall openings

miguel.gutierrezD74CZ
Advocate
Advocate

Dear community, 

I would love to automate the placement of rebars at wall openings, so far I manage to grab the openings characteristics (points, planes, normal, etc.) thanks to Jeremy post

 
What I'm struggling with is bending the diagonal rebars if there is not enough room on the wall to place a 1m rebar length:
miguelgutierrezD74CZ_0-1653523090053.png

 

basically I'm looking forward to replicate this add-in but through Revit API. Any suggestions on which algorithm or api methods to explore to head me into the right direction?

 

Best regards

Accepted solutions (1)
367 Views
2 Replies
Replies (2)
Message 2 of 3

jeremy_tammik
Alumni
Alumni
Accepted solution

Blending the rebars?

 

Do you mean to calculate their intersection point and cut them off at that point?

 

That is a simple 2D line intersection calculation.

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
Message 3 of 3

miguel.gutierrezD74CZ
Advocate
Advocate

My bad, I meant to say *bending*, 

From a humble point of view, I'm hijacking your idea to find intersections between line and a plane. So I probably I'll have to loop through the wall faces and make sure the "a" distance be greater than 0.5, other way the rebar will bend a distance "b" in the direction of the plane

miguelgutierrezD74CZ_0-1653579110360.png

miguelgutierrezD74CZ_1-1653579170455.png

See you around Boss !

 

0 Likes