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 (2020).
2020 current

Changes in 2023 vs 2020 15 added 2 changed

Flip API Versions →

Added in 2023 (new since 2020)

Changed members

Rebar.IsSolidInView(View3D)
No longer obsolete in 2020 (was obsolete in 2023)
view View3D The 3D view element
→ returns Boolean True if rebar is shown solidly, false otherwise.
Rebar.SetSolidInView(View3D, Boolean)
No longer obsolete in 2020 (was obsolete in 2023)
view View3D The 3D view element
solid Boolean True if rebar is shown solidly, false otherwise.

Changes in 2025 vs 2020 21 added 2 missing 6 changed

Flip API Versions →

Added in 2025 (new since 2020)

Missing in 2025 (only available in 2020)

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">null</span><span class="nu">a null reference (<span class="keyword">Nothing</span> in Visual Basic)</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">null</span><span class="nu">a null reference (<span class="keyword">Nothing</span> in Visual Basic)</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; see Autodesk.Revit.DB.Structure.RebarHostData.
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, NewRebar returns or creates a new shape, according to the parameter createNewShape. 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 RebarnullNothingnullptr The newly created Rebar instance, or null Nothing nullptr a null reference ( Nothing in Visual Basic) 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">null</span><span class="nu">a null reference (<span class="keyword">Nothing</span> in Visual Basic)</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">null</span><span class="nu">a null reference (<span class="keyword">Nothing</span> in Visual Basic)</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; see Autodesk.Revit.DB.Structure.RebarHostData.
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 RebarnullNothingnullptr The newly created Rebar instance, or null Nothing nullptr a null reference ( Nothing in Visual Basic) 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; see Autodesk.Revit.DB.Structure.RebarHostData.
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 RebarnullNothingnullptr The newly created Rebar instance, or null Nothing nullptr a null reference ( Nothing in Visual Basic) 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()
No longer obsolete in 2020 (was obsolete in 2025)
→ returns DistributionType

Changes in 2025.3 vs 2020 21 added 2 missing 6 changed

Flip API Versions →

Added in 2025.3 (new since 2020)

Missing in 2025.3 (only available in 2020)

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">null</span><span class="nu">a null reference (<span class="keyword">Nothing</span> in Visual Basic)</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">null</span><span class="nu">a null reference (<span class="keyword">Nothing</span> in Visual Basic)</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; see Autodesk.Revit.DB.Structure.RebarHostData.
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, NewRebar returns or creates a new shape, according to the parameter createNewShape. 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 RebarnullNothingnullptr The newly created Rebar instance, or null Nothing nullptr a null reference ( Nothing in Visual Basic) 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">null</span><span class="nu">a null reference (<span class="keyword">Nothing</span> in Visual Basic)</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">null</span><span class="nu">a null reference (<span class="keyword">Nothing</span> in Visual Basic)</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; see Autodesk.Revit.DB.Structure.RebarHostData.
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 RebarnullNothingnullptr The newly created Rebar instance, or null Nothing nullptr a null reference ( Nothing in Visual Basic) 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; see Autodesk.Revit.DB.Structure.RebarHostData.
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 RebarnullNothingnullptr The newly created Rebar instance, or null Nothing nullptr a null reference ( Nothing in Visual Basic) 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()
No longer obsolete in 2020 (was obsolete in 2025.3)
→ returns DistributionType

Changes in 2026 vs 2020 46 added 3 missing 12 changed

Flip API Versions →

Added in 2026 (new since 2020)

