C

Rebar

Version comparison

Members across versions

116 members across 9 versions · 58 added later · 15 removed · 21 changed · 15 obsolete

Member-name color: stable · changed · removed · obsolete · added later

Member 2020 2021 2022 2023 2024 2025 2025.3 2026 2027
M AreBarIndicesValidForSplit(Document, ElementId, ISet<Int32>)
not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced added
same same same same same same same same same
same same same same same same same same same
M CanElementBeSplit(Document, ElementId)
not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced added
M CanSuppressFirstOrLastBar(View, Int32)
same same same same same same same same same
M CanUseHookType(ElementId)
same same same same same same same same same
same same same same same same same same same
M ComputeSpacingsBetweenBars(Document, String, Double)
not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced added
same same same same same same same same same
M ContainsValidArcRadiiForStyleAndBarType(IList<Curve>, RebarStyle, RebarBarType)
same same same same same same same same same
M CreateFreeForm(Document, Guid, RebarBarType, Element)
same same same same same same same same same
M CreateFreeForm(Document, RebarBarType, Element, IList<CurveLoop>, RebarFreeFormValidationResult%)
same same same same same same same changed missing
M CreateFreeForm(Document, RebarBarType, Element, IList<IList<Curve>>, RebarFreeFormValidationResult%)
same same same same same same same changed missing
M CreateFreeForm(Document, RebarBarType, Element, IList<CurveLoop>, RebarStyle)
not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced added same
M CreateFreeForm(Document, RebarBarType, Element, IList<IList<Curve>>, RebarStyle)
not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced added same
M CreateFromCurves(Document, RebarStyle, RebarBarType, RebarHookType, RebarHookType, Element, XYZ, IList<Curve>, RebarHookOrientation, RebarHookOrientation, Boolean, Boolean)
same same same same same changed same changed missing
M CreateFromCurves(Document, RebarStyle, RebarBarType, RebarHookType, RebarHookType, Element, XYZ, IList<Curve>, RebarHookOrientation, RebarHookOrientation, Double, Double, ElementId, ElementId, Boolean, Boolean)
not yet introduced added same same same changed same changed missing
M CreateFromCurves(Document, RebarStyle, RebarBarType, Element, XYZ, IList<Curve>, BarTerminationsData, Boolean, Boolean)
not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced added same
M CreateFromCurvesAndShape(Document, RebarShape, RebarBarType, RebarHookType, RebarHookType, Element, XYZ, IList<Curve>, RebarHookOrientation, RebarHookOrientation)
same same same same same changed same changed missing
M CreateFromCurvesAndShape(Document, RebarShape, RebarBarType, RebarHookType, RebarHookType, Element, XYZ, IList<Curve>, RebarHookOrientation, RebarHookOrientation, Double, Double, ElementId, ElementId)
not yet introduced added same same same changed same changed missing
M CreateFromCurvesAndShape(Document, RebarShape, RebarBarType, Element, XYZ, IList<Curve>, BarTerminationsData)
not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced added same
M CreateFromRebarShape(Document, RebarShape, RebarBarType, Element, XYZ, XYZ, XYZ)
same same same same same changed same same same
same same same same same same same same same
not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced added same
not yet introduced added same same same same same same same
same same same same same same same same same
same same same same same same same same same
not yet introduced not yet introduced added same same same same same same
same same same same same same same same same
M GetCenterlineCurves(Boolean, Boolean, Boolean, MultiplanarOption, Int32)
same same same same same same same changed same
M GetCouplerId(Int32)
same same same same same same same same same
not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced added same
M GetCrankLength(Int32)
not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced added same
not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced added same
M GetCrankRatio(Int32)
not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced added same
not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced added same
M GetCrankTypeId(Int32)
not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced added same
same same same same same same same same same
same same same same same same same same same
same same same same same same same same same
same same same same same same same changed missing
not yet introduced added same same same same same changed missing
M GetHookTypeId(Int32)
same same same same same same same same same
same same same same same same same same same
M GetLapLength(Int32)
not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced added same same same
M GetLayoutFormula(Boolean)
not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced added
not yet introduced not yet introduced added same same same same same same
not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced added same
M GetOverridableHookParameters(ISet<ElementId>, ISet<ElementId>, ISet<ElementId>, ISet<ElementId>)
not yet introduced added same same same same same same same
M GetParameterValueAtIndex(ElementId, Int32)
same same same same same same same same same
same same same same same changed same same same
same same same same same same same same same
M GetRebarSplice(Int32)
not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced added same same same
same same same same same changed same same same
same same same same same same same same same
same same same same same same same same same
not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced added
not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced added same same same
not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced added same
not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced added same
M GetTransformedCenterlineCurves(Boolean, Boolean, Boolean, MultiplanarOption, Int32)
not yet introduced not yet introduced added same same same same changed same
same same same same same same same same same
same same same same same same same changed same
M IsBarHidden(View, Int32)
same same same same same same same same same
not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced added same
not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced added
not yet introduced added same same same same same same same
same same same same same same same same same
same same same same same same same same same
same same same same same same same same same
M IsSolidInView(View3D)
same same same changed missing missing missing missing missing
same same same same same same same same same
M IsValidCustomSpacingFormula(Document, String)
not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced added
M MoveBarInSet(Int32, Transform)
not yet introduced not yet introduced added same same same same same same
M RebarShapeMatchesCurvesAndHooks(RebarShape, RebarBarType, XYZ, IList<Curve>, RebarHookType, RebarHookType, RebarHookOrientation, RebarHookOrientation)
same same same same same same same changed missing
M RebarShapeMatchesCurvesHooksAndEndTreatment(RebarShape, RebarBarType, XYZ, IList<Curve>, RebarHookType, RebarHookType, RebarHookOrientation, RebarHookOrientation, Double, Double, ElementId, ElementId)
not yet introduced added same same same same same changed missing
M RemoveSplice(Int32)
not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced added same same same
not yet introduced not yet introduced added same same same same same same
M SetBarHiddenStatus(View, Int32, Boolean)
same same same same same same same same same
M SetBarIncluded(Boolean, Int32)
not yet introduced not yet introduced added same same same same same same
M SetCrankAngledLengthOverride(Int32, Double)
not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced added same
M SetCrankLengthOverride(Int32, Double)
not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced added same
M SetCrankOffsetLengthOverride(Int32, Double)
not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced added same
M SetCrankRatioOverride(Int32, Double)
not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced added same
not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced added same
M SetCrankTypeId(Int32, ElementId)
not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced added same
M SetEndTreatmentTypeId(Int32, ElementId)
not yet introduced added same same same same same same same
M SetHookOrientation(Int32, RebarHookOrientation)
same same same same same same same changed missing
M SetHookRotationAngle(Double, Int32)
not yet introduced added same same same same same changed missing
M SetHookTypeId(Int32, ElementId)
same same same same same same same same same
M SetHostId(Document, ElementId)
same same same same same same same same same
M SetLayoutFormula(String)
not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced added
M SetPresentationMode(View, RebarPresentationMode)
same same same same same same same same same
M SetSolidInView(View3D, Boolean)
same same same changed missing missing missing missing missing
M SetTerminationOrientation(Int32, RebarTerminationOrientation)
not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced added same
M SetTerminationRotationAngle(Int32, Double)
not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced added same
M SetUnobscuredInView(View, Boolean)
same same same same same same same same same
M SplitRebar(Document, ElementId, ISet<Int32>, Boolean, Boolean)
not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced added
not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced added same same same
same same same same same changed same missing missing
not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced added
not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced added same
not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced added
not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced added same
not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced added same same same
same same same same same same same same same
same same same same same same same same same
same same same same same same same same same
P Mass
not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced not yet introduced added
same same same same same same same same same
same same same same same same same same same
same same same same same same same same same
same same same same same same same same same
same same same same same same same same same
same same same same same same same same same
P Volume
same same same same same same same same same

Per-version detail

Click a version below to see what changed in that release vs your current frame (2025).
Identical to 2025: 2025.3
2025 current

Changes in 2020 vs 2025 2 added 21 missing 6 changed

Flip API Versions →

Added in 2020 (new since 2025)

Missing in 2020 (only available in 2025)

Changed members

