Can't constrain round stirrup to cover

atir5UTNF
Advocate
Advocate

Can't constrain round stirrup to cover

atir5UTNF
Advocate
Advocate

I have a model with round columns.
I wrote some code to add round stirrups to those columns.
When I tried to constrained the stirrups to column's cover I found that I can't do it for the first group at each column.
So I tried to do it from the UI, and I found it can be done only if I constraind those stirrups to other element first (other stirrups group in my case), and then I can select the cover as a constrain.
Any idea?

RebarConstraintsManager constraintsManager = rebar.GetRebarConstraintsManager();
IList<RebarConstrainedHandle> constrainedHandles = constraintsManager.GetAllHandles();
foreach (RebarConstrainedHandle handle in constrainedHandles)
{
   RebarHandleType handleType = handle.GetHandleType();
   if (handleType == RebarHandleType.Edge)
   {
      IList<RebarConstraint> rebarConstraints = constraintsManager.GetConstraintCandidatesForHandle(handle);
      //* BUG */
      //rebarConstraints is empty for first stirrups group

      ...
      //more code here
      ...
   }
}

 

roundStirrup2.jpg roundStirrup3.jpg

0 Likes
Reply
330 Views
6 Replies
Replies (6)

RPTHOMAS108
Mentor
Mentor

Can you share a file of this, I can't replicate in 2023.

 

Was thinking it might be to do with the lower ones being technically outside of the bottom cover due to split.

0 Likes

atir5UTNF
Advocate
Advocate

see attached.

 

Thanks!

0 Likes

RPTHOMAS108
Mentor
Mentor

Yes I can confirm the same behaviour now. It does seem like a bug to me also.

 

I drew a detail line level with the bottom bar dragged the extent outside and then back to the line. After that the constraints worked but that is obviously not acceptable.

 

So there seems no logical reason for why this is happening in terms of bar position or view extent. Probably your next steps are to outline a minimal reproducible case where you write the exact steps to recreate the issue and @ one of the Autodesk representatives that frequent this forum.

 

I don't think this has anything to do with other bars in the same element (as I recreated it without) it seems to be a case of constraints not being updated or associated with the bar. It is a bit like when the bar is off centre so perhaps there is some sensitivity issue there.

 

Seems also to be a general product issue and not specific to the API although it is obviously going to have an impact there also. I don't know much about how they organise resolution of these issues but it seems logical that raising it on the product specific forums could perhaps short-cut some of the process involved perhaps. That is: if they have a team that deal specifically with the API then they perhaps first investigate it and conclude that they need to pass it on elsewhere since it is a larger product issue (not sure).

0 Likes

atir5UTNF
Advocate
Advocate

When you mentioned "product specific forums", did you mean a "Revit Structure Forum"?
What is the formal way to report a bug?
I have another strange behavior with rebar constrains.
I can't select stirrup bar bend/hook bend as a constrain to column's rebars.

I acttualy want to open another post about that.

 

I thought about "sensitivity issue" too, so I used the exact vectors I took from column.GetTotalTransform() to create the stirrups.
I changed the column's bottom cover to 1 mm, to be sure that the lower stirrup is inside cover , but it didnwt help.
I found that If I create the lower stirrup 1.5 mm above his current level it works.
So I tried to create them above, set the cover and then move them back down to the place I want them, but it didn't work.
I guss I have to split those steps to two Transactions, one for "create" end another to "move down".

0 Likes

RPTHOMAS108
Mentor
Mentor

Yes the Revit structure forum.

 

However on second thoughts you may only get suggestions there from an end user perspective i.e. try this workaround i.e. move the bar up and down etc.

 

So it may be better to record it here.

0 Likes

caroline.gitonga
Autodesk
Autodesk

Hi @atir5UTNF,

Apologies I have not followed up on this sooner. I took sometime to try reproduce the issue on my end with the files you have shared and checking with my colleagues on the same. I have also noticed a similar effect as you have. I have logged the issue with our development team for a closer look under the ticket REVIT-201458 : Unable constrain round stirrup to cover. You are welcome to request an update on the status of this issue or to provide additional information on it at any time quoting this change request number.

As soon as I get any kind of information or update on the above, I will surely let you know soonest.

@RPTHOMAS108, thank you for taking this up and trying to reproduce it.

Carol Gitonga, Developer Advocacy and Support, ADN Open
0 Likes