CreateFreeForm(Document, RebarBarType, Element, IList<CurveLoop>, RebarStyle) CreateFreeForm(Document, RebarBarType, Element, IList<IList<Curve>>, RebarStyle) CreateFromCurves(Document, RebarStyle, RebarBarType, RebarHookType, RebarHookType, Element, XYZ, IList<Curve>, RebarHookOrientation, RebarHookOrientation, Double, Double, ElementId, ElementId, Boolean, Boolean) CreateFromCurves(Document, RebarStyle, RebarBarType, Element, XYZ, IList<Curve>, BarTerminationsData, Boolean, Boolean) CreateFromCurvesAndShape(Document, RebarShape, RebarBarType, RebarHookType, RebarHookType, Element, XYZ, IList<Curve>, RebarHookOrientation, RebarHookOrientation, Double, Double, ElementId, ElementId) CreateFromCurvesAndShape(Document, RebarShape, RebarBarType, Element, XYZ, IList<Curve>, BarTerminationsData) EnableCrankLengthOverride(Boolean) EnableHookLengthOverride(Boolean) GetBarIndexFromReference(Reference) GetCrankAngledLength(Int32) GetCrankLength(Int32) GetCrankOffsetLength(Int32) GetCrankRatio(Int32) GetCrankStraightLength(Int32) GetCrankTypeId(Int32) GetHookRotationAngle(Int32) GetLapLength(Int32) GetMovedBarTransform(Int32) GetOverridableCrankParameters GetOverridableHookParameters(ISet<ElementId>, ISet<ElementId>, ISet<ElementId>, ISet<ElementId>) GetRebarSplice(Int32) GetSpliceStaggerLength(Int32) GetTerminationOrientation(Int32) GetTerminationRotationAngle(Int32) GetTransformedCenterlineCurves(Boolean, Boolean, Boolean, MultiplanarOption, Int32) IsCrankLengthOverrideEnabled IsHookLengthOverrideEnabled MoveBarInSet(Int32, Transform) RebarShapeMatchesCurvesHooksAndEndTreatment(RebarShape, RebarBarType, XYZ, IList<Curve>, RebarHookType, RebarHookType, RebarHookOrientation, RebarHookOrientation, Double, Double, ElementId, ElementId) RemoveSplice(Int32) ResetMovedBarTransform(Int32) SetBarIncluded(Boolean, Int32) SetCrankAngledLengthOverride(Int32, Double) SetCrankLengthOverride(Int32, Double) SetCrankOffsetLengthOverride(Int32, Double) SetCrankRatioOverride(Int32, Double) SetCrankStraightLengthOverride(Int32, Double) SetCrankTypeId(Int32, ElementId) SetEndTreatmentTypeId(Int32, ElementId) SetHookRotationAngle(Double, Int32) SetTerminationOrientation(Int32, RebarTerminationOrientation) SetTerminationRotationAngle(Int32, Double) CanHaveVaryingLengthBars FreeFormAlignedServerGuid FreeFormSurfaceServerGuid HasVariableLengthBars

Missing in 2026 (only available in 2020)

Changed members

