Revit 2025.3 API
Rebar |
Test whether two shapes have equivalent definitions by comparing
the RebarShapeDefinition and MultiplanarDefinition properties.
Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.3.0.0 (25.3.0.0)
Syntax
public bool IsSameShapeIgnoringHooks( RebarShape otherShape )
Public Function IsSameShapeIgnoringHooks ( otherShape As RebarShape ) As Boolean
public: bool IsSameShapeIgnoringHooks( RebarShape^ otherShape )
member IsSameShapeIgnoringHooks : otherShape : RebarShape -> bool
Parameters
- otherShape RebarShape
- Another shape to be compared to this one.
Return Value
BooleanTrue if the shape definitions match, false otherwise.

Exception | Condition |
---|---|
ArgumentNullException | A non-optional argument was null |

This method will return true if the definitions are exactly
equivalent, or if they are equivalent but have the opposite
start/end orientation.
Replaces the property RebarShape.SameShapeIgnoringHooks from prior releases.
See Also