Revit 2025.3 API
Rebar |
Appends an Item to the RebarContainer. Fills its data on base of the Rebar.
Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.3.0.0 (25.3.0.0)
Syntax
public RebarContainerItem AppendItemFromRebarShape( RebarShape rebarShape, RebarBarType barType, XYZ origin, XYZ xVector, XYZ yVector )
Public Function AppendItemFromRebarShape ( rebarShape As RebarShape, barType As RebarBarType, origin As XYZ, xVector As XYZ, yVector As XYZ ) As RebarContainerItem
public: RebarContainerItem^ AppendItemFromRebarShape( RebarShape^ rebarShape, RebarBarType^ barType, XYZ^ origin, XYZ^ xVector, XYZ^ yVector )
member AppendItemFromRebarShape : rebarShape : RebarShape * barType : RebarBarType * origin : XYZ * xVector : XYZ * yVector : XYZ -> RebarContainerItem
Parameters
- 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.
- origin XYZ
- The lower-left corner of the shape's bounding box will be placed at this point in the project.
- xVector XYZ
- The x-axis in the shape definition will be mapped to this direction in the project.
- yVector XYZ
- The y-axis in the shape definition will be mapped to this direction in the project.
Return Value
RebarContainerItemThe Rebar Container Item.
| Exception | Condition |
|---|---|
| ArgumentException | The rebarShape has End Treatments |
| ArgumentNullException | A non-optional argument was null |
| ArgumentOutOfRangeException | xVector has zero length. -or- yVector has zero length. |
See Also