Rebar contraints change automatically
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am using Revit 2019 and have an issue with rebar constraint behaviors.
I created a tool to create and set rebar to a specific location inside a Beam element. When I use the default RebarBarType or other small bar type, the tool works fine. However, if I increase the bar type for the standard bar, whenever the stirrup is set into the Beam, the standard bars that suppose to snap to the bar segment of the stirrups automatically changed their location.
Take a closer look, I find that the constraint for Bar segment of the standard bars have changed automatically and unexpectedly.
It only happens with the straight shape (M_00 by default of Revit) and when the stirrups are added to the beam as shown below (I have splited the process into multiple commits)
before the stirrups are added
after the stirrup are added
I tried to pick a face of the beam and explicitly set the constraint with RebarConstraint.ReplaceReferenceTargets(), but it didn't work with shape driven rebar.
Why is this happening? How can I control this with the RebarContraint and RebarconstrainedHandle ,or other solution if possible? Thank you all in advance.