Rebar.CreateFromCurves(Document, RebarStyle, RebarBarType, RebarHookType, RebarHookType, Element, XYZ, IList<Curve>, RebarHookOrientation, RebarHookOrientation, Boolean, Boolean)
doc Document A document.
style RebarStyle The usage of the bar, "standard" or "stirrup/tie".
barType RebarBarType A RebarBarType element that defines bar diameter, bend radius and material of the rebar.
startHook RebarHookType A RebarHookType element that defines the hook for the start of the bar. If this parameter is <span class="keyword"><span data-languagespecifictext="cpp=nullptr|vb=Nothing|nu=null" id="LSTF60C4A90_3"></span></span>, it means to create a rebar with no hook.
endHook RebarHookType A RebarHookType element that defines the hook for the end of the bar. If this parameter is <span class="keyword"><span data-languagespecifictext="cpp=nullptr|vb=Nothing|nu=null" id="LSTF60C4A90_4"></span></span>, it means to create a rebar with no hook.
host Element The element to which the rebar belongs. The element must support rebar hosting; <span class="noLink">[!:Autodesk::Revit::DB::Structure::RebarHostData]</span>.
norm XYZ The normal to the plane that the rebar curves lie on.
curves IList<Curve> An array of curves that define the shape of the rebar curves. They must belong to the plane defined by the normal and origin. Bends and hooks should not be included in the array of curves.
startHookOrient RebarHookOrientation Defines the orientation of the hook plane at the start of the rebar with respect to the orientation of the first curve and the plane normal. Only two values are permitted: Value = Right: The hook is on your right as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up." Value = Left: The hook is on your left as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up."
endHookOrient RebarHookOrientation Defines the orientation of the hook plane at the end of the rebar with respect to the orientation of the last curve and the plane normal. Only two values are permitted: Value = Right: The hook is on your right as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up." Value = Left: The hook is on your left as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up."
useExistingShapeIfPossible Boolean Attempts to assign a RebarShape from those existing in the document. If no shape matches, this function returns null if createNewShape is false or it will create a new shape if createNewShape is true. When both parameters are "true", the behavior is the same as sketching rebar in the UI. At least one of these parameters must be "true". If the RebarShapeDefinesHooks flag in ReinforcementSettings has been set to false, and a RebarShape cannot be found with both matching curves and hooks, then this method will perform a second search, ignoring hook information.
createNewShape Boolean Creates a shape in the document to match the curves, hooks, and style specified, and assigns it to the new rebar instance. Shape creation will not succeed unless one or more other shapes already exist in the document, and these shapes have enough shape parameters to define a shape for these curves.
→ returns nullNothingnullptrRebar The newly created Rebar instance, or if the operation fails.
Rebar.CreateFromCurvesAndShape(Document, RebarShape, RebarBarType, RebarHookType, RebarHookType, Element, XYZ, IList<Curve>, RebarHookOrientation, RebarHookOrientation)
doc Document A document.
rebarShape RebarShape A RebarShape element that defines the shape of the rebar. A RebarShape element matches curves and hooks. A RebarShape element provides RebarStyle of the rebar.
barType RebarBarType A RebarBarType element that defines bar diameter, bend radius and material of the rebar.
startHook RebarHookType A RebarHookType element that defines the hook for the start of the bar. If this parameter is <span class="keyword"><span data-languagespecifictext="cpp=nullptr|vb=Nothing|nu=null" id="LST4D58DFAB_3"></span></span>, it means to create a rebar with no hook.
endHook RebarHookType A RebarHookType element that defines the hook for the end of the bar. If this parameter is <span class="keyword"><span data-languagespecifictext="cpp=nullptr|vb=Nothing|nu=null" id="LST4D58DFAB_4"></span></span>, it means to create a rebar with no hook.
host Element The element to which the rebar belongs. The element must support rebar hosting; <span class="noLink">[!:Autodesk::Revit::DB::Structure::RebarHostData]</span>.
norm XYZ The normal to the plane that the rebar curves lie on.
curves IList<Curve> An array of curves that define the shape of the rebar curves. They must belong to the plane defined by the normal and origin. Bends and hooks should not be included in the array of curves.
startHookOrient RebarHookOrientation Defines the orientation of the hook plane at the start of the rebar with respect to the orientation of the first curve and the plane normal. Only two values are permitted: Value = Right: The hook is on your right as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up." Value = Left: The hook is on your left as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up."
endHookOrient RebarHookOrientation Defines the orientation of the hook plane at the end of the rebar with respect to the orientation of the last curve and the plane normal. Only two values are permitted: Value = Right: The hook is on your right as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up." Value = Left: The hook is on your left as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up."
→ returns nullNothingnullptrRebar The newly created Rebar instance, or if the operation fails.
Rebar.CreateFromRebarShape(Document, RebarShape, RebarBarType, Element, XYZ, XYZ, XYZ)
doc Document A document.
rebarShape RebarShape A RebarShape element that defines the shape of the rebar.
barType RebarBarType A RebarBarType element that defines bar diameter, bend radius and material of the rebar.
host Element The element to which the rebar belongs. The element must support rebar hosting; <span class="noLink">[!:Autodesk::Revit::DB::Structure::RebarHostData]</span>.
origin XYZ The lower-left corner of the shape's bounding box will be placed at this point in the project.
xVec XYZ The x-axis in the shape definition will be mapped to this direction in the project.
yVec XYZ The y-axis in the shape definition will be mapped to this direction in the project.
→ returns nullNothingnullptrRebar The newly created Rebar instance, or if the operation fails.
Rebar.GetPresentationMode(View)
dBView View The view.
→ returns RebarPresentationMode The presentation mode.
Rebar.GetReinforcementRoundingManager()
→ returns RebarRoundingManager The rounding manager.
Rebar.DistributionType()
Became obsolete in 2025: <p> This property is deprecated in Revit 2025 and may be removed in a later version of Revit. The property Autodesk.Revit.DB.Structure.RebarShapeDrivenAccessor.UseRebarConstraintsToProduceVaryingBars can be used instead. </p> <p>To check if the set can have (but not necessary have) varying length bars you can use Autodesk.Revit.DB.Structure.Rebar.CanHaveVaryingLengthBars. To check if the set has varying length bars you can use Autodesk.Revit.DB.Structure.Rebar.HasVaryingLengthBars.</p>
→ returns DistributionType

Changes in 2021 vs 2025 2 added 12 missing 8 changed

Flip API Versions →

Added in 2021 (new since 2025)

Missing in 2021 (only available in 2025)

Changed members

Rebar.CreateFromCurves(Document, RebarStyle, RebarBarType, RebarHookType, RebarHookType, Element, XYZ, IList<Curve>, RebarHookOrientation, RebarHookOrientation, Boolean, Boolean)
doc Document A document.
style RebarStyle The usage of the bar, "standard" or "stirrup/tie".
barType RebarBarType A RebarBarType element that defines bar diameter, bend radius and material of the rebar.
startHook RebarHookType A RebarHookType element that defines the hook for the start of the bar. If this parameter is <span class="keyword"><span data-languagespecifictext="cpp=nullptr|vb=Nothing|nu=null" id="LSTF60C4A90_3"></span></span>, it means to create a rebar with no hook.
endHook RebarHookType A RebarHookType element that defines the hook for the end of the bar. If this parameter is <span class="keyword"><span data-languagespecifictext="cpp=nullptr|vb=Nothing|nu=null" id="LSTF60C4A90_4"></span></span>, it means to create a rebar with no hook.
host Element The element to which the rebar belongs. The element must support rebar hosting; <span class="noLink">[!:Autodesk::Revit::DB::Structure::RebarHostData]</span>.
norm XYZ The normal to the plane that the rebar curves lie on.
curves IList<Curve> An array of curves that define the shape of the rebar curves. They must belong to the plane defined by the normal and origin. Bends and hooks should not be included in the array of curves.
startHookOrient RebarHookOrientation Defines the orientation of the hook plane at the start of the rebar with respect to the orientation of the first curve and the plane normal. Only two values are permitted: Value = Right: The hook is on your right as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up." Value = Left: The hook is on your left as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up."
endHookOrient RebarHookOrientation Defines the orientation of the hook plane at the end of the rebar with respect to the orientation of the last curve and the plane normal. Only two values are permitted: Value = Right: The hook is on your right as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up." Value = Left: The hook is on your left as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up."
useExistingShapeIfPossible Boolean Attempts to assign a RebarShape from those existing in the document. If no shape matches, this function returns null if createNewShape is false or it will create a new shape if createNewShape is true. When both parameters are "true", the behavior is the same as sketching rebar in the UI. At least one of these parameters must be "true". If the RebarShapeDefinesHooks flag in ReinforcementSettings has been set to false, and a RebarShape cannot be found with both matching curves and hooks, then this method will perform a second search, ignoring hook information.
createNewShape Boolean Creates a shape in the document to match the curves, hooks, and style specified, and assigns it to the new rebar instance. Shape creation will not succeed unless one or more other shapes already exist in the document, and these shapes have enough shape parameters to define a shape for these curves.
→ returns nullNothingnullptrRebar The newly created Rebar instance, or if the operation fails.
Rebar.CreateFromCurves(Document, RebarStyle, RebarBarType, RebarHookType, RebarHookType, Element, XYZ, IList<Curve>, RebarHookOrientation, RebarHookOrientation, Double, Double, ElementId, ElementId, Boolean, Boolean)
doc Document A document.
style RebarStyle The usage of the bar, "standard" or "stirrup/tie".
barType RebarBarType A RebarBarType element that defines bar diameter, bend radius and material of the rebar.
startHook RebarHookType A RebarHookType element that defines the hook for the start of the bar. If this parameter is <span class="keyword"><span data-languagespecifictext="cpp=nullptr|vb=Nothing|nu=null" id="LSTD615B078_3"></span></span>, it means to create a rebar with no hook.
endHook RebarHookType A RebarHookType element that defines the hook for the end of the bar. If this parameter is <span class="keyword"><span data-languagespecifictext="cpp=nullptr|vb=Nothing|nu=null" id="LSTD615B078_4"></span></span>, it means to create a rebar with no hook.
host Element The element to which the rebar belongs. The element must support rebar hosting; <span class="noLink">[!:Autodesk::Revit::DB::Structure::RebarHostData]</span>.
norm XYZ The normal to the plane that the rebar curves lie on.
curves IList<Curve> An array of curves that define the shape of the rebar curves. They must belong to the plane defined by the normal and origin. Bends and hooks should not be included in the array of curves.
startHookOrient RebarHookOrientation Defines the orientation of the hook plane at the start of the rebar with respect to the orientation of the first curve and the plane normal. Only two values are permitted: Value = Right: The hook is on your right as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up." Value = Left: The hook is on your left as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up."
endHookOrient RebarHookOrientation Defines the orientation of the hook plane at the end of the rebar with respect to the orientation of the last curve and the plane normal. Only two values are permitted: Value = Right: The hook is on your right as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up." Value = Left: The hook is on your left as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up."
hookRotationAngleAtStart Double The out of plane hook rotation angle at the start of the bar.
hookRotationAngleAtEnd Double The out of plane hook rotation angle at the end of the bar.
endTreatmentTypeIdAtStart ElementId The end treatment type id at the start of the bar.
endTreatmentTypeIdAtEnd ElementId The end treatment type id at the end of the bar.
useExistingShapeIfPossible Boolean Attempts to assign a RebarShape from those existing in the document. If no shape matches, this function returns <span class="keyword"><span data-languagespecifictext="cpp=nullptr|vb=Nothing|nu=null" id="LSTD615B078_7"></span></span> if createNewShape is false or it will create a new shape if createNewShape is true. When both parameters are "true", the behavior is the same as sketching rebar in the UI. At least one of these parameters must be "true". If the RebarShapeDefinesHooks flag in ReinforcementSettings has been set to false, and a RebarShape cannot be found with both matching curves and hooks, then this method will perform a second search, ignoring hook information.
createNewShape Boolean Creates a shape in the document to match the curves, hooks, and style specified, and assigns it to the new rebar instance. Shape creation will not succeed unless one or more other shapes already exist in the document, and these shapes have enough shape parameters to define a shape for these curves.
→ returns nullNothingnullptrRebar The newly created Rebar instance, or if the operation fails.
Rebar.CreateFromCurvesAndShape(Document, RebarShape, RebarBarType, RebarHookType, RebarHookType, Element, XYZ, IList<Curve>, RebarHookOrientation, RebarHookOrientation)
doc Document A document.
rebarShape RebarShape A RebarShape element that defines the shape of the rebar. A RebarShape element matches curves and hooks. A RebarShape element provides RebarStyle of the rebar.
barType RebarBarType A RebarBarType element that defines bar diameter, bend radius and material of the rebar.
startHook RebarHookType A RebarHookType element that defines the hook for the start of the bar. If this parameter is <span class="keyword"><span data-languagespecifictext="cpp=nullptr|vb=Nothing|nu=null" id="LST4D58DFAB_3"></span></span>, it means to create a rebar with no hook.
endHook RebarHookType A RebarHookType element that defines the hook for the end of the bar. If this parameter is <span class="keyword"><span data-languagespecifictext="cpp=nullptr|vb=Nothing|nu=null" id="LST4D58DFAB_4"></span></span>, it means to create a rebar with no hook.
host Element The element to which the rebar belongs. The element must support rebar hosting; <span class="noLink">[!:Autodesk::Revit::DB::Structure::RebarHostData]</span>.
norm XYZ The normal to the plane that the rebar curves lie on.
curves IList<Curve> An array of curves that define the shape of the rebar curves. They must belong to the plane defined by the normal and origin. Bends and hooks should not be included in the array of curves.
startHookOrient RebarHookOrientation Defines the orientation of the hook plane at the start of the rebar with respect to the orientation of the first curve and the plane normal. Only two values are permitted: Value = Right: The hook is on your right as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up." Value = Left: The hook is on your left as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up."
endHookOrient RebarHookOrientation Defines the orientation of the hook plane at the end of the rebar with respect to the orientation of the last curve and the plane normal. Only two values are permitted: Value = Right: The hook is on your right as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up." Value = Left: The hook is on your left as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up."
→ returns nullNothingnullptrRebar The newly created Rebar instance, or if the operation fails.
Rebar.CreateFromCurvesAndShape(Document, RebarShape, RebarBarType, RebarHookType, RebarHookType, Element, XYZ, IList<Curve>, RebarHookOrientation, RebarHookOrientation, Double, Double, ElementId, ElementId)
doc Document A document.
rebarShape RebarShape A RebarShape element that defines the shape of the rebar. A RebarShape element that matches curves, hooks, hook rotation angles and End Treatment. A RebarShape element that provides the RebarStyle of the rebar.
barType RebarBarType A RebarBarType element that defines bar diameter, bend radius and material of the rebar.
startHook RebarHookType A RebarHookType element that defines the hook for the start of the bar. If this parameter is <span class="keyword"><span data-languagespecifictext="cpp=nullptr|vb=Nothing|nu=null" id="LST41A74797_3"></span></span>, it means to create a rebar with no hook.
endHook RebarHookType A RebarHookType element that defines the hook for the end of the bar. If this parameter is <span class="keyword"><span data-languagespecifictext="cpp=nullptr|vb=Nothing|nu=null" id="LST41A74797_4"></span></span>, it means to create a rebar with no hook.
host Element The element to which the rebar belongs. The element must support rebar hosting; <span class="noLink">[!:Autodesk::Revit::DB::Structure::RebarHostData]</span>.
norm XYZ The normal to the plane that the rebar curves lie on.
curves IList<Curve> An array of curves that define the shape of the rebar curves. They must belong to the plane defined by the normal and origin. Bends and hooks should not be included in the array of curves.
startHookOrient RebarHookOrientation Defines the orientation of the hook plane at the start of the rebar with respect to the orientation of the first curve and the plane normal. Only two values are permitted: Value = Right: The hook is on your right as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up." Value = Left: The hook is on your left as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up."
endHookOrient RebarHookOrientation Defines the orientation of the hook plane at the end of the rebar with respect to the orientation of the last curve and the plane normal. Only two values are permitted: Value = Right: The hook is on your right as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up." Value = Left: The hook is on your left as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up."
hookRotationAngleAtStart Double The out of plane hook rotation angle at the start of the bar.
hookRotationAngleAtEnd Double The out of plane hook rotation angle at the end of the bar.
endTreatmentTypeIdAtStart ElementId The end treatment type id at the start of the bar.
endTreatmentTypeIdAtEnd ElementId The end treatment type id at the end of the bar.
→ returns nullNothingnullptrRebar The newly created Rebar instance, or if the operation fails.
Rebar.CreateFromRebarShape(Document, RebarShape, RebarBarType, Element, XYZ, XYZ, XYZ)
doc Document A document.
rebarShape RebarShape A RebarShape element that defines the shape of the rebar.
barType RebarBarType A RebarBarType element that defines bar diameter, bend radius and material of the rebar.
host Element The element to which the rebar belongs. The element must support rebar hosting; <span class="noLink">[!:Autodesk::Revit::DB::Structure::RebarHostData]</span>.
origin XYZ The lower-left corner of the shape's bounding box will be placed at this point in the project.
xVec XYZ The x-axis in the shape definition will be mapped to this direction in the project.
yVec XYZ The y-axis in the shape definition will be mapped to this direction in the project.
→ returns nullNothingnullptrRebar The newly created Rebar instance, or if the operation fails.
Rebar.GetPresentationMode(View)
dBView View The view.
→ returns RebarPresentationMode The presentation mode.
Rebar.GetReinforcementRoundingManager()
→ returns RebarRoundingManager The rounding manager.
Rebar.DistributionType()
Became obsolete in 2025: <p> This property is deprecated in Revit 2025 and may be removed in a later version of Revit. The property Autodesk.Revit.DB.Structure.RebarShapeDrivenAccessor.UseRebarConstraintsToProduceVaryingBars can be used instead. </p> <p>To check if the set can have (but not necessary have) varying length bars you can use Autodesk.Revit.DB.Structure.Rebar.CanHaveVaryingLengthBars. To check if the set has varying length bars you can use Autodesk.Revit.DB.Structure.Rebar.HasVaryingLengthBars.</p>
→ returns DistributionType

