Identifying Lapped Bars in Beams and Columns and Placing Staggered Couplers using Revit API

Identifying Lapped Bars in Beams and Columns and Placing Staggered Couplers using Revit API

veeresh.huvinahalliACK3L
Enthusiast Enthusiast
379 Views
2 Replies
Message 1 of 3

Identifying Lapped Bars in Beams and Columns and Placing Staggered Couplers using Revit API

veeresh.huvinahalliACK3L
Enthusiast
Enthusiast

I am working on a Revit project where I need to identify the lapped bars in both beams and columns and place couplers in a staggered pattern along the length of the bars. Specifically, I want to:

  1. Detect which rebars in beams and columns are lapped.
  2. Apply couplers at the lapped sections, ensuring they are placed in a staggered arrangement to avoid overlap.

Could anyone please guide me on how to approach this using the Revit API? What methods or properties should I focus on for detecting the lapped rebars and correctly placing the couplers?

Any sample code or reference would be highly appreciated.

Thanks in advance!

0 Likes
380 Views
2 Replies
Replies (2)
Message 2 of 3

jeremy_tammik
Alumni
Alumni

I assume that you mean "overlapping" when you say "lapped"?

  

I would suggest addressing point 1 first. I cannot say anything about point 2 anyway, lacking appropriate domain expertise and product usage experience.

  

To determine overlapping linear elements, I would suggest:

  

  • Simplify the data to straight line segments
  • For debugging and visualisation purposes, I would suggest representing them by model lines
  • Implement an algorithm to determine overlapping line segments in 3D; this is a pure computational geometry task: 
    https://duckduckgo.com/?q=algorithm+ovelapping+line+segment+3d

      

How does that sound as a starting point?

   

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

veeresh.huvinahalliACK3L
Enthusiast
Enthusiast

Thank you for the update @jeremy_tammik  sir.

No sir what I'm meant say as lapped means that they are not directly intersecting but lapped I'm represent the same in 2D for better understanding.

veereshhuvinahalliACK3L_0-1729481954075.png

In the above image I have 3 rebar violet color area is my lapping zone so I'm trying to the write the logic for identifying that area and as we can see in image Rebar1 have a arc and line which is lapped with other bar so will have to delete those so that rebar1 and rebar 2 are aligned and we can place coupler between them same case for Rebar 2 and Rebar 3

0 Likes