2021 Method Back to 2021
M

CreateFromRebarShape

Version comparison

Per-version detail

Click a version below to see what changed in that release vs your current frame (2021).
Identical to 2021: 2020, 2022, 2023, 2024
2021 current
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 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; <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 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; <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 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; <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 RebarnullNothingnullptr The newly created Rebar instance, or null Nothing nullptr a null reference ( Nothing in Visual Basic) if the operation fails.