Changes in 2022 vs 2025 2 added 6 missing 8 changed

Flip API Versions →

Added in 2022 (new since 2025)

Missing in 2022 (only available in 2025)

Changed members

Rebar.CreateFromCurves(Document, RebarStyle, RebarBarType, RebarHookType, RebarHookType, Element, XYZ, IList<Curve>, RebarHookOrientation, RebarHookOrientation, Boolean, Boolean)
doc Document A document.
style RebarStyle The usage of the bar, "standard" or "stirrup/tie".
barType RebarBarType A RebarBarType element that defines bar diameter, bend radius and material of the rebar.
startHook RebarHookType A RebarHookType element that defines the hook for the start of the bar. If this parameter is <span class="keyword"><span data-languagespecifictext="cpp=nullptr|vb=Nothing|nu=null" id="LSTF60C4A90_3"></span></span>, it means to create a rebar with no hook.
endHook RebarHookType A RebarHookType element that defines the hook for the end of the bar. If this parameter is <span class="keyword"><span data-languagespecifictext="cpp=nullptr|vb=Nothing|nu=null" id="LSTF60C4A90_4"></span></span>, it means to create a rebar with no hook.
host Element The element to which the rebar belongs. The element must support rebar hosting; <span class="noLink">[!:Autodesk::Revit::DB::Structure::RebarHostData]</span>.
norm XYZ The normal to the plane that the rebar curves lie on.
curves IList<Curve> An array of curves that define the shape of the rebar curves. They must belong to the plane defined by the normal and origin. Bends and hooks should not be included in the array of curves.
startHookOrient RebarHookOrientation Defines the orientation of the hook plane at the start of the rebar with respect to the orientation of the first curve and the plane normal. Only two values are permitted: Value = Right: The hook is on your right as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up." Value = Left: The hook is on your left as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up."
endHookOrient RebarHookOrientation Defines the orientation of the hook plane at the end of the rebar with respect to the orientation of the last curve and the plane normal. Only two values are permitted: Value = Right: The hook is on your right as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up." Value = Left: The hook is on your left as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up."
useExistingShapeIfPossible Boolean Attempts to assign a RebarShape from those existing in the document. If no shape matches, this function returns null if createNewShape is false or it will create a new shape if createNewShape is true. When both parameters are "true", the behavior is the same as sketching rebar in the UI. At least one of these parameters must be "true". If the RebarShapeDefinesHooks flag in ReinforcementSettings has been set to false, and a RebarShape cannot be found with both matching curves and hooks, then this method will perform a second search, ignoring hook information.
createNewShape Boolean Creates a shape in the document to match the curves, hooks, and style specified, and assigns it to the new rebar instance. Shape creation will not succeed unless one or more other shapes already exist in the document, and these shapes have enough shape parameters to define a shape for these curves.
→ returns nullNothingnullptrRebar The newly created Rebar instance, or if the operation fails.
Rebar.CreateFromCurves(Document, RebarStyle, RebarBarType, RebarHookType, RebarHookType, Element, XYZ, IList<Curve>, RebarHookOrientation, RebarHookOrientation, Double, Double, ElementId, ElementId, Boolean, Boolean)
doc Document A document.
style RebarStyle The usage of the bar, "standard" or "stirrup/tie".
barType RebarBarType A RebarBarType element that defines bar diameter, bend radius and material of the rebar.
startHook RebarHookType A RebarHookType element that defines the hook for the start of the bar. If this parameter is <span class="keyword"><span data-languagespecifictext="cpp=nullptr|vb=Nothing|nu=null" id="LSTD615B078_3"></span></span>, it means to create a rebar with no hook.
endHook RebarHookType A RebarHookType element that defines the hook for the end of the bar. If this parameter is <span class="keyword"><span data-languagespecifictext="cpp=nullptr|vb=Nothing|nu=null" id="LSTD615B078_4"></span></span>, it means to create a rebar with no hook.
host Element The element to which the rebar belongs. The element must support rebar hosting; <span class="noLink">[!:Autodesk::Revit::DB::Structure::RebarHostData]</span>.
norm XYZ The normal to the plane that the rebar curves lie on.
curves IList<Curve> An array of curves that define the shape of the rebar curves. They must belong to the plane defined by the normal and origin. Bends and hooks should not be included in the array of curves.
startHookOrient RebarHookOrientation Defines the orientation of the hook plane at the start of the rebar with respect to the orientation of the first curve and the plane normal. Only two values are permitted: Value = Right: The hook is on your right as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up." Value = Left: The hook is on your left as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up."
endHookOrient RebarHookOrientation Defines the orientation of the hook plane at the end of the rebar with respect to the orientation of the last curve and the plane normal. Only two values are permitted: Value = Right: The hook is on your right as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up." Value = Left: The hook is on your left as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up."
hookRotationAngleAtStart Double The out of plane hook rotation angle at the start of the bar.
hookRotationAngleAtEnd Double The out of plane hook rotation angle at the end of the bar.
endTreatmentTypeIdAtStart ElementId The end treatment type id at the start of the bar.
endTreatmentTypeIdAtEnd ElementId The end treatment type id at the end of the bar.
useExistingShapeIfPossible Boolean Attempts to assign a RebarShape from those existing in the document. If no shape matches, this function returns <span class="keyword"><span data-languagespecifictext="cpp=nullptr|vb=Nothing|nu=null" id="LSTD615B078_7"></span></span> if createNewShape is false or it will create a new shape if createNewShape is true. When both parameters are "true", the behavior is the same as sketching rebar in the UI. At least one of these parameters must be "true". If the RebarShapeDefinesHooks flag in ReinforcementSettings has been set to false, and a RebarShape cannot be found with both matching curves and hooks, then this method will perform a second search, ignoring hook information.
createNewShape Boolean Creates a shape in the document to match the curves, hooks, and style specified, and assigns it to the new rebar instance. Shape creation will not succeed unless one or more other shapes already exist in the document, and these shapes have enough shape parameters to define a shape for these curves.
→ returns nullNothingnullptrRebar The newly created Rebar instance, or if the operation fails.
Rebar.CreateFromCurvesAndShape(Document, RebarShape, RebarBarType, RebarHookType, RebarHookType, Element, XYZ, IList<Curve>, RebarHookOrientation, RebarHookOrientation)
doc Document A document.
rebarShape RebarShape A RebarShape element that defines the shape of the rebar. A RebarShape element matches curves and hooks. A RebarShape element provides RebarStyle of the rebar.
barType RebarBarType A RebarBarType element that defines bar diameter, bend radius and material of the rebar.
startHook RebarHookType A RebarHookType element that defines the hook for the start of the bar. If this parameter is <span class="keyword"><span data-languagespecifictext="cpp=nullptr|vb=Nothing|nu=null" id="LST4D58DFAB_3"></span></span>, it means to create a rebar with no hook.
endHook RebarHookType A RebarHookType element that defines the hook for the end of the bar. If this parameter is <span class="keyword"><span data-languagespecifictext="cpp=nullptr|vb=Nothing|nu=null" id="LST4D58DFAB_4"></span></span>, it means to create a rebar with no hook.
host Element The element to which the rebar belongs. The element must support rebar hosting; <span class="noLink">[!:Autodesk::Revit::DB::Structure::RebarHostData]</span>.
norm XYZ The normal to the plane that the rebar curves lie on.
curves IList<Curve> An array of curves that define the shape of the rebar curves. They must belong to the plane defined by the normal and origin. Bends and hooks should not be included in the array of curves.
startHookOrient RebarHookOrientation Defines the orientation of the hook plane at the start of the rebar with respect to the orientation of the first curve and the plane normal. Only two values are permitted: Value = Right: The hook is on your right as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up." Value = Left: The hook is on your left as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up."
endHookOrient RebarHookOrientation Defines the orientation of the hook plane at the end of the rebar with respect to the orientation of the last curve and the plane normal. Only two values are permitted: Value = Right: The hook is on your right as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up." Value = Left: The hook is on your left as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up."
→ returns nullNothingnullptrRebar The newly created Rebar instance, or if the operation fails.
Rebar.CreateFromCurvesAndShape(Document, RebarShape, RebarBarType, RebarHookType, RebarHookType, Element, XYZ, IList<Curve>, RebarHookOrientation, RebarHookOrientation, Double, Double, ElementId, ElementId)
doc Document A document.
rebarShape RebarShape A RebarShape element that defines the shape of the rebar. A RebarShape element that matches curves, hooks, hook rotation angles and End Treatment. A RebarShape element that provides the RebarStyle of the rebar.
barType RebarBarType A RebarBarType element that defines bar diameter, bend radius and material of the rebar.
startHook RebarHookType A RebarHookType element that defines the hook for the start of the bar. If this parameter is <span class="keyword"><span data-languagespecifictext="cpp=nullptr|vb=Nothing|nu=null" id="LST41A74797_3"></span></span>, it means to create a rebar with no hook.
endHook RebarHookType A RebarHookType element that defines the hook for the end of the bar. If this parameter is <span class="keyword"><span data-languagespecifictext="cpp=nullptr|vb=Nothing|nu=null" id="LST41A74797_4"></span></span>, it means to create a rebar with no hook.
host Element The element to which the rebar belongs. The element must support rebar hosting; <span class="noLink">[!:Autodesk::Revit::DB::Structure::RebarHostData]</span>.
norm XYZ The normal to the plane that the rebar curves lie on.
curves IList<Curve> An array of curves that define the shape of the rebar curves. They must belong to the plane defined by the normal and origin. Bends and hooks should not be included in the array of curves.
startHookOrient RebarHookOrientation Defines the orientation of the hook plane at the start of the rebar with respect to the orientation of the first curve and the plane normal. Only two values are permitted: Value = Right: The hook is on your right as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up." Value = Left: The hook is on your left as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up."
endHookOrient RebarHookOrientation Defines the orientation of the hook plane at the end of the rebar with respect to the orientation of the last curve and the plane normal. Only two values are permitted: Value = Right: The hook is on your right as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up." Value = Left: The hook is on your left as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up."
hookRotationAngleAtStart Double The out of plane hook rotation angle at the start of the bar.
hookRotationAngleAtEnd Double The out of plane hook rotation angle at the end of the bar.
endTreatmentTypeIdAtStart ElementId The end treatment type id at the start of the bar.
endTreatmentTypeIdAtEnd ElementId The end treatment type id at the end of the bar.
→ returns nullNothingnullptrRebar The newly created Rebar instance, or if the operation fails.
Rebar.CreateFromRebarShape(Document, RebarShape, RebarBarType, Element, XYZ, XYZ, XYZ)
doc Document A document.
rebarShape RebarShape A RebarShape element that defines the shape of the rebar.
barType RebarBarType A RebarBarType element that defines bar diameter, bend radius and material of the rebar.
host Element The element to which the rebar belongs. The element must support rebar hosting; <span class="noLink">[!:Autodesk::Revit::DB::Structure::RebarHostData]</span>.
origin XYZ The lower-left corner of the shape's bounding box will be placed at this point in the project.
xVec XYZ The x-axis in the shape definition will be mapped to this direction in the project.
yVec XYZ The y-axis in the shape definition will be mapped to this direction in the project.
→ returns nullNothingnullptrRebar The newly created Rebar instance, or if the operation fails.
Rebar.GetPresentationMode(View)
dBView View The view.
→ returns RebarPresentationMode The presentation mode.
Rebar.GetReinforcementRoundingManager()
→ returns RebarRoundingManager The rounding manager.
Rebar.DistributionType()
Became obsolete in 2025: <p> This property is deprecated in Revit 2025 and may be removed in a later version of Revit. The property Autodesk.Revit.DB.Structure.RebarShapeDrivenAccessor.UseRebarConstraintsToProduceVaryingBars can be used instead. </p> <p>To check if the set can have (but not necessary have) varying length bars you can use Autodesk.Revit.DB.Structure.Rebar.CanHaveVaryingLengthBars. To check if the set has varying length bars you can use Autodesk.Revit.DB.Structure.Rebar.HasVaryingLengthBars.</p>
→ returns DistributionType

