Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Split Rebar

5 REPLIES 5
Reply
Message 1 of 6
jamess166
1150 Views, 5 Replies

Split Rebar

I am trying to split the reinforcements, initially with a line as a reference. The logic is as follows:

    • I get the geometry of the reinforcement (curves).
    • I get the geometry of the reference line (curves).
    • From here come the questions: If I draw the line in a plan view, to intercept it with the reinforcement line, should I translate it in Z, if I am in a diagonal cut? maybe get the direction of the view and move it in that direction? How do I get this distance that I must transfer?
    • Assuming that I already found the solution so that the bar curves intersect with the line curve, now I must cut those curves, if the bar is a single section and straight, it could generate the curves through the starting point, intercept point and end point, and if the bar has more than one section ?, if it has curved elements ?, perhaps make a foreach to the list of curves of the bar, and that section that intercepts cut it and stop the loop there?   

 

If anyone has a clearer idea, I would really appreciate it. 

@jeremytammik 

Labels (2)
5 REPLIES 5
Message 2 of 6
jeremytammik
in reply to: jamess166

It sounds to me as if an illustrative sketch might help significantly to understand your needs.

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

Message 3 of 6
jamess166
in reply to: jeremytammik

Generally speaking, it's like applying the split tool, but for reinforcements.

 

Captura.JPG

 

Thank you very much

Message 4 of 6
sameh.nabil
in reply to: jamess166

i see you can

1) get the the bar length

2) change the bar length to the desired value

3) copy the bar many times till you reached to the required total length

 

i did it and it work

may be you will find a problem with legs but you can decrease its value 

Message 5 of 6
jamess166
in reply to: sameh.nabil

Maybe for a single type of shape if it works for me, but if I want it for all kinds of shapes, that's where it becomes complex, however I'm going to take up that project, since the solution comes to mind which is to work with the curves of the reinforcements, and work with vectors.
Message 6 of 6
jamess166
in reply to: jeremytammik

I still can't think of how to do it, I'm still working on it, to have a complete solution regarding structural reinforcement, I just need to include the split and extend command, which I haven't been able to achieve yet. I will publish my progress.

 

jamess166_0-1607139933413.png

 

Cheers!!!!

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Customer Advisory Groups


Rail Community