Can't constrain round stirrup to cover
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
...
}
}
Link copied