Changes in 2023 vs 2025 2 added 6 missing 8 changed

Flip API Versions →

Added in 2023 (new since 2025)

Missing in 2023 (only available in 2025)

Changed members

Rebar.CreateFromCurves(Document, RebarStyle, RebarBarType, RebarHookType, RebarHookType, Element, XYZ, IList<Curve>, RebarHookOrientation, RebarHookOrientation, Boolean, Boolean)
doc Document A document.
style RebarStyle The usage of the bar, "standard" or "stirrup/tie".
barType RebarBarType A RebarBarType element that defines bar diameter, bend radius and material of the rebar.
startHook RebarHookType A RebarHookType element that defines the hook for the start of the bar. If this parameter is <span class="keyword"><span data-languagespecifictext="cpp=nullptr|vb=Nothing|nu=null" id="LSTF60C4A90_3"></span></span>, it means to create a rebar with no hook.
endHook RebarHookType A RebarHookType element that defines the hook for the end of the bar. If this parameter is <span class="keyword"><span data-languagespecifictext="cpp=nullptr|vb=Nothing|nu=null" id="LSTF60C4A90_4"></span></span>, it means to create a rebar with no hook.
host Element The element to which the rebar belongs. The element must support rebar hosting; <span class="noLink">[!:Autodesk::Revit::DB::Structure::RebarHostData]</span>.
norm XYZ The normal to the plane that the rebar curves lie on.
curves IList<Curve> An array of curves that define the shape of the rebar curves. They must belong to the plane defined by the normal and origin. Bends and hooks should not be included in the array of curves.
startHookOrient RebarHookOrientation Defines the orientation of the hook plane at the start of the rebar with respect to the orientation of the first curve and the plane normal. Only two values are permitted: Value = Right: The hook is on your right as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up." Value = Left: The hook is on your left as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up."
endHookOrient RebarHookOrientation Defines the orientation of the hook plane at the end of the rebar with respect to the orientation of the last curve and the plane normal. Only two values are permitted: Value = Right: The hook is on your right as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up." Value = Left: The hook is on your left as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up."
useExistingShapeIfPossible Boolean Attempts to assign a RebarShape from those existing in the document. If no shape matches, this function returns null if createNewShape is false or it will create a new shape if createNewShape is true. When both parameters are "true", the behavior is the same as sketching rebar in the UI. At least one of these parameters must be "true". If the RebarShapeDefinesHooks flag in ReinforcementSettings has been set to false, and a RebarShape cannot be found with both matching curves and hooks, then this method will perform a second search, ignoring hook information.
createNewShape Boolean Creates a shape in the document to match the curves, hooks, and style specified, and assigns it to the new rebar instance. Shape creation will not succeed unless one or more other shapes already exist in the document, and these shapes have enough shape parameters to define a shape for these curves.
→ returns nullNothingnullptrRebar The newly created Rebar instance, or if the operation fails.
Rebar.CreateFromCurves(Document, RebarStyle, RebarBarType, RebarHookType, RebarHookType, Element, XYZ, IList<Curve>, RebarHookOrientation, RebarHookOrientation, Double, Double, ElementId, ElementId, Boolean, Boolean)
doc Document A document.
style RebarStyle The usage of the bar, "standard" or "stirrup/tie".
barType RebarBarType A RebarBarType element that defines bar diameter, bend radius and material of the rebar.
startHook RebarHookType A RebarHookType element that defines the hook for the start of the bar. If this parameter is <span class="keyword"><span data-languagespecifictext="cpp=nullptr|vb=Nothing|nu=null" id="LSTD615B078_3"></span></span>, it means to create a rebar with no hook.
endHook RebarHookType A RebarHookType element that defines the hook for the end of the bar. If this parameter is <span class="keyword"><span data-languagespecifictext="cpp=nullptr|vb=Nothing|nu=null" id="LSTD615B078_4"></span></span>, it means to create a rebar with no hook.
host Element The element to which the rebar belongs. The element must support rebar hosting; <span class="noLink">[!:Autodesk::Revit::DB::Structure::RebarHostData]</span>.
norm XYZ The normal to the plane that the rebar curves lie on.
curves IList<Curve> An array of curves that define the shape of the rebar curves. They must belong to the plane defined by the normal and origin. Bends and hooks should not be included in the array of curves.
startHookOrient RebarHookOrientation Defines the orientation of the hook plane at the start of the rebar with respect to the orientation of the first curve and the plane normal. Only two values are permitted: Value = Right: The hook is on your right as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up." Value = Left: The hook is on your left as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up."
endHookOrient RebarHookOrientation Defines the orientation of the hook plane at the end of the rebar with respect to the orientation of the last curve and the plane normal. Only two values are permitted: Value = Right: The hook is on your right as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up." Value = Left: The hook is on your left as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up."
hookRotationAngleAtStart Double The out of plane hook rotation angle at the start of the bar.
hookRotationAngleAtEnd Double The out of plane hook rotation angle at the end of the bar.
endTreatmentTypeIdAtStart ElementId The end treatment type id at the start of the bar.
endTreatmentTypeIdAtEnd ElementId The end treatment type id at the end of the bar.
useExistingShapeIfPossible Boolean Attempts to assign a RebarShape from those existing in the document. If no shape matches, this function returns <span class="keyword"><span data-languagespecifictext="cpp=nullptr|vb=Nothing|nu=null" id="LSTD615B078_7"></span></span> if createNewShape is false or it will create a new shape if createNewShape is true. When both parameters are "true", the behavior is the same as sketching rebar in the UI. At least one of these parameters must be "true". If the RebarShapeDefinesHooks flag in ReinforcementSettings has been set to false, and a RebarShape cannot be found with both matching curves and hooks, then this method will perform a second search, ignoring hook information.
createNewShape Boolean Creates a shape in the document to match the curves, hooks, and style specified, and assigns it to the new rebar instance. Shape creation will not succeed unless one or more other shapes already exist in the document, and these shapes have enough shape parameters to define a shape for these curves.
→ returns nullNothingnullptrRebar The newly created Rebar instance, or if the operation fails.
Rebar.CreateFromCurvesAndShape(Document, RebarShape, RebarBarType, RebarHookType, RebarHookType, Element, XYZ, IList<Curve>, RebarHookOrientation, RebarHookOrientation)
doc Document A document.
rebarShape RebarShape A RebarShape element that defines the shape of the rebar. A RebarShape element matches curves and hooks. A RebarShape element provides RebarStyle of the rebar.
barType RebarBarType A RebarBarType element that defines bar diameter, bend radius and material of the rebar.
startHook RebarHookType A RebarHookType element that defines the hook for the start of the bar. If this parameter is <span class="keyword"><span data-languagespecifictext="cpp=nullptr|vb=Nothing|nu=null" id="LST4D58DFAB_3"></span></span>, it means to create a rebar with no hook.
endHook RebarHookType A RebarHookType element that defines the hook for the end of the bar. If this parameter is <span class="keyword"><span data-languagespecifictext="cpp=nullptr|vb=Nothing|nu=null" id="LST4D58DFAB_4"></span></span>, it means to create a rebar with no hook.
host Element The element to which the rebar belongs. The element must support rebar hosting; <span class="noLink">[!:Autodesk::Revit::DB::Structure::RebarHostData]</span>.
norm XYZ The normal to the plane that the rebar curves lie on.
curves IList<Curve> An array of curves that define the shape of the rebar curves. They must belong to the plane defined by the normal and origin. Bends and hooks should not be included in the array of curves.
startHookOrient RebarHookOrientation Defines the orientation of the hook plane at the start of the rebar with respect to the orientation of the first curve and the plane normal. Only two values are permitted: Value = Right: The hook is on your right as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up." Value = Left: The hook is on your left as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up."
endHookOrient RebarHookOrientation Defines the orientation of the hook plane at the end of the rebar with respect to the orientation of the last curve and the plane normal. Only two values are permitted: Value = Right: The hook is on your right as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up." Value = Left: The hook is on your left as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up."
→ returns nullNothingnullptrRebar The newly created Rebar instance, or if the operation fails.
Rebar.CreateFromCurvesAndShape(Document, RebarShape, RebarBarType, RebarHookType, RebarHookType, Element, XYZ, IList<Curve>, RebarHookOrientation, RebarHookOrientation, Double, Double, ElementId, ElementId)
doc Document A document.
rebarShape RebarShape A RebarShape element that defines the shape of the rebar. A RebarShape element that matches curves, hooks, hook rotation angles and End Treatment. A RebarShape element that provides the RebarStyle of the rebar.
barType RebarBarType A RebarBarType element that defines bar diameter, bend radius and material of the rebar.
startHook RebarHookType A RebarHookType element that defines the hook for the start of the bar. If this parameter is <span class="keyword"><span data-languagespecifictext="cpp=nullptr|vb=Nothing|nu=null" id="LST41A74797_3"></span></span>, it means to create a rebar with no hook.
endHook RebarHookType A RebarHookType element that defines the hook for the end of the bar. If this parameter is <span class="keyword"><span data-languagespecifictext="cpp=nullptr|vb=Nothing|nu=null" id="LST41A74797_4"></span></span>, it means to create a rebar with no hook.
host Element The element to which the rebar belongs. The element must support rebar hosting; <span class="noLink">[!:Autodesk::Revit::DB::Structure::RebarHostData]</span>.
norm XYZ The normal to the plane that the rebar curves lie on.
curves IList<Curve> An array of curves that define the shape of the rebar curves. They must belong to the plane defined by the normal and origin. Bends and hooks should not be included in the array of curves.
startHookOrient RebarHookOrientation Defines the orientation of the hook plane at the start of the rebar with respect to the orientation of the first curve and the plane normal. Only two values are permitted: Value = Right: The hook is on your right as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up." Value = Left: The hook is on your left as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up."
endHookOrient RebarHookOrientation Defines the orientation of the hook plane at the end of the rebar with respect to the orientation of the last curve and the plane normal. Only two values are permitted: Value = Right: The hook is on your right as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up." Value = Left: The hook is on your left as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up."
hookRotationAngleAtStart Double The out of plane hook rotation angle at the start of the bar.
hookRotationAngleAtEnd Double The out of plane hook rotation angle at the end of the bar.
endTreatmentTypeIdAtStart ElementId The end treatment type id at the start of the bar.
endTreatmentTypeIdAtEnd ElementId The end treatment type id at the end of the bar.
→ returns nullNothingnullptrRebar The newly created Rebar instance, or if the operation fails.
Rebar.CreateFromRebarShape(Document, RebarShape, RebarBarType, Element, XYZ, XYZ, XYZ)
doc Document A document.
rebarShape RebarShape A RebarShape element that defines the shape of the rebar.
barType RebarBarType A RebarBarType element that defines bar diameter, bend radius and material of the rebar.
host Element The element to which the rebar belongs. The element must support rebar hosting; <span class="noLink">[!:Autodesk::Revit::DB::Structure::RebarHostData]</span>.
origin XYZ The lower-left corner of the shape's bounding box will be placed at this point in the project.
xVec XYZ The x-axis in the shape definition will be mapped to this direction in the project.
yVec XYZ The y-axis in the shape definition will be mapped to this direction in the project.
→ returns nullNothingnullptrRebar The newly created Rebar instance, or if the operation fails.
Rebar.GetPresentationMode(View)
dBView View The view.
→ returns RebarPresentationMode The presentation mode.
Rebar.GetReinforcementRoundingManager()
→ returns RebarRoundingManager The rounding manager.
Rebar.DistributionType()
Became obsolete in 2025: <p> This property is deprecated in Revit 2025 and may be removed in a later version of Revit. The property Autodesk.Revit.DB.Structure.RebarShapeDrivenAccessor.UseRebarConstraintsToProduceVaryingBars can be used instead. </p> <p>To check if the set can have (but not necessary have) varying length bars you can use Autodesk.Revit.DB.Structure.Rebar.CanHaveVaryingLengthBars. To check if the set has varying length bars you can use Autodesk.Revit.DB.Structure.Rebar.HasVaryingLengthBars.</p>
→ returns DistributionType