Rebar.CreateFreeForm(Document, RebarBarType, Element, IList<CurveLoop>, RebarFreeFormValidationResult%)
No longer obsolete in 2020 (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 2020 (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 2020 (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">null</span><span class="nu">a null reference (<span class="keyword">Nothing</span> in Visual Basic)</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">null</span><span class="nu">a null reference (<span class="keyword">Nothing</span> in Visual Basic)</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; see Autodesk.Revit.DB.Structure.RebarHostData.
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, NewRebar returns or creates a new shape, according to the parameter createNewShape. 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 RebarnullNothingnullptr The newly created Rebar instance, or null Nothing nullptr a null reference ( Nothing in Visual Basic) if the operation fails.
Rebar.CreateFromCurvesAndShape(Document, RebarShape, RebarBarType, RebarHookType, RebarHookType, Element, XYZ, IList<Curve>, RebarHookOrientation, RebarHookOrientation)
No longer obsolete in 2020 (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">null</span><span class="nu">a null reference (<span class="keyword">Nothing</span> in Visual Basic)</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">null</span><span class="nu">a null reference (<span class="keyword">Nothing</span> in Visual Basic)</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; see Autodesk.Revit.DB.Structure.RebarHostData.
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 RebarnullNothingnullptr The newly created Rebar instance, or null Nothing nullptr a null reference ( Nothing in Visual Basic) 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; see Autodesk.Revit.DB.Structure.RebarHostData.
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 RebarnullNothingnullptr The newly created Rebar instance, or null Nothing nullptr a null reference ( Nothing in Visual Basic) 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. Use GetDistributionType() to probe if the bars in a specific rebar have a varying shape. If so, you can retrieve the centerline curve geometry of that particular bar, by passing the appropriate index. When the distribution type of a rebar set is uniform, 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 2020 (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.GetPresentationMode(View)
dBView View The view.
→ returns RebarPresentationMode The presentation mode.
Rebar.GetReinforcementRoundingManager()
→ returns RebarRoundingManager The rounding manager.
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 2020 (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. If this parameter is <span class="keyword">null</span><span class="nu">a null reference (<span class="keyword">Nothing</span> in Visual Basic)</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">null</span><span class="nu">a null reference (<span class="keyword">Nothing</span> in Visual Basic)</span>, it means to create a rebar with no hook.
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.SetHookOrientation(Int32, RebarHookOrientation, Int32, RebarHookOrientation)
No longer obsolete in 2020 (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."

Changes in 2027 vs 2020 53 added 10 missing 5 changed

Flip API Versions →

Added in 2027 (new since 2020)

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) EnableHookLengthOverride(Boolean) GetBarIndexFromReference(Reference) GetCrankAngledLength(Int32) GetCrankLength(Int32) GetCrankOffsetLength(Int32) GetCrankRatio(Int32) GetCrankStraightLength(Int32) GetCrankTypeId(Int32) GetLapLength(Int32) GetLayoutFormula(Boolean) GetMovedBarTransform(Int32) GetOverridableCrankParameters GetOverridableHookParameters(ISet<ElementId>, ISet<ElementId>, ISet<ElementId>, ISet<ElementId>) GetRebarSplice(Int32) GetSpacingsBetweenBars GetSpliceStaggerLength(Int32) GetTerminationOrientation(Int32) GetTerminationRotationAngle(Int32) GetTransformedCenterlineCurves(Boolean, Boolean, Boolean, MultiplanarOption, Int32) IsCrankLengthOverrideEnabled IsCustomSpacingWithPredefinedNumberOfBars IsHookLengthOverrideEnabled IsValidCustomSpacingFormula(Document, String) MoveBarInSet(Int32, Transform) RemoveSplice(Int32) ResetMovedBarTransform(Int32) SetBarIncluded(Boolean, Int32) SetCrankAngledLengthOverride(Int32, Double) SetCrankLengthOverride(Int32, Double) SetCrankOffsetLengthOverride(Int32, Double) SetCrankRatioOverride(Int32, Double) SetCrankStraightLengthOverride(Int32, Double) SetCrankTypeId(Int32, ElementId) SetEndTreatmentTypeId(Int32, ElementId) SetLayoutFormula(String) SetTerminationOrientation(Int32, RebarTerminationOrientation) SetTerminationRotationAngle(Int32, Double) SplitRebar(Document, ElementId, ISet<Int32>, Boolean, Boolean) CanHaveVaryingLengthBars FreeForm3DPathServerGuid FreeFormAlignedServerGuid FreeFormMorphedServerGuid FreeFormSurfaceServerGuid HasVariableLengthBars Mass

Missing in 2027 (only available in 2020)

Changed members

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; see Autodesk.Revit.DB.Structure.RebarHostData.
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 RebarnullNothingnullptr The newly created Rebar instance, or null Nothing nullptr a null reference ( Nothing in Visual Basic) 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. Use GetDistributionType() to probe if the bars in a specific rebar have a varying shape. If so, you can retrieve the centerline curve geometry of that particular bar, by passing the appropriate index. When the distribution type of a rebar set is uniform, 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.GetPresentationMode(View)
dBView View The view.
→ returns RebarPresentationMode The presentation mode.
Rebar.GetReinforcementRoundingManager()
→ returns RebarRoundingManager The rounding manager.
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.