CreateFromRebarShape
Version comparisonPer-version detail
Click a version below to see what changed in that release vs your current frame (2025.3).
2025.3
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 | nullNothingnullptr→Rebar | 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 | nullNothingnullptr→Rebar | 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 | nullNothingnullptr→Rebar | 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 | nullNothingnullptr→Rebar | 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 | nullNothingnullptr→Rebar | The newly created Rebar instance, or if the operation fails. |