Changes in 2024 vs 2025 6 missing 8 changed

Flip API Versions →

Missing in 2024 (only available in 2025)

Changed members

Rebar.CreateFromCurves(Document, RebarStyle, RebarBarType, RebarHookType, RebarHookType, Element, XYZ, IList<Curve>, RebarHookOrientation, RebarHookOrientation, Boolean, Boolean)
doc Document A document.
style RebarStyle The usage of the bar, "standard" or "stirrup/tie".
barType RebarBarType A RebarBarType element that defines bar diameter, bend radius and material of the rebar.
startHook RebarHookType A RebarHookType element that defines the hook for the start of the bar. If this parameter is <span class="keyword"><span data-languagespecifictext="cpp=nullptr|vb=Nothing|nu=null" id="LSTF60C4A90_3"></span></span>, it means to create a rebar with no hook.
endHook RebarHookType A RebarHookType element that defines the hook for the end of the bar. If this parameter is <span class="keyword"><span data-languagespecifictext="cpp=nullptr|vb=Nothing|nu=null" id="LSTF60C4A90_4"></span></span>, it means to create a rebar with no hook.
host Element The element to which the rebar belongs. The element must support rebar hosting; <span class="noLink">[!:Autodesk::Revit::DB::Structure::RebarHostData]</span>.
norm XYZ The normal to the plane that the rebar curves lie on.
curves IList<Curve> An array of curves that define the shape of the rebar curves. They must belong to the plane defined by the normal and origin. Bends and hooks should not be included in the array of curves.
startHookOrient RebarHookOrientation Defines the orientation of the hook plane at the start of the rebar with respect to the orientation of the first curve and the plane normal. Only two values are permitted: Value = Right: The hook is on your right as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up." Value = Left: The hook is on your left as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up."
endHookOrient RebarHookOrientation Defines the orientation of the hook plane at the end of the rebar with respect to the orientation of the last curve and the plane normal. Only two values are permitted: Value = Right: The hook is on your right as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up." Value = Left: The hook is on your left as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up."
useExistingShapeIfPossible Boolean Attempts to assign a RebarShape from those existing in the document. If no shape matches, this function returns null if createNewShape is false or it will create a new shape if createNewShape is true. When both parameters are "true", the behavior is the same as sketching rebar in the UI. At least one of these parameters must be "true". If the RebarShapeDefinesHooks flag in ReinforcementSettings has been set to false, and a RebarShape cannot be found with both matching curves and hooks, then this method will perform a second search, ignoring hook information.
createNewShape Boolean Creates a shape in the document to match the curves, hooks, and style specified, and assigns it to the new rebar instance. Shape creation will not succeed unless one or more other shapes already exist in the document, and these shapes have enough shape parameters to define a shape for these curves.
→ returns nullNothingnullptrRebar The newly created Rebar instance, or if the operation fails.
Rebar.CreateFromCurves(Document, RebarStyle, RebarBarType, RebarHookType, RebarHookType, Element, XYZ, IList<Curve>, RebarHookOrientation, RebarHookOrientation, Double, Double, ElementId, ElementId, Boolean, Boolean)
doc Document A document.
style RebarStyle The usage of the bar, "standard" or "stirrup/tie".
barType RebarBarType A RebarBarType element that defines bar diameter, bend radius and material of the rebar.
startHook RebarHookType A RebarHookType element that defines the hook for the start of the bar. If this parameter is <span class="keyword"><span data-languagespecifictext="cpp=nullptr|vb=Nothing|nu=null" id="LSTD615B078_3"></span></span>, it means to create a rebar with no hook.
endHook RebarHookType A RebarHookType element that defines the hook for the end of the bar. If this parameter is <span class="keyword"><span data-languagespecifictext="cpp=nullptr|vb=Nothing|nu=null" id="LSTD615B078_4"></span></span>, it means to create a rebar with no hook.
host Element The element to which the rebar belongs. The element must support rebar hosting; <span class="noLink">[!:Autodesk::Revit::DB::Structure::RebarHostData]</span>.
norm XYZ The normal to the plane that the rebar curves lie on.
curves IList<Curve> An array of curves that define the shape of the rebar curves. They must belong to the plane defined by the normal and origin. Bends and hooks should not be included in the array of curves.
startHookOrient RebarHookOrientation Defines the orientation of the hook plane at the start of the rebar with respect to the orientation of the first curve and the plane normal. Only two values are permitted: Value = Right: The hook is on your right as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up." Value = Left: The hook is on your left as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up."
endHookOrient RebarHookOrientation Defines the orientation of the hook plane at the end of the rebar with respect to the orientation of the last curve and the plane normal. Only two values are permitted: Value = Right: The hook is on your right as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up." Value = Left: The hook is on your left as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up."
hookRotationAngleAtStart Double The out of plane hook rotation angle at the start of the bar.
hookRotationAngleAtEnd Double The out of plane hook rotation angle at the end of the bar.
endTreatmentTypeIdAtStart ElementId The end treatment type id at the start of the bar.
endTreatmentTypeIdAtEnd ElementId The end treatment type id at the end of the bar.
useExistingShapeIfPossible Boolean Attempts to assign a RebarShape from those existing in the document. If no shape matches, this function returns <span class="keyword"><span data-languagespecifictext="cpp=nullptr|vb=Nothing|nu=null" id="LSTD615B078_7"></span></span> if createNewShape is false or it will create a new shape if createNewShape is true. When both parameters are "true", the behavior is the same as sketching rebar in the UI. At least one of these parameters must be "true". If the RebarShapeDefinesHooks flag in ReinforcementSettings has been set to false, and a RebarShape cannot be found with both matching curves and hooks, then this method will perform a second search, ignoring hook information.
createNewShape Boolean Creates a shape in the document to match the curves, hooks, and style specified, and assigns it to the new rebar instance. Shape creation will not succeed unless one or more other shapes already exist in the document, and these shapes have enough shape parameters to define a shape for these curves.
→ returns nullNothingnullptrRebar The newly created Rebar instance, or if the operation fails.
Rebar.CreateFromCurvesAndShape(Document, RebarShape, RebarBarType, RebarHookType, RebarHookType, Element, XYZ, IList<Curve>, RebarHookOrientation, RebarHookOrientation)
doc Document A document.
rebarShape RebarShape A RebarShape element that defines the shape of the rebar. A RebarShape element matches curves and hooks. A RebarShape element provides RebarStyle of the rebar.
barType RebarBarType A RebarBarType element that defines bar diameter, bend radius and material of the rebar.
startHook RebarHookType A RebarHookType element that defines the hook for the start of the bar. If this parameter is <span class="keyword"><span data-languagespecifictext="cpp=nullptr|vb=Nothing|nu=null" id="LST4D58DFAB_3"></span></span>, it means to create a rebar with no hook.
endHook RebarHookType A RebarHookType element that defines the hook for the end of the bar. If this parameter is <span class="keyword"><span data-languagespecifictext="cpp=nullptr|vb=Nothing|nu=null" id="LST4D58DFAB_4"></span></span>, it means to create a rebar with no hook.
host Element The element to which the rebar belongs. The element must support rebar hosting; <span class="noLink">[!:Autodesk::Revit::DB::Structure::RebarHostData]</span>.
norm XYZ The normal to the plane that the rebar curves lie on.
curves IList<Curve> An array of curves that define the shape of the rebar curves. They must belong to the plane defined by the normal and origin. Bends and hooks should not be included in the array of curves.
startHookOrient RebarHookOrientation Defines the orientation of the hook plane at the start of the rebar with respect to the orientation of the first curve and the plane normal. Only two values are permitted: Value = Right: The hook is on your right as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up." Value = Left: The hook is on your left as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up."
endHookOrient RebarHookOrientation Defines the orientation of the hook plane at the end of the rebar with respect to the orientation of the last curve and the plane normal. Only two values are permitted: Value = Right: The hook is on your right as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up." Value = Left: The hook is on your left as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up."
→ returns nullNothingnullptrRebar The newly created Rebar instance, or if the operation fails.
Rebar.CreateFromCurvesAndShape(Document, RebarShape, RebarBarType, RebarHookType, RebarHookType, Element, XYZ, IList<Curve>, RebarHookOrientation, RebarHookOrientation, Double, Double, ElementId, ElementId)
doc Document A document.
rebarShape RebarShape A RebarShape element that defines the shape of the rebar. A RebarShape element that matches curves, hooks, hook rotation angles and End Treatment. A RebarShape element that provides the RebarStyle of the rebar.
barType RebarBarType A RebarBarType element that defines bar diameter, bend radius and material of the rebar.
startHook RebarHookType A RebarHookType element that defines the hook for the start of the bar. If this parameter is <span class="keyword"><span data-languagespecifictext="cpp=nullptr|vb=Nothing|nu=null" id="LST41A74797_3"></span></span>, it means to create a rebar with no hook.
endHook RebarHookType A RebarHookType element that defines the hook for the end of the bar. If this parameter is <span class="keyword"><span data-languagespecifictext="cpp=nullptr|vb=Nothing|nu=null" id="LST41A74797_4"></span></span>, it means to create a rebar with no hook.
host Element The element to which the rebar belongs. The element must support rebar hosting; <span class="noLink">[!:Autodesk::Revit::DB::Structure::RebarHostData]</span>.
norm XYZ The normal to the plane that the rebar curves lie on.
curves IList<Curve> An array of curves that define the shape of the rebar curves. They must belong to the plane defined by the normal and origin. Bends and hooks should not be included in the array of curves.
startHookOrient RebarHookOrientation Defines the orientation of the hook plane at the start of the rebar with respect to the orientation of the first curve and the plane normal. Only two values are permitted: Value = Right: The hook is on your right as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up." Value = Left: The hook is on your left as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up."
endHookOrient RebarHookOrientation Defines the orientation of the hook plane at the end of the rebar with respect to the orientation of the last curve and the plane normal. Only two values are permitted: Value = Right: The hook is on your right as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up." Value = Left: The hook is on your left as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up."
hookRotationAngleAtStart Double The out of plane hook rotation angle at the start of the bar.
hookRotationAngleAtEnd Double The out of plane hook rotation angle at the end of the bar.
endTreatmentTypeIdAtStart ElementId The end treatment type id at the start of the bar.
endTreatmentTypeIdAtEnd ElementId The end treatment type id at the end of the bar.
→ returns nullNothingnullptrRebar The newly created Rebar instance, or if the operation fails.
Rebar.CreateFromRebarShape(Document, RebarShape, RebarBarType, Element, XYZ, XYZ, XYZ)
doc Document A document.
rebarShape RebarShape A RebarShape element that defines the shape of the rebar.
barType RebarBarType A RebarBarType element that defines bar diameter, bend radius and material of the rebar.
host Element The element to which the rebar belongs. The element must support rebar hosting; <span class="noLink">[!:Autodesk::Revit::DB::Structure::RebarHostData]</span>.
origin XYZ The lower-left corner of the shape's bounding box will be placed at this point in the project.
xVec XYZ The x-axis in the shape definition will be mapped to this direction in the project.
yVec XYZ The y-axis in the shape definition will be mapped to this direction in the project.
→ returns nullNothingnullptrRebar The newly created Rebar instance, or if the operation fails.
Rebar.GetPresentationMode(View)
dBView View The view.
→ returns RebarPresentationMode The presentation mode.
Rebar.GetReinforcementRoundingManager()
→ returns RebarRoundingManager The rounding manager.
Rebar.DistributionType()
Became obsolete in 2025: <p> This property is deprecated in Revit 2025 and may be removed in a later version of Revit. The property Autodesk.Revit.DB.Structure.RebarShapeDrivenAccessor.UseRebarConstraintsToProduceVaryingBars can be used instead. </p> <p>To check if the set can have (but not necessary have) varying length bars you can use Autodesk.Revit.DB.Structure.Rebar.CanHaveVaryingLengthBars. To check if the set has varying length bars you can use Autodesk.Revit.DB.Structure.Rebar.HasVaryingLengthBars.</p>
→ returns DistributionType

Changes in 2026 vs 2025 25 added 1 missing 15 changed

Flip API Versions →

Added in 2026 (new since 2025)

Missing in 2026 (only available in 2025)

Changed members

Rebar.CreateFreeForm(Document, RebarBarType, Element, IList<CurveLoop>, RebarFreeFormValidationResult%)
No longer obsolete in 2025 (was obsolete in 2026)
doc Document A document.
barType RebarBarType A RebarBarType element that defines bar diameter, bend radius and material of the rebar.
host Element The element to which the rebar belongs. The element must support rebar hosting.
curves IList<CurveLoop> Each curve loop represents a bar in the set.
error RebarFreeFormValidationResult% Will be Success(0) if everything is ok, otherwise the failure reason.
→ returns Rebar The newly created free form Rebar Instance.
Rebar.CreateFreeForm(Document, RebarBarType, Element, IList<IList<Curve>>, RebarFreeFormValidationResult%)
No longer obsolete in 2025 (was obsolete in 2026)
doc Document A document.
barType RebarBarType A RebarBarType element that defines bar diameter, bend radius and material of the rebar.
host Element The element to which the rebar belongs. The element must support rebar hosting.
curves IList<IList<Curve>> Each array of curves represent a bar in the set.
error RebarFreeFormValidationResult% Will be Success if everything is ok, otherwise the failure reason.
→ returns Rebar The newly created free form Rebar Instance.
Rebar.CreateFromCurves(Document, RebarStyle, RebarBarType, RebarHookType, RebarHookType, Element, XYZ, IList<Curve>, RebarHookOrientation, RebarHookOrientation, Boolean, Boolean)
No longer obsolete in 2025 (was obsolete in 2026)
doc Document A document.
style RebarStyle The usage of the bar, "standard" or "stirrup/tie".
barType RebarBarType A RebarBarType element that defines bar diameter, bend radius and material of the rebar.
startHook RebarHookType A RebarHookType element that defines the hook for the start of the bar. If this parameter is <span class="keyword"><span data-languagespecifictext="cpp=nullptr|vb=Nothing|nu=null" id="LSTF60C4A90_3"></span></span>, it means to create a rebar with no hook.
endHook RebarHookType A RebarHookType element that defines the hook for the end of the bar. If this parameter is <span class="keyword"><span data-languagespecifictext="cpp=nullptr|vb=Nothing|nu=null" id="LSTF60C4A90_4"></span></span>, it means to create a rebar with no hook.
host Element The element to which the rebar belongs. The element must support rebar hosting; <span class="noLink">[!:Autodesk::Revit::DB::Structure::RebarHostData]</span>.
norm XYZ The normal to the plane that the rebar curves lie on.
curves IList<Curve> An array of curves that define the shape of the rebar curves. They must belong to the plane defined by the normal and origin. Bends and hooks should not be included in the array of curves.
startHookOrient RebarHookOrientation Defines the orientation of the hook plane at the start of the rebar with respect to the orientation of the first curve and the plane normal. Only two values are permitted: Value = Right: The hook is on your right as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up." Value = Left: The hook is on your left as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up."
endHookOrient RebarHookOrientation Defines the orientation of the hook plane at the end of the rebar with respect to the orientation of the last curve and the plane normal. Only two values are permitted: Value = Right: The hook is on your right as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up." Value = Left: The hook is on your left as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up."
useExistingShapeIfPossible Boolean Attempts to assign a RebarShape from those existing in the document. If no shape matches, this function returns null if createNewShape is false or it will create a new shape if createNewShape is true. When both parameters are "true", the behavior is the same as sketching rebar in the UI. At least one of these parameters must be "true". If the RebarShapeDefinesHooks flag in ReinforcementSettings has been set to false, and a RebarShape cannot be found with both matching curves and hooks, then this method will perform a second search, ignoring hook information.
createNewShape Boolean Creates a shape in the document to match the curves, hooks, and style specified, and assigns it to the new rebar instance. Shape creation will not succeed unless one or more other shapes already exist in the document, and these shapes have enough shape parameters to define a shape for these curves.
→ returns Rebar The newly created Rebar instance, or if the operation fails.
Rebar.CreateFromCurves(Document, RebarStyle, RebarBarType, RebarHookType, RebarHookType, Element, XYZ, IList<Curve>, RebarHookOrientation, RebarHookOrientation, Double, Double, ElementId, ElementId, Boolean, Boolean, Double, Double)
No longer obsolete in 2025 (was obsolete in 2026)
doc Document A document.
style RebarStyle The usage of the bar, "standard" or "stirrup/tie".
barType RebarBarType A RebarBarType element that defines bar diameter, bend radius and material of the rebar.
startHook RebarHookType A RebarHookType element that defines the hook for the start of the bar. If this parameter is <span class="keyword"><span data-languagespecifictext="cpp=nullptr|vb=Nothing|nu=null" id="LSTD615B078_3"></span></span>, it means to create a rebar with no hook.
endHook RebarHookType A RebarHookType element that defines the hook for the end of the bar. If this parameter is <span class="keyword"><span data-languagespecifictext="cpp=nullptr|vb=Nothing|nu=null" id="LSTD615B078_4"></span></span>, it means to create a rebar with no hook.
host Element The element to which the rebar belongs. The element must support rebar hosting; <span class="noLink">[!:Autodesk::Revit::DB::Structure::RebarHostData]</span>.
norm XYZ The normal to the plane that the rebar curves lie on.
curves IList<Curve> An array of curves that define the shape of the rebar curves. They must belong to the plane defined by the normal and origin. Bends and hooks should not be included in the array of curves.
startHookOrient RebarHookOrientation Defines the orientation of the hook plane at the start of the rebar with respect to the orientation of the first curve and the plane normal. Only two values are permitted: Value = Right: The hook is on your right as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up." Value = Left: The hook is on your left as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up."
endHookOrient RebarHookOrientation Defines the orientation of the hook plane at the end of the rebar with respect to the orientation of the last curve and the plane normal. Only two values are permitted: Value = Right: The hook is on your right as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up." Value = Left: The hook is on your left as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up."
hookRotationAngleAtStart Double The out of plane hook rotation angle at the start of the bar.
hookRotationAngleAtEnd Double The out of plane hook rotation angle at the end of the bar.
endTreatmentTypeIdAtStart ElementId The end treatment type id at the start of the bar.
endTreatmentTypeIdAtEnd ElementId The end treatment type id at the end of the bar.
useExistingShapeIfPossible Boolean Attempts to assign a RebarShape from those existing in the document. If no shape matches, this function returns <span class="keyword"><span data-languagespecifictext="cpp=nullptr|vb=Nothing|nu=null" id="LSTD615B078_7"></span></span> if createNewShape is false or it will create a new shape if createNewShape is true. When both parameters are "true", the behavior is the same as sketching rebar in the UI. At least one of these parameters must be "true". If the RebarShapeDefinesHooks flag in ReinforcementSettings has been set to false, and a RebarShape cannot be found with both matching curves and hooks, then this method will perform a second search, ignoring hook information.
createNewShape Boolean Creates a shape in the document to match the curves, hooks, and style specified, and assigns it to the new rebar instance. Shape creation will not succeed unless one or more other shapes already exist in the document, and these shapes have enough shape parameters to define a shape for these curves.
terminationRotationAngleAtStart Double
terminationRotationAngleAtEnd Double
→ returns Rebar The newly created Rebar instance, or if the operation fails.
Rebar.CreateFromCurvesAndShape(Document, RebarShape, RebarBarType, RebarHookType, RebarHookType, Element, XYZ, IList<Curve>, RebarHookOrientation, RebarHookOrientation)
No longer obsolete in 2025 (was obsolete in 2026)
doc Document A document.
rebarShape RebarShape A RebarShape element that defines the shape of the rebar. A RebarShape element matches curves and hooks. A RebarShape element provides RebarStyle of the rebar.
barType RebarBarType A RebarBarType element that defines bar diameter, bend radius and material of the rebar.
startHook RebarHookType A RebarHookType element that defines the hook for the start of the bar. If this parameter is <span class="keyword"><span data-languagespecifictext="cpp=nullptr|vb=Nothing|nu=null" id="LST4D58DFAB_3"></span></span>, it means to create a rebar with no hook.
endHook RebarHookType A RebarHookType element that defines the hook for the end of the bar. If this parameter is <span class="keyword"><span data-languagespecifictext="cpp=nullptr|vb=Nothing|nu=null" id="LST4D58DFAB_4"></span></span>, it means to create a rebar with no hook.
host Element The element to which the rebar belongs. The element must support rebar hosting; <span class="noLink">[!:Autodesk::Revit::DB::Structure::RebarHostData]</span>.
norm XYZ The normal to the plane that the rebar curves lie on.
curves IList<Curve> An array of curves that define the shape of the rebar curves. They must belong to the plane defined by the normal and origin. Bends and hooks should not be included in the array of curves.
startHookOrient RebarHookOrientation Defines the orientation of the hook plane at the start of the rebar with respect to the orientation of the first curve and the plane normal. Only two values are permitted: Value = Right: The hook is on your right as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up." Value = Left: The hook is on your left as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up."
endHookOrient RebarHookOrientation Defines the orientation of the hook plane at the end of the rebar with respect to the orientation of the last curve and the plane normal. Only two values are permitted: Value = Right: The hook is on your right as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up." Value = Left: The hook is on your left as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up."
→ returns Rebar The newly created Rebar instance, or if the operation fails.
Rebar.CreateFromCurvesAndShape(Document, RebarShape, RebarBarType, RebarHookType, RebarHookType, Element, XYZ, IList<Curve>, RebarHookOrientation, RebarHookOrientation, Double, Double, ElementId, ElementId, Double, Double)
No longer obsolete in 2025 (was obsolete in 2026)
doc Document A document.
rebarShape RebarShape A RebarShape element that defines the shape of the rebar. A RebarShape element that matches curves, hooks, hook rotation angles and End Treatment. A RebarShape element that provides the RebarStyle of the rebar.
barType RebarBarType A RebarBarType element that defines bar diameter, bend radius and material of the rebar.
startHook RebarHookType A RebarHookType element that defines the hook for the start of the bar. If this parameter is <span class="keyword"><span data-languagespecifictext="cpp=nullptr|vb=Nothing|nu=null" id="LST41A74797_3"></span></span>, it means to create a rebar with no hook.
endHook RebarHookType A RebarHookType element that defines the hook for the end of the bar. If this parameter is <span class="keyword"><span data-languagespecifictext="cpp=nullptr|vb=Nothing|nu=null" id="LST41A74797_4"></span></span>, it means to create a rebar with no hook.
host Element The element to which the rebar belongs. The element must support rebar hosting; <span class="noLink">[!:Autodesk::Revit::DB::Structure::RebarHostData]</span>.
norm XYZ The normal to the plane that the rebar curves lie on.
curves IList<Curve> An array of curves that define the shape of the rebar curves. They must belong to the plane defined by the normal and origin. Bends and hooks should not be included in the array of curves.
startHookOrient RebarHookOrientation Defines the orientation of the hook plane at the start of the rebar with respect to the orientation of the first curve and the plane normal. Only two values are permitted: Value = Right: The hook is on your right as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up." Value = Left: The hook is on your left as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up."
endHookOrient RebarHookOrientation Defines the orientation of the hook plane at the end of the rebar with respect to the orientation of the last curve and the plane normal. Only two values are permitted: Value = Right: The hook is on your right as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up." Value = Left: The hook is on your left as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up."
hookRotationAngleAtStart Double The out of plane hook rotation angle at the start of the bar.
hookRotationAngleAtEnd Double The out of plane hook rotation angle at the end of the bar.
endTreatmentTypeIdAtStart ElementId The end treatment type id at the start of the bar.
endTreatmentTypeIdAtEnd ElementId The end treatment type id at the end of the bar.
terminationRotationAngleAtStart Double
terminationRotationAngleAtEnd Double
→ returns Rebar The newly created Rebar instance, or if the operation fails.
Rebar.GetCenterlineCurves(Boolean, Boolean, Boolean, MultiplanarOption, Int32, Boolean)
adjustForSelfIntersection Boolean If the curves overlap, as in a planar stirrup, this parameter controls whether they should be adjusted to avoid intersection (as in fine views), or kept in a single plane for simplicity (as in coarse views).
suppressHooks Boolean Identifies if the chain will include hooks curves.
suppressBendRadius Boolean Identifies if the connected chain will include unfilleted curves.
multiplanarOption MultiplanarOption If the Rebar is a multi-planar shape, this parameter controls whether to generate only the curves in the primary plane (IncludeOnlyPlanarCurves), or to generate all curves, (IncludeAllMultiplanarCurves) including the out-of-plane connector segments as well as multi-planar copies of the primary plane curves. This argument is ignored for planar shapes.
barPositionIndex Int32 An index between 0 and (NumberOfBarPositions-1). Use the barPositionIndex to obtain all the curves at a specific index in the distribution. You can use GetNumberOfBarPositions() to verify if a specific rebar has more than one bar positions. This is useful for rebar sets that have varying length bars. In this case you can retrieve the centerline curve geometry of that particular bar, by passing the appropriate index If the rebar set don't have varying bars, the form of the bars does not vary from one index to another.
suppressHooksAndCranks Boolean Identifies if the chain will include hooks and the crank curves.
→ returns IList The centerline curves or empty array if the curves cannot be computed because the parameters values are inconsistent with the constraints of the RebarShape definition.
Rebar.GetHookOrientation(Int32, Int32)
No longer obsolete in 2025 (was obsolete in 2026)
iEnd Int32 0 for the start hook, 1 for the end hook.
end Int32 0 for the start termination, 1 for the end termination.
→ returns RebarHookOrientation Value = Right: The hook is on your right as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up." Value = Left: The hook is on your left as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up."
Rebar.GetHookRotationAngle(Int32, Int32)
No longer obsolete in 2025 (was obsolete in 2026)
iEnd Int32 0 for the start , 1 for the end.
end Int32 0 for the start, 1 for the end.
→ returns Double Returns the out of plane hook rotation angle at the specified end.
Rebar.GetTransformedCenterlineCurves(Boolean, Boolean, Boolean, MultiplanarOption, Int32, Boolean)
adjustForSelfIntersection Boolean If the curves overlap, as in a planar stirrup, this parameter controls whether they should be adjusted to avoid intersection (as in fine views), or kept in a single plane for simplicity (as in coarse views).
suppressHooks Boolean Identifies if the chain will include hooks curves.
suppressBendRadius Boolean Identifies if the connected chain will include unfilleted curves.
multiplanarOption MultiplanarOption If the Rebar is a multi-planar shape, this parameter controls whether to generate only the curves in the primary plane (IncludeOnlyPlanarCurves), or to generate all curves, (IncludeAllMultiplanarCurves) including the out-of-plane connector segments as well as multi-planar copies of the primary plane curves. This argument is ignored for planar shapes.
barPositionIndex Int32 The bar index.
suppressHooksAndCranks Boolean Identifies if the chain will include hooks and the crank curves.
→ returns IList The centerline curves or empty array if the curves cannot be computed because the parameters values are inconsistent with the constraints of the RebarShape definition.
Rebar.HookAngleMatchesRebarShapeDefinition(Int32, ElementId, Int32)
iEnd Int32 0 for the start hook, 1 for the end hook.
proposedHookId ElementId The Id of the RebarHookType
end Int32 0 for the start hook, 1 for the end hook.
→ returns Boolean Returns true if the hook angle of the RebarHookType matches the angle used in the RebarShape at the specified end of the bar.
Rebar.RebarShapeMatchesCurvesAndHooks(RebarShape, RebarBarType, XYZ, IList<Curve>, RebarHookType, RebarHookType, RebarHookOrientation, RebarHookOrientation)
No longer obsolete in 2025 (was obsolete in 2026)
rebarShape RebarShape A RebarShape element that defines the shape of the rebar.
barType RebarBarType A RebarBarType element that defines bar diameter, bend radius and material of the rebar.
norm XYZ The normal to the plane that the rebar curves lie on.
curves IList<Curve> An array of curves that define the shape of the rebar curves. They must belong to the plane defined by the normal and origin. Bends and hooks should not be included in the array of curves.
startHook RebarHookType A RebarHookType element that defines the hook for the start of the bar.
endHook RebarHookType A RebarHookType element that defines the hook for the end of the bar.
startHookOrient RebarHookOrientation Defines the orientation of the hook plane at the start of the rebar with respect to the orientation of the first curve and the plane normal. Only two values are permitted: Value = Right: The hook is on your right as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up." Value = Left: The hook is on your left as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up."
endHookOrient RebarHookOrientation Defines the orientation of the hook plane at the end of the rebar with respect to the orientation of the last curve and the plane normal. Only two values are permitted: Value = Right: The hook is on your right as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up." Value = Left: The hook is on your left as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up."
→ returns Boolean True if rebarShape matches curves and hooks.
Rebar.RebarShapeMatchesCurvesHooksAndEndTreatment(RebarShape, RebarBarType, XYZ, IList<Curve>, RebarHookType, RebarHookType, RebarHookOrientation, RebarHookOrientation, Double, Double, ElementId, ElementId, Double, Double)
No longer obsolete in 2025 (was obsolete in 2026)
rebarShape RebarShape A RebarShape element that defines the shape of the rebar.
barType RebarBarType A RebarBarType element that defines bar diameter, bend radius and material of the rebar.
norm XYZ The normal to the plane that the rebar curves lie on.
curves IList<Curve> An array of curves that define the shape of the rebar curves. They must belong to the plane defined by the normal and origin. Bends and hooks should not be included in the array of curves.
startHook RebarHookType A RebarHookType element that defines the hook for the start of the bar.
endHook RebarHookType A RebarHookType element that defines the hook for the end of the bar.
startHookOrient RebarHookOrientation Defines the orientation of the hook plane at the start of the rebar with respect to the orientation of the first curve and the plane normal. Only two values are permitted: Value = Right: The hook is on your right as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up." Value = Left: The hook is on your left as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up."
endHookOrient RebarHookOrientation Defines the orientation of the hook plane at the end of the rebar with respect to the orientation of the last curve and the plane normal. Only two values are permitted: Value = Right: The hook is on your right as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up." Value = Left: The hook is on your left as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up."
hookRotationAngleAtStart Double The out of plane hook rotation angle at the start of the bar.
hookRotationAngleAtEnd Double The out of plane hook rotation angle at the end of the bar.
endTreatmentTypeIdAtStart ElementId The end treatment type id at the start of the bar.
endTreatmentTypeIdAtEnd ElementId The end treatment type id at the end of the bar.
terminationRotationAngleAtStart Double
terminationRotationAngleAtEnd Double
→ returns Boolean True if rebarShape matches curves and hooks.
Rebar.SetHookOrientation(Int32, RebarHookOrientation, Int32, RebarHookOrientation)
No longer obsolete in 2025 (was obsolete in 2026)
iEnd Int32 0 for the start hook, 1 for the end hook.
hookOrientation RebarHookOrientation Only two values are permitted: Value = Right: The hook is on your right as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up." Value = Left: The hook is on your left as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up."
end Int32 0 for the start termination, 1 for the end termination.
terminationOrientation RebarHookOrientation Only two values are permitted: Value = Right: The termination is on your right as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up." Value = Left: The termination is on your left as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up."
Rebar.SetHookRotationAngle(Double, Int32, Double, Int32)
No longer obsolete in 2025 (was obsolete in 2026)
hookRotationAngle Double The out of plane hook rotation angle at the specified end.
iEnd Int32 0 for the start , 1 for the end.
rotationAngle Double The termination's out of plane rotation angle at the specified end. The rotation angle it's the same for both hook and crank.
end Int32 0 for the start, 1 for the end.

