2025 Method Back to 2025
M

CreateFromCurvesAndShape

Version comparison

Per-version detail

Click a version below to see what changed in that release vs your current frame (2025).
Identical to 2025: 2025.3
Not present in: 2020, 2027
2025 current
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.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.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.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.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.