Changes in 2027 vs 2025 37 added 13 missing 3 changed

Flip API Versions →

Added in 2027 (new since 2025)

AreBarIndicesValidForSplit(Document, ElementId, ISet<Int32>) CanElementBeSplit(Document, ElementId) ComputeSpacingsBetweenBars(Document, String, Double) CreateFreeForm(Document, RebarBarType, Element, IList<CurveLoop>, RebarStyle) CreateFreeForm(Document, RebarBarType, Element, IList<IList<Curve>>, RebarStyle) CreateFromCurves(Document, RebarStyle, RebarBarType, Element, XYZ, IList<Curve>, BarTerminationsData, Boolean, Boolean) CreateFromCurvesAndShape(Document, RebarShape, RebarBarType, Element, XYZ, IList<Curve>, BarTerminationsData) EnableCrankLengthOverride(Boolean) GetCrankAngledLength(Int32) GetCrankLength(Int32) GetCrankOffsetLength(Int32) GetCrankRatio(Int32) GetCrankStraightLength(Int32) GetCrankTypeId(Int32) GetLayoutFormula(Boolean) GetOverridableCrankParameters GetSpacingsBetweenBars GetTerminationOrientation(Int32) GetTerminationRotationAngle(Int32) IsCrankLengthOverrideEnabled IsCustomSpacingWithPredefinedNumberOfBars IsValidCustomSpacingFormula(Document, String) SetCrankAngledLengthOverride(Int32, Double) SetCrankLengthOverride(Int32, Double) SetCrankOffsetLengthOverride(Int32, Double) SetCrankRatioOverride(Int32, Double) SetCrankStraightLengthOverride(Int32, Double) SetCrankTypeId(Int32, ElementId) SetLayoutFormula(String) SetTerminationOrientation(Int32, RebarTerminationOrientation) SetTerminationRotationAngle(Int32, Double) SplitRebar(Document, ElementId, ISet<Int32>, Boolean, Boolean) FreeForm3DPathServerGuid FreeFormAlignedServerGuid FreeFormMorphedServerGuid FreeFormSurfaceServerGuid Mass

Missing in 2027 (only available in 2025)

Changed members

Rebar.GetCenterlineCurves(Boolean, Boolean, Boolean, MultiplanarOption, Int32, Boolean)
adjustForSelfIntersection Boolean If the curves overlap, as in a planar stirrup, this parameter controls whether they should be adjusted to avoid intersection (as in fine views), or kept in a single plane for simplicity (as in coarse views).
suppressHooks Boolean Identifies if the chain will include hooks curves.
suppressBendRadius Boolean Identifies if the connected chain will include unfilleted curves.
multiplanarOption MultiplanarOption If the Rebar is a multi-planar shape, this parameter controls whether to generate only the curves in the primary plane (IncludeOnlyPlanarCurves), or to generate all curves, (IncludeAllMultiplanarCurves) including the out-of-plane connector segments as well as multi-planar copies of the primary plane curves. This argument is ignored for planar shapes.
barPositionIndex Int32 An index between 0 and (NumberOfBarPositions-1). Use the barPositionIndex to obtain all the curves at a specific index in the distribution. You can use GetNumberOfBarPositions() to verify if a specific rebar has more than one bar positions. This is useful for rebar sets that have varying length bars. In this case you can retrieve the centerline curve geometry of that particular bar, by passing the appropriate index If the rebar set don't have varying bars, the form of the bars does not vary from one index to another.
suppressHooksAndCranks Boolean Identifies if the chain will include hooks and the crank curves.
→ returns IList The centerline curves or empty array if the curves cannot be computed because the parameters values are inconsistent with the constraints of the RebarShape definition.
Rebar.GetTransformedCenterlineCurves(Boolean, Boolean, Boolean, MultiplanarOption, Int32, Boolean)
adjustForSelfIntersection Boolean If the curves overlap, as in a planar stirrup, this parameter controls whether they should be adjusted to avoid intersection (as in fine views), or kept in a single plane for simplicity (as in coarse views).
suppressHooks Boolean Identifies if the chain will include hooks curves.
suppressBendRadius Boolean Identifies if the connected chain will include unfilleted curves.
multiplanarOption MultiplanarOption If the Rebar is a multi-planar shape, this parameter controls whether to generate only the curves in the primary plane (IncludeOnlyPlanarCurves), or to generate all curves, (IncludeAllMultiplanarCurves) including the out-of-plane connector segments as well as multi-planar copies of the primary plane curves. This argument is ignored for planar shapes.
barPositionIndex Int32 The bar index.
suppressHooksAndCranks Boolean Identifies if the chain will include hooks and the crank curves.
→ returns IList The centerline curves or empty array if the curves cannot be computed because the parameters values are inconsistent with the constraints of the RebarShape definition.
Rebar.HookAngleMatchesRebarShapeDefinition(Int32, ElementId, Int32)
iEnd Int32 0 for the start hook, 1 for the end hook.
proposedHookId ElementId The Id of the RebarHookType
end Int32 0 for the start hook, 1 for the end hook.
→ returns Boolean Returns true if the hook angle of the RebarHookType matches the angle used in the RebarShape at the specified